/** * Configures the input source. * * @param \PDepend\Engine $pdepend * @param \PHPMD\PHPMD $phpmd * @return void */ private function initInput(Engine $pdepend, PHPMD $phpmd) { foreach (explode(',', $phpmd->getInput()) as $path) { if (is_dir(trim($path))) { $pdepend->addDirectory(trim($path)); } else { $pdepend->addFile(trim($path)); } } }