Example #1
0
 private function scanAndParse(array $options)
 {
     $this->io->writeln('<info>Scanning sources and parsing</info>');
     $files = $this->finder->find($options['source'], $options['exclude'], $options['extensions']);
     $this->parser->parse($files);
     $this->reportParserErrors($this->parser->getErrors());
     $stats = $this->parserResult->getDocumentedStats();
     $this->io->writeln(sprintf('Found <comment>%d classes</comment>, <comment>%d constants</comment> and <comment>%d functions</comment>', $stats['classes'], $stats['constants'], $stats['functions']));
 }