public function checkFile(CheckContext $checkContext, Config $config) { $this->checkResult = new CheckResult(); $this->checkResult->setFile($checkContext->getFile()); $this->checkFileInternal($checkContext, $config); return $this->checkResult; }