Merge pull request #998 from teemule11/bugfix-pdepend-1

Pdepend Module: make check for Pdepend output dir more robust.
This commit is contained in:
Dan Cryer 2015-10-13 15:04:42 +01:00
commit 0fbae60f52

View file

@ -73,8 +73,11 @@ class Pdepend implements \PHPCI\Plugin
*/
public function execute()
{
if (!file_exists($this->location)) {
mkdir($this->location);
}
if (!is_writable($this->location)) {
throw new \Exception(sprintf('The location %s is not writable.', $this->location));
throw new \Exception(sprintf('The location %s is not writable or does not exist.', $this->location));
}
$pdepend = $this->phpci->findBinary('pdepend');