analyze() public method

Analyzes the registered directories and returns the collection of analyzed namespace.
public analyze ( ) : PDepend\Source\AST\ASTNamespace[]
return PDepend\Source\AST\ASTNamespace[]
Beispiel #1
0
 /**
  * Parses the projects source and reports all detected errors and violations.
  *
  * @param \PHPMD\Report $report
  * @return void
  */
 public function parse(Report $report)
 {
     $this->setReport($report);
     $this->pdepend->addReportGenerator($this);
     $this->pdepend->analyze();
     foreach ($this->pdepend->getExceptions() as $exception) {
         $report->addError(new ProcessingError($exception->getMessage()));
     }
 }