src/Nabu/Autoloader.php
private function requireFile($path)
    {
        if (file_exists($path)) {
            $this->updateLog("debug", "File {$path} exists; requiring file");

            /** @noinspection PhpIncludeInspection */
            require $path;

            $this->updateLog("info", "Completed loading {$path}");

            return true;
        } else {
            $this->updateLog("debug", "File {$path} does not exist");

            return false;
        }
    }
private function requireFile($path)
    {
        if (file_exists($path)) {
            $this->updateLog("debug", "File {$path} exists; requiring file");

            /** @noinspection PhpIncludeInspection */
            require $path;

            $this->updateLog("info", "Completed loading {$path}");

            return true;
        } else {
            $this->updateLog("debug", "File {$path} does not exist");

            return false;
        }
    }
private function requireFile ( $ path ) { if ( file_exists ( $ path ) ) { $ this -> updateLog ( "debug" , "File {$path} exists; requiring file" ) ; /** @noinspection PhpIncludeInspection */ require $ path ; $ this -> updateLog ( "info" , "Completed loading {$path}" ) ; return true ; } else { $ this -> updateLog ( "debug" , "File {$path} does not exist" ) ; return false ; } }
Requires a file only if it existss

@param string $path  The path to the file for requiring

@return bool         Returns true if the file at the given path exists
Returns false if the file at the given path does not exist
Requires a file only if it existss