@@ -21,10 +21,10 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public function __construct() |
| 23 | 23 | { |
| 24 | - if (file_exists(__DIR__.self::PHPUNIT_RELPATH_FOR_VENDOR)) { |
|
| 25 | - $this->phpUnitBin = __DIR__.self::PHPUNIT_RELPATH_FOR_VENDOR; |
|
| 26 | - } elseif (file_exists(__DIR__.self::PHPUNIT_RELPATH_FOR_STANDALONE)) { |
|
| 27 | - $this->phpUnitBin = __DIR__.self::PHPUNIT_RELPATH_FOR_STANDALONE; |
|
| 24 | + if (file_exists(__DIR__ . self::PHPUNIT_RELPATH_FOR_VENDOR)) { |
|
| 25 | + $this->phpUnitBin = __DIR__ . self::PHPUNIT_RELPATH_FOR_VENDOR; |
|
| 26 | + } elseif (file_exists(__DIR__ . self::PHPUNIT_RELPATH_FOR_STANDALONE)) { |
|
| 27 | + $this->phpUnitBin = __DIR__ . self::PHPUNIT_RELPATH_FOR_STANDALONE; |
|
| 28 | 28 | } else { |
| 29 | 29 | throw new \Exception('PHPUnit bin not found'); |
| 30 | 30 | } |
@@ -41,8 +41,8 @@ |
||
| 41 | 41 | $it = new \RecursiveDirectoryIterator($dir, \RecursiveDirectoryIterator::SKIP_DOTS); |
| 42 | 42 | $files = new \RecursiveIteratorIterator($it, \RecursiveIteratorIterator::CHILD_FIRST); |
| 43 | 43 | |
| 44 | - foreach($files as $file) { |
|
| 45 | - if ($file->isDir()){ |
|
| 44 | + foreach ($files as $file) { |
|
| 45 | + if ($file->isDir()) { |
|
| 46 | 46 | rmdir($file->getRealPath()); |
| 47 | 47 | } else { |
| 48 | 48 | unlink($file->getRealPath()); |
@@ -136,6 +136,6 @@ |
||
| 136 | 136 | */ |
| 137 | 137 | public function setWaitingForTestResult($waitingForTestResult) |
| 138 | 138 | { |
| 139 | - $this->waitingForTestResult = (bool) $waitingForTestResult; |
|
| 139 | + $this->waitingForTestResult = (bool)$waitingForTestResult; |
|
| 140 | 140 | } |
| 141 | 141 | } |