Flitch\Cli\Cli::analyzeFile PHP Méthode

analyzeFile() protected méthode

Analyze single file for coding standard violations.
protected analyzeFile ( string $path, Tokenizer $tokenizer, Manager $manager ) : File
$path string
$tokenizer Flitch\File\Tokenizer
$manager Flitch\Rule\Manager
Résultat File
    protected function analyzeFile($path, Tokenizer $tokenizer, Manager $manager)
    {
        $file = $tokenizer->tokenize($path, file_get_contents($path));
        $manager->check($file);
        foreach ($this->reports as $report) {
            $report->addFile($file);
        }
        return $file;
    }