protected function hasSyntaxErrors($file) : bool
    {
        $process = new Processor();
        $result  = $process->run('php -l ' . escapeshellarg($file));

        return !$result->isSuccessful();
    }
protected function hasSyntaxErrors($file) : bool
    {
        $process = new Processor();
        $result  = $process->run('php -l ' . escapeshellarg($file));

        return !$result->isSuccessful();
    }
protected function hasSyntaxErrors ( $ file ) : bool { $ process = new Processor ( ) ; $ result = $ process -> run ( 'php -l ' . escapeshellarg ( $ file ) ) ; return ! $ result -> isSuccessful ( ) ; }
Lint a php file

@param  string $file
@return bool
Lint a php file