Completed
Pull Request — master (#467)
by Roel
29s
created
src/Hal/Report/Json/SummaryReporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
             return;
44 44
         }
45 45
         if (!file_exists(dirname($logFile)) || !is_writable(dirname($logFile))) {
46
-            throw new \RuntimeException('You don\'t have permissions to write JSON report in ' . $logFile);
46
+            throw new \RuntimeException('You don\'t have permissions to write JSON report in '.$logFile);
47 47
         }
48 48
 
49 49
         file_put_contents($logFile, json_encode((new SummaryWriter($metrics, new Consolidated($metrics)))->getAsArray(), JSON_PRETTY_PRINT));
Please login to merge, or discard this patch.
src/Hal/Report/SummaryWriter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -216,9 +216,9 @@
 block discarded – undo
216 216
         $previousCategory = null;
217 217
         foreach ($this->summary as $key => $value) {
218 218
             if ($previousCategory !== $value['categoryName']) {
219
-                $output .= PHP_EOL . $value['categoryName'] . PHP_EOL;
219
+                $output .= PHP_EOL.$value['categoryName'].PHP_EOL;
220 220
             }
221
-            $output .= "  " . $value['string'] . ": " . $value['displayValue'] . PHP_EOL;
221
+            $output .= "  ".$value['string'].": ".$value['displayValue'].PHP_EOL;
222 222
 
223 223
             $previousCategory = $value['categoryName'];
224 224
         }
Please login to merge, or discard this patch.