HippoPHP\Hippo\CheckRunner::checkPathFile PHP Method

checkPathFile() protected method

protected checkPathFile ( string $path ) : CheckResult[]
$path string
return 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;
    }