@@ -147,6 +147,6 @@ |
||
| 147 | 147 | */ |
| 148 | 148 | public function isEmpty() |
| 149 | 149 | { |
| 150 | - return (bool) count($this->filename); |
|
| 150 | + return (bool)count($this->filename); |
|
| 151 | 151 | } |
| 152 | 152 | } |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | case 'S': |
| 76 | 76 | $this->printWithCounter('<skipped>S</skipped>'); |
| 77 | 77 | break; |
| 78 | - case 'R': |
|
| 78 | + case 'R': |
|
| 79 | 79 | $this->printWithCounter('<risky>R</risky>'); |
| 80 | 80 | break; |
| 81 | 81 | case '.': |
@@ -24,13 +24,13 @@ |
||
| 24 | 24 | { |
| 25 | 25 | $process = $processEvent->getProcess(); |
| 26 | 26 | |
| 27 | - if ( ! $processEvent->has('output_interface')) { |
|
| 27 | + if (!$processEvent->has('output_interface')) { |
|
| 28 | 28 | throw new \BadMethodCallException('missing output_interface'); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | $this->output = $processEvent->get('output_interface'); |
| 32 | 32 | |
| 33 | - if ( ! $this->output instanceof OutputInterface) { |
|
| 33 | + if (!$this->output instanceof OutputInterface) { |
|
| 34 | 34 | throw new \BadMethodCallException('output_interface, unexpected type: ' . get_class($this->output)); |
| 35 | 35 | } |
| 36 | 36 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | { |
| 34 | 34 | $filePath = $this->fileName->generate($process); |
| 35 | 35 | |
| 36 | - if ( ! file_exists($filePath)) { |
|
| 36 | + if (!file_exists($filePath)) { |
|
| 37 | 37 | throw new JSONLogNotFoundException($process); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | public function onProcessTerminated(ProcessEvent $processEvent) |
| 40 | 40 | { |
| 41 | 41 | foreach ($this->parsers as $parser) { |
| 42 | - if ( ! $parser->parsingFoundResult($processEvent->getProcess())) { |
|
| 42 | + if (!$parser->parsingFoundResult($processEvent->getProcess())) { |
|
| 43 | 43 | return; |
| 44 | 44 | } |
| 45 | 45 | } |
@@ -25,8 +25,8 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public static function getCleanOutputFileContent($filename) |
| 27 | 27 | { |
| 28 | - $fullFilename = __DIR__ . DIRECTORY_SEPARATOR . $filename . '.json'; |
|
| 29 | - if ( ! file_exists($fullFilename)) { |
|
| 28 | + $fullFilename = __DIR__ . DIRECTORY_SEPARATOR . $filename . '.json'; |
|
| 29 | + if (!file_exists($fullFilename)) { |
|
| 30 | 30 | throw new \Exception('Unknown file stub: ' . $filename); |
| 31 | 31 | } |
| 32 | 32 | |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | */ |
| 112 | 112 | public function getTestWithSegFault() |
| 113 | 113 | { |
| 114 | - if ( ! extension_loaded('sigsegv')) { |
|
| 114 | + if (!extension_loaded('sigsegv')) { |
|
| 115 | 115 | $this->markTestIncomplete('The segfault cannot be reproduced in this environment'); |
| 116 | 116 | } |
| 117 | 117 | |
@@ -134,7 +134,7 @@ |
||
| 134 | 134 | { |
| 135 | 135 | $phpunitVersion = new \PHPUnit_Runner_Version(); |
| 136 | 136 | |
| 137 | - if ( ! preg_match('/^5\./', $phpunitVersion->id())) { |
|
| 137 | + if (!preg_match('/^5\./', $phpunitVersion->id())) { |
|
| 138 | 138 | $this->markTestSkipped('PHPUnit < 5 in this env, warnings are not present.'); |
| 139 | 139 | } |
| 140 | 140 | |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Paraunit\Parser; |
| 4 | 4 | |
| 5 | 5 | use Paraunit\Exception\JSONLogNotFoundException; |
| 6 | -use Paraunit\Exception\RecoverableTestErrorException; |
|
| 7 | 6 | use Paraunit\Lifecycle\ProcessEvent; |
| 8 | 7 | use Paraunit\Process\ParaunitProcessAbstract; |
| 9 | 8 | use Paraunit\Process\ProcessResultInterface; |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * @return \string[] |
|
| 42 | + * @return integer[] |
|
| 43 | 43 | */ |
| 44 | 44 | public function getFileNames() |
| 45 | 45 | { |