Example #1
0
 /**
  * Initializes the ignored files and path's.
  *
  * @param PHP_Depend $pdepend The context php depend instance.
  * @param PHP_PMD    $phpmd   The calling/parent php mess detector.
  *
  * @return void
  */
 private function _initIgnores(PHP_Depend $pdepend, PHP_PMD $phpmd)
 {
     if (count($phpmd->getIgnorePattern()) > 0) {
         $pdepend->addFileFilter(new PHP_Depend_Input_ExcludePathFilter($phpmd->getIgnorePattern()));
     }
 }
Example #2
0
 /**
  * Initializes the ignored files and path's.
  *
  * @param PDepend\Engine $pdepend The context php depend instance.
  * @param PHP_PMD    $phpmd   The calling/parent php mess detector.
  *
  * @return void
  */
 private function initIgnores(Engine $pdepend, PHP_PMD $phpmd)
 {
     if (count($phpmd->getIgnorePattern()) > 0) {
         $pdepend->addFileFilter(new ExcludePathFilter($phpmd->getIgnorePattern()));
     }
 }