src/Minify.php
protected function canImportFile($path)
    {
        $parsed = parse_url($path);
        if (
            // file is elsewhere
            isset($parsed['host']) ||
            // file responds to queries (may change, or need to bypass cache)
            isset($parsed['query'])
        ) {
            return false;
        }

        return strlen($path) < PHP_MAXPATHLEN && @is_file($path) && is_readable($path);
    }
protected function canImportFile($path)
    {
        $parsed = parse_url($path);
        if (
            // file is elsewhere
            isset($parsed['host']) ||
            // file responds to queries (may change, or need to bypass cache)
            isset($parsed['query'])
        ) {
            return false;
        }

        return strlen($path) < PHP_MAXPATHLEN && @is_file($path) && is_readable($path);
    }
protected function canImportFile ( $ path ) { $ parsed = parse_url ( $ path ) ; if ( // file is elsewhere isset ( $ parsed [ 'host' ] ) || // file responds to queries (may change, or need to bypass cache) isset ( $ parsed [ 'query' ] ) ) { return false ; } return strlen ( $ path ) < PHP_MAXPATHLEN && @ is_file ( $ path ) && is_readable ( $ path ) ; }
Check if the path is a regular file and can be read.

@param string $path

@return bool
Check if the path is a regular file and can be read .