Completed
Pull Request — master (#128)
by Alessandro
04:58 queued 02:19
created
src/Paraunit/Bin/run-paraunit.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 declare(strict_types=1);
4 4
 
5
-if (! ini_get('date.timezone') && ! date_default_timezone_get()) {
5
+if ( ! ini_get('date.timezone') && ! date_default_timezone_get()) {
6 6
     date_default_timezone_set('UTC');
7 7
 }
8 8
 
Please login to merge, or discard this patch.
src/Paraunit/Parser/JSON/GenericParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
     protected function logMatches(\stdClass $log): bool
65 65
     {
66
-        if (! property_exists($log, 'status')) {
66
+        if ( ! property_exists($log, 'status')) {
67 67
             return false;
68 68
         }
69 69
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             return true;
76 76
         }
77 77
 
78
-        if (! property_exists($log, 'message')) {
78
+        if ( ! property_exists($log, 'message')) {
79 79
             return false;
80 80
         }
81 81
 
Please login to merge, or discard this patch.
src/Paraunit/Parser/JSON/LogPrinterV6.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
      */
251 251
     private function writeArray($buffer)
252 252
     {
253
-        array_walk_recursive($buffer, function (&$input) {
253
+        array_walk_recursive($buffer, function(&$input) {
254 254
             if (is_string($input)) {
255 255
                 $input = $this->convertToUtf8($input);
256 256
             }
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
     private function getLogFilename(): string
277 277
     {
278 278
         $logDir = $this->getLogDirectory();
279
-        if (! @mkdir($logDir, 0777, true) && ! is_dir($logDir)) {
279
+        if ( ! @mkdir($logDir, 0777, true) && ! is_dir($logDir)) {
280 280
             throw new \RuntimeException('Cannot create folder for JSON logs');
281 281
         }
282 282
 
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
 
310 310
     private function convertToUtf8($string): string
311 311
     {
312
-        if (! \mb_detect_encoding($string, 'UTF-8', true)) {
312
+        if ( ! \mb_detect_encoding($string, 'UTF-8', true)) {
313 313
             return \mb_convert_encoding($string, 'UTF-8');
314 314
         }
315 315
 
Please login to merge, or discard this patch.
src/Paraunit/File/TempDirectory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
             return;
81 81
         }
82 82
 
83
-        if (! mkdir($path) && ! is_dir($path)) {
83
+        if ( ! mkdir($path) && ! is_dir($path)) {
84 84
             throw new \RuntimeException('Unable to create temporary directory ' . $path);
85 85
         }
86 86
     }
Please login to merge, or discard this patch.
src/Paraunit/File/Cleaner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      */
45 45
     public static function cleanUpDir(string $dir): bool
46 46
     {
47
-        if (! file_exists($dir)) {
47
+        if ( ! file_exists($dir)) {
48 48
             return false;
49 49
         }
50 50
 
Please login to merge, or discard this patch.
src/Paraunit/Runner/Runner.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             $this->pushToPipeline();
80 80
             usleep(100);
81 81
             $this->pipelineCollection->triggerProcessTermination();
82
-        } while (! $this->pipelineCollection->isEmpty() || ! $this->queuedProcesses->isEmpty());
82
+        } while ( ! $this->pipelineCollection->isEmpty() || ! $this->queuedProcesses->isEmpty());
83 83
 
84 84
         $this->eventDispatcher->dispatch(EngineEvent::END);
85 85
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
     public function pushToPipeline()
117 117
     {
118
-        while (! $this->queuedProcesses->isEmpty() && $this->pipelineCollection->hasEmptySlots()) {
118
+        while ( ! $this->queuedProcesses->isEmpty() && $this->pipelineCollection->hasEmptySlots()) {
119 119
             $this->pipelineCollection->push($this->queuedProcesses->dequeue());
120 120
         }
121 121
     }
Please login to merge, or discard this patch.
src/Paraunit/Command/CoverageCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
      */
70 70
     protected function execute(InputInterface $input, OutputInterface $output)
71 71
     {
72
-        if (! $this->hasChosenCoverageMethod($input)) {
72
+        if ( ! $this->hasChosenCoverageMethod($input)) {
73 73
             $coverageMethods = implode($this->coverageMethods, ', ');
74 74
 
75 75
             throw new \InvalidArgumentException('You should choose at least one method of coverage output between ' . $coverageMethods);
Please login to merge, or discard this patch.
src/Paraunit/Printer/FilesRecapPrinter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     private function printFileRecap(TestResultContainerInterface $testResultContainer)
35 35
     {
36
-        if (! $testResultContainer->getTestResultFormat()->shouldPrintFilesRecap()) {
36
+        if ( ! $testResultContainer->getTestResultFormat()->shouldPrintFilesRecap()) {
37 37
             return;
38 38
         }
39 39
 
Please login to merge, or discard this patch.
src/Paraunit/Printer/ProcessPrinter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 
69 69
     public function onEngineEnd()
70 70
     {
71
-        while (! $this->isRowFull()) {
71
+        while ( ! $this->isRowFull()) {
72 72
             $this->output->write(' ');
73 73
             ++$this->singleRowCounter;
74 74
         }
Please login to merge, or discard this patch.