phplinter\CLI::lint_file PHP Method

lint_file() protected method

----------------------------------------------------------------------+
protected lint_file ( $file )
    protected function lint_file($file)
    {
        $linter = new Linter($file, $this->config);
        if ($this->config->check(OPT_HARVEST_DOCS)) {
            $linter->lint();
            $reporter = new Report\Harvest($this->config);
            $reporter->create($linter->nodes(), $linter->penalty());
        } else {
            $this->reporter->create(array($linter->lint()), $linter->penalty(), $file);
        }
    }