@@ -134,7 +134,7 @@ |
||
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | /** |
| 137 | - * @param $debug |
|
| 137 | + * @param boolean $debug |
|
| 138 | 138 | * |
| 139 | 139 | * @return ParaunitProcessAbstract |
| 140 | 140 | */ |
@@ -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 | } |
@@ -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 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | uasort( |
| 27 | 27 | $taggedServices, |
| 28 | - function ($a, $b) { |
|
| 28 | + function($a, $b) { |
|
| 29 | 29 | return $a[0]['priority'] > $b[0]['priority']; |
| 30 | 30 | } |
| 31 | 31 | ); |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | private function printFailuresOutput(TestResultContainer $testResultContainer, OutputInterface $output) |
| 37 | 37 | { |
| 38 | - if (! $testResultContainer->getTestResultFormat()->shouldPrintTestOutput()) { |
|
| 38 | + if ( ! $testResultContainer->getTestResultFormat()->shouldPrintTestOutput()) { |
|
| 39 | 39 | return; |
| 40 | 40 | } |
| 41 | 41 | |
@@ -37,13 +37,13 @@ |
||
| 37 | 37 | { |
| 38 | 38 | $process = $processEvent->getProcess(); |
| 39 | 39 | |
| 40 | - if (! $processEvent->has('output_interface')) { |
|
| 40 | + if ( ! $processEvent->has('output_interface')) { |
|
| 41 | 41 | throw new \BadMethodCallException('missing output_interface'); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | $this->output = $processEvent->get('output_interface'); |
| 45 | 45 | |
| 46 | - if (! $this->output instanceof OutputInterface) { |
|
| 46 | + if ( ! $this->output instanceof OutputInterface) { |
|
| 47 | 47 | throw new \BadMethodCallException('output_interface, unexpected type: ' . get_class($this->output)); |
| 48 | 48 | } |
| 49 | 49 | |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | private function printFileRecap(TestResultContainer $testResultContainer, OutputInterface $output) |
| 34 | 34 | { |
| 35 | - if (! $testResultContainer->getTestResultFormat()->shouldPrintFilesRecap()) { |
|
| 35 | + if ( ! $testResultContainer->getTestResultFormat()->shouldPrintFilesRecap()) { |
|
| 36 | 36 | return; |
| 37 | 37 | } |
| 38 | 38 | |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public static function cleanUpDir($dir) |
| 33 | 33 | { |
| 34 | - if (! file_exists($dir)) { |
|
| 34 | + if ( ! file_exists($dir)) { |
|
| 35 | 35 | return false; |
| 36 | 36 | } |
| 37 | 37 | |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | ); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - if (! property_exists($log, 'message')) { |
|
| 40 | + if ( ! property_exists($log, 'message')) { |
|
| 41 | 41 | return new MuteTestResult(); |
| 42 | 42 | } |
| 43 | 43 | |