/** * @param string $path * * @return \HippoPHP\Hippo\CheckResult[] */ protected function checkPathFile($path) { $file = new File($path, $this->fileSystem->getContent($path)); $checkResults = $this->checkFile($file); if ($this->observer !== null) { call_user_func($this->observer, $file, $checkResults); } return $checkResults; }