private function lintFile($file)
    {
        // first try to parse it
        try {
            $this->parser->parse(\file_get_contents($file));
        } catch (\Exception $e) {
            return false;
        }

        return true;
    }
private function lintFile($file)
    {
        // first try to parse it
        try {
            $this->parser->parse(\file_get_contents($file));
        } catch (\Exception $e) {
            return false;
        }

        return true;
    }
private function lintFile ( $ file ) { // first try to parse it try { $ this -> parser -> parse ( \ file_get_contents ( $ file ) ) ; } catch ( \ Exception $ e ) { return false ; } return true ; }
Should this file be re-imported?

Use PHP-Parser to ensure that the file is valid PHP.

@param string $file

@return bool
Should this file be re - imported?