Sstalle\php7cc\PathChecker::checkFile PHP Method

checkFile() protected method

protected checkFile ( Sstalle\php7cc\CompatibilityViolation\CheckMetadata $checkMetadata, Symfony\Component\Finder\SplFileInfo $fileInfo, boolean $useRelativePaths )
$checkMetadata Sstalle\php7cc\CompatibilityViolation\CheckMetadata
$fileInfo Symfony\Component\Finder\SplFileInfo
$useRelativePaths boolean
    protected function checkFile(CheckMetadata $checkMetadata, SplFileInfo $fileInfo, $useRelativePaths)
    {
        $context = new FileContext($fileInfo, $useRelativePaths);
        $this->contextChecker->checkContext($context);
        if ($context->hasMessagesOrErrors()) {
            $this->resultPrinter->printContext($context);
        }
        $checkMetadata->incrementCheckedFileCount();
    }