N98\Magento\Command\System\Check\Filesystem\FilesCheck::check PHP Method

check() public method

public check ( N98\Magento\Command\System\Check\ResultCollection $results )
$results N98\Magento\Command\System\Check\ResultCollection
    public function check(ResultCollection $results)
    {
        $files = $this->_commandConfig['filesystem']['files'];
        $magentoRoot = $this->_checkCommand->getApplication()->getMagentoRootFolder();
        foreach ($files as $file => $comment) {
            $result = $results->createResult();
            if (file_exists($magentoRoot . DIRECTORY_SEPARATOR . $file)) {
                $result->setStatus(Result::STATUS_OK);
                $result->setMessage("<info>File <comment>" . $file . "</comment> found.</info>");
            } else {
                $result->setStatus(Result::STATUS_ERROR);
                $result->setMessage("<error>File " . $file . " not found!</error><comment> Usage: " . $comment . "</comment>");
            }
        }
    }