Ejemplo n.º 1
0
 /**
  * Creates a clean php depend instance with some base settings.
  *
  * @return \PDepend\Engine
  */
 private function createInstance()
 {
     $application = new Application();
     return $application->getEngine();
 }
Ejemplo n.º 2
0
 /**
  * Creates a clean php depend instance with some base settings.
  *
  * @return \PDepend\Engine
  */
 private function createInstance()
 {
     $application = new Application();
     if (file_exists(getcwd() . '/pdepend.xml')) {
         $application->setConfigurationFile(getcwd() . '/pdepend.xml');
     } elseif (file_exists(getcwd() . '/pdepend.xml.dist')) {
         $application->setConfigurationFile(getcwd() . '/pdepend.xml.dist');
     }
     return $application->getEngine();
 }