src/Phinx/Util/Util.php
public static function loadPhpFile($filename)
    {
        $filePath = realpath($filename);

        /**
         * I lifed this from phpunits FileLoader class
         *
         * @see https://github.com/sebastianbergmann/phpunit/pull/2751
         */
        $isReadable = @\fopen($filePath, 'r') !== false;

        if (!$filePath || !$isReadable) {
            throw new \Exception(sprintf("Cannot open file %s \n", $filename));
        }

        include_once $filePath;

        return $filePath;
    }
public static function loadPhpFile($filename)
    {
        $filePath = realpath($filename);

        /**
         * I lifed this from phpunits FileLoader class
         *
         * @see https://github.com/sebastianbergmann/phpunit/pull/2751
         */
        $isReadable = @\fopen($filePath, 'r') !== false;

        if (!$filePath || !$isReadable) {
            throw new \Exception(sprintf("Cannot open file %s \n", $filename));
        }

        include_once $filePath;

        return $filePath;
    }
public static function loadPhpFile ( $ filename ) { $ filePath = realpath ( $ filename ) ; /**
         * I lifed this from phpunits FileLoader class
         *
         * @see https://github.com/sebastianbergmann/phpunit/pull/2751
         */ $ isReadable = @ \ fopen ( $ filePath , 'r' ) !== false ; if ( ! $ filePath || ! $ isReadable ) { throw new \ Exception ( sprintf ( "Cannot open file %s \n" , $ filename ) ) ; } include_once $ filePath ; return $ filePath ; }
Takes the path to a php file and attempts to include it if readable

@return string
Takes the path to a php file and attempts to include it if readable