src/Codeception/Module/WPDb.php
protected function getWpFilesystemModule($throw = true)
    {
        try {
            /** @noinspection PhpIncompatibleReturnTypeInspection */
            return $this->getModule('WPFilesystem');
        } catch (ModuleException $e) {
            if (!$throw) {
                return null;
            }

            $message = 'This method requires the WPFilesystem module.';
            throw new ModuleException(__CLASS__, $message);
        }
    }
protected function getWpFilesystemModule($throw = true)
    {
        try {
            /** @noinspection PhpIncompatibleReturnTypeInspection */
            return $this->getModule('WPFilesystem');
        } catch (ModuleException $e) {
            if (!$throw) {
                return null;
            }

            $message = 'This method requires the WPFilesystem module.';
            throw new ModuleException(__CLASS__, $message);
        }
    }
protected function getWpFilesystemModule ( $ throw = true ) { try { /** @noinspection PhpIncompatibleReturnTypeInspection */ return $ this -> getModule ( 'WPFilesystem' ) ; } catch ( ModuleException $ e ) { if ( ! $ throw ) { return null ; } $ message = 'This method requires the WPFilesystem module.' ; throw new ModuleException ( __CLASS__ , $ message ) ; } }
Gets the WPFilesystem module.

@param bool $throw Whether to throw an exception if the WPFilesystem module is not loaded in
the suite or just return `false`.

@return \Codeception\Module\WPFilesystem The filesytem module instance if loaded in the suite.

@throws \Codeception\Exception\ModuleException If the WPFilesystem module is not loaded in the suite.
Gets the WPFilesystem module .