/** * Runs checks on the file. * * @param \HippoPHP\Hippo\CheckContext $checkContext * @param \HippoPHP\Hippo\Config\Config $config * * @return \HippoPHP\Hippo\CheckResult */ public function checkFile(CheckContext $checkContext, Config $config) { $this->checkResult = new CheckResult(); $this->checkResult->setFile($checkContext->getFile()); $this->checkFileInternal($checkContext, $config); return $this->checkResult; }