src/Application.php
protected function scanFiles()
    {
        $this->analyzer->initialize();
        $this->reports = [];
        foreach ($this->args['FILES'] as $file) {
            if (is_dir($file)) {
                TerminalInfo::echoWithColor('Scanning '.$file.' ...'.PHP_EOL, TerminalInfo::GRAY_TEXT);
                $this->reports[] = $this->analyzer->checkDir(rtrim(realpath($file), DIRECTORY_SEPARATOR));
            } else if (is_file($file)) {
                $report = new Report('File '.basename($file), dirname(realpath($file)));
                $report = $this->analyzer->checkFile(realpath($file), $report);
                if($report instanceof Report) {
                    $this->reports[] = $report;
                }
            }
        }
    }
protected function scanFiles()
    {
        $this->analyzer->initialize();
        $this->reports = [];
        foreach ($this->args['FILES'] as $file) {
            if (is_dir($file)) {
                TerminalInfo::echoWithColor('Scanning '.$file.' ...'.PHP_EOL, TerminalInfo::GRAY_TEXT);
                $this->reports[] = $this->analyzer->checkDir(rtrim(realpath($file), DIRECTORY_SEPARATOR));
            } else if (is_file($file)) {
                $report = new Report('File '.basename($file), dirname(realpath($file)));
                $report = $this->analyzer->checkFile(realpath($file), $report);
                if($report instanceof Report) {
                    $this->reports[] = $report;
                }
            }
        }
    }
Runs analyzer