HippoPHP\Hippo\Checks\Syntax\SyntaxCheck::checkFileInternal PHP Метод

checkFileInternal() защищенный Метод

checkFileInternal(): defined by AbstractCheck.
См. также: AbstractCheck::checkFileInternal()
protected checkFileInternal ( CheckContext $checkContext, Config $config )
$checkContext HippoPHP\Hippo\CheckContext
$config HippoPHP\Hippo\Config\Config
    protected function checkFileInternal(CheckContext $checkContext, Config $config)
    {
        $file = $checkContext->getFile();
        $parser = new Parser(new Emulative());
        try {
            $parser->parse($file->getSource());
        } catch (PhpParserError $e) {
            $this->addViolation($file, $e->getStartLine(), 0, $e->getRawMessage(), Violation::SEVERITY_ERROR);
        }
    }