Completed
Pull Request — master (#127)
by
unknown
07:20 queued 24s
created
src/Paraunit/Coverage/CoverageFetcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
     private function coverageFileIsValid(string $tempFilename): bool
57 57
     {
58
-        if (! file_exists($tempFilename)) {
58
+        if ( ! file_exists($tempFilename)) {
59 59
             return false;
60 60
         }
61 61
 
Please login to merge, or discard this patch.
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/LogPrinter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
          */
258 258
         private function writeArray($buffer)
259 259
         {
260
-            array_walk_recursive($buffer, function (&$input) {
260
+            array_walk_recursive($buffer, function(&$input) {
261 261
                 if (is_string($input)) {
262 262
                     $input = $this->convertToUtf8($input);
263 263
                 }
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
         private function getLogFilename(): string
284 284
         {
285 285
             $logDir = $this->getLogDirectory();
286
-            if (! @mkdir($logDir, 0777, true) && ! is_dir($logDir)) {
286
+            if ( ! @mkdir($logDir, 0777, true) && ! is_dir($logDir)) {
287 287
                 throw new \RuntimeException('Cannot create folder for JSON logs');
288 288
             }
289 289
 
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
 
317 317
         private function convertToUtf8($string): string
318 318
         {
319
-            if (! \mb_detect_encoding($string, 'UTF-8', true)) {
319
+            if ( ! \mb_detect_encoding($string, 'UTF-8', true)) {
320 320
                 return \mb_convert_encoding($string, 'UTF-8');
321 321
             }
322 322
 
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.