Completed
Pull Request — master (#512)
by Alan
21s
created
src/Hal/Metric/Class_/Structural/SystemComplexityVisitor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                     $fanout = [];
52 52
 
53 53
                     $parentNode = $node;
54
-                    iterate_over_node($node, function ($node) use (&$output, &$fanout, $parentNode) {
54
+                    iterate_over_node($node, function($node) use (&$output, &$fanout, $parentNode) {
55 55
                         switch (true) {
56 56
                             case $node instanceof Stmt\Return_:
57 57
                                 $output++;
@@ -61,14 +61,14 @@  discard block
 block discarded – undo
61 61
                                 if ('static' === $class || 'self' === $class) {
62 62
                                     $class = getNameOfNode($parentNode);
63 63
                                 }
64
-                                $fanout[] = $class . '::' . getNameOfNode($node->name) . '()';
64
+                                $fanout[] = $class.'::'.getNameOfNode($node->name).'()';
65 65
                                 break;
66 66
                             case $node instanceof Node\Expr\MethodCall:
67 67
                                 $class = getNameOfNode($node->var);
68 68
                                 if ('this' === $class) {
69 69
                                     $class = getNameOfNode($parentNode);
70 70
                                 }
71
-                                $fanout[] = $class . '->' . getNameOfNode($node->name) . '()';
71
+                                $fanout[] = $class.'->'.getNameOfNode($node->name).'()';
72 72
                                 break;
73 73
                         }
74 74
                     });
Please login to merge, or discard this patch.
src/Hal/Report/OpenMetrics/SummaryWriter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,6 +73,6 @@
 block discarded – undo
73 73
             )->withHelp($reportMetric[1])->getMetricsString();
74 74
         }
75 75
 
76
-        return implode("\n", $reportStrings) . "\n# EOF\n";
76
+        return implode("\n", $reportStrings)."\n# EOF\n";
77 77
     }
78 78
 }
Please login to merge, or discard this patch.
src/Hal/Report/OpenMetrics/Reporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
             return;
43 43
         }
44 44
         if (!file_exists(dirname($logFile)) || !is_writable(dirname($logFile))) {
45
-            throw new \RuntimeException('You don\'t have permissions to write OpenMetrics report in ' . $logFile);
45
+            throw new \RuntimeException('You don\'t have permissions to write OpenMetrics report in '.$logFile);
46 46
         }
47 47
 
48 48
         if (!class_exists(GaugeCollection::class)) {
Please login to merge, or discard this patch.