src/Neutrino/PhpPreloader/Preloader.php
public function parse($file)
    {
        if (!is_string($file) || empty($file)) {
            throw new RuntimeException('Invalid filename provided.');
        }

        if (!is_readable($file)) {
            throw new RuntimeException("Cannot open $file for reading.");
        }

        $content = php_strip_whitespace($file);

        return $this->parser->parse($content);
    }
public function parse($file)
    {
        if (!is_string($file) || empty($file)) {
            throw new RuntimeException('Invalid filename provided.');
        }

        if (!is_readable($file)) {
            throw new RuntimeException("Cannot open $file for reading.");
        }

        $content = php_strip_whitespace($file);

        return $this->parser->parse($content);
    }
Parses PHP code into a node tree.

@param string $file

@return null|\PhpParser\Node[]
@throws \RuntimeException