Merge pull request #998 from teemule11/bugfix-pdepend-1
Pdepend Module: make check for Pdepend output dir more robust.
This commit is contained in:
commit
0fbae60f52
|
@ -73,8 +73,11 @@ class Pdepend implements \PHPCI\Plugin
|
||||||
*/
|
*/
|
||||||
public function execute()
|
public function execute()
|
||||||
{
|
{
|
||||||
|
if (!file_exists($this->location)) {
|
||||||
|
mkdir($this->location);
|
||||||
|
}
|
||||||
if (!is_writable($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');
|
$pdepend = $this->phpci->findBinary('pdepend');
|
||||||
|
|
Loading…
Reference in a new issue