public function requireFile($file)
    {
        if (PHP_EOL !== "\n" && strpos($file, 'phar://') !== 0) {
            $realPath = strtr(realpath($file), '\\', '/');
            if ($realPath !== $file) {
                trigger_error("File name ($realPath) case mismatch for .$file", E_USER_ERROR);
            }
        }
        /** @noinspection PhpIncludeInspection */
        require $file;
    }
public function requireFile($file)
    {
        if (PHP_EOL !== "\n" && strpos($file, 'phar://') !== 0) {
            $realPath = strtr(realpath($file), '\\', '/');
            if ($realPath !== $file) {
                trigger_error("File name ($realPath) case mismatch for .$file", E_USER_ERROR);
            }
        }
        /** @noinspection PhpIncludeInspection */
        require $file;
    }
public function requireFile ( $ file ) { if ( PHP_EOL !== "\n" && strpos ( $ file , 'phar://' ) !== 0 ) { $ realPath = strtr ( realpath ( $ file ) , '\\' , '/' ) ; if ( $ realPath !== $ file ) { trigger_error ( "File name ($realPath) case mismatch for .$file" , E_USER_ERROR ) ; } } /** @noinspection PhpIncludeInspection */ require $ file ; }
If a file exists, require it from the file system.

@param string $file The file to require.

@return void
If a file exists require it from the file system .