Example #1
0
 /**
  * Initializes the accepted php source file extensions.
  *
  * @param PHP_Depend $pdepend The context php depend instance.
  * @param PHP_PMD    $phpmd   The calling/parent php mess detector.
  *
  * @return void
  */
 private function _initExtensions(PHP_Depend $pdepend, PHP_PMD $phpmd)
 {
     if (count($phpmd->getFileExtensions()) > 0) {
         $pdepend->addFileFilter(new PHP_Depend_Input_ExtensionFilter($phpmd->getFileExtensions()));
     }
 }
Example #2
0
 /**
  * Initializes the accepted php source file extensions.
  *
  * @param \PDepend\Engine $pdepend The context php depend instance.
  * @param PHP_PMD    $phpmd   The calling/parent php mess detector.
  *
  * @return void
  */
 private function initExtensions(Engine $pdepend, PHP_PMD $phpmd)
 {
     if (count($phpmd->getFileExtensions()) > 0) {
         $pdepend->addFileFilter(new ExtensionFilter($phpmd->getFileExtensions()));
     }
 }