Completed
Pull Request — master (#93)
by Alessandro
02:47
created
src/Paraunit/Coverage/CoverageMerger.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 namespace Paraunit\Coverage;
5 5
 
6 6
 use Paraunit\Lifecycle\ProcessEvent;
7
-use Paraunit\Process\AbstractParaunitProcess;
8 7
 use Paraunit\Process\ParaunitProcessInterface;
9 8
 use Paraunit\Proxy\Coverage\CodeCoverage;
10 9
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Paraunit\Coverage;
5 5
 
Please login to merge, or discard this patch.
src/Paraunit/Parser/JSON/LogPrinter.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -292,6 +292,9 @@
 block discarded – undo
292 292
         return $this->logDirectory;
293 293
     }
294 294
 
295
+    /**
296
+     * @param string $string
297
+     */
295 298
     private function convertToUtf8($string): string
296 299
     {
297 300
         if (! $this->isUtf8($string)) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Paraunit\Parser\JSON;
5 5
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             $logFilename = $this->getLogFilename($suite);
175 175
 
176 176
             $logDir = dirname($logFilename);
177
-            if (! @mkdir($logDir, 0777, true) && ! is_dir($logDir)) {
177
+            if ( ! @mkdir($logDir, 0777, true) && ! is_dir($logDir)) {
178 178
                 throw new \RuntimeException('Cannot create folder for JSON logs');
179 179
             }
180 180
 
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
      */
256 256
     public function writeArray($buffer)
257 257
     {
258
-        array_walk_recursive($buffer, function (&$input) {
258
+        array_walk_recursive($buffer, function(&$input) {
259 259
             if (is_string($input)) {
260 260
                 $input = $this->convertToUtf8($input);
261 261
             }
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
 
295 295
     private function convertToUtf8($string): string
296 296
     {
297
-        if (! $this->isUtf8($string)) {
297
+        if ( ! $this->isUtf8($string)) {
298 298
             if (\function_exists('mb_convert_encoding')) {
299 299
                 return \mb_convert_encoding($string, 'UTF-8');
300 300
             }
Please login to merge, or discard this patch.
src/Paraunit/Lifecycle/ProcessEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Paraunit\Lifecycle;
5 5
 
Please login to merge, or discard this patch.
src/Paraunit/Lifecycle/AbstractEvent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Paraunit\Lifecycle;
5 5
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function get(string $contextParameterName)
42 42
     {
43
-        if (! $this->has($contextParameterName)) {
43
+        if ( ! $this->has($contextParameterName)) {
44 44
             throw new \LogicException('Cannot find parameter: ' . $contextParameterName);
45 45
         }
46 46
 
Please login to merge, or discard this patch.
src/Paraunit/Process/CliCommandInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Paraunit\Process;
5 5
 
Please login to merge, or discard this patch.
src/Paraunit/File/TempDirectory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Paraunit\File;
5 5
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             return;
80 80
         }
81 81
 
82
-        if (!mkdir($path) && !is_dir($path)) {
82
+        if ( ! mkdir($path) && ! is_dir($path)) {
83 83
             throw new \RuntimeException('Unable to create temporary directory ' . $path);
84 84
         }
85 85
     }
Please login to merge, or discard this patch.
src/Paraunit/File/Cleaner.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Paraunit\File;
5 5
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public static function cleanUpDir(string $dir): bool
49 49
     {
50
-        if (! file_exists($dir)) {
50
+        if ( ! file_exists($dir)) {
51 51
             return false;
52 52
         }
53 53
 
Please login to merge, or discard this patch.
src/Paraunit/Coverage/CoverageFetcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Paraunit\Coverage;
5 5
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     private function coverageFileIsValid(string $tempFilename): bool
55 55
     {
56
-        if (! file_exists($tempFilename)) {
56
+        if ( ! file_exists($tempFilename)) {
57 57
             return false;
58 58
         }
59 59
 
Please login to merge, or discard this patch.
src/Paraunit/Coverage/Processor/Xml.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Paraunit\Coverage\Processor;
5 5
 
Please login to merge, or discard this patch.