Completed
Pull Request — master (#371)
by Löki
02:02
created
src/Hal/Violation/Class_/TooComplexMethodCode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
     public function apply(Metric $metric)
27 27
     {
28
-        if (! $metric instanceof ClassMetric) {
28
+        if (!$metric instanceof ClassMetric) {
29 29
             return;
30 30
         }
31 31
 
Please login to merge, or discard this patch.
src/Hal/Violation/Class_/TooComplexClassCode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
     public function apply(Metric $metric)
27 27
     {
28
-        if (! $metric instanceof ClassMetric) {
28
+        if (!$metric instanceof ClassMetric) {
29 29
             return;
30 30
         }
31 31
 
Please login to merge, or discard this patch.
src/Hal/Component/Ast/NodeTraverser.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
     /**
46 46
      * @param array $nodes
47
-     * @param array|NodeVisitor[] $visitors
47
+     * @param NodeVisitor[] $visitors
48 48
      * @return array
49 49
      */
50 50
     public function traverseArray(array $nodes, array $visitors) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     public function __construct(Mother $traverser, $stopCondition = null)
30 30
     {
31
-        if(null === $stopCondition) {
31
+        if (null === $stopCondition) {
32 32
             $stopCondition = function($node) {
33 33
                 if ($node instanceof Node\Stmt\Class_ || $node instanceof Node\Stmt\Interface_) {
34 34
                     return false;
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 }
97 97
 
98 98
 if (PHP_VERSION_ID >= 70000) {
99
-    class_alias(Php7NodeTraverser::class, __NAMESPACE__ . '\\NodeTraverser');
99
+    class_alias(Php7NodeTraverser::class, __NAMESPACE__.'\\NodeTraverser');
100 100
 } else {
101
-    class_alias(Php5NodeTraverser::class, __NAMESPACE__ . '\\NodeTraverser');
101
+    class_alias(Php5NodeTraverser::class, __NAMESPACE__.'\\NodeTraverser');
102 102
 }
Please login to merge, or discard this patch.
src/Hal/Metric/Consolidated.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
         }
68 68
 
69 69
         // sums
70
-        $sum = (object)[
70
+        $sum = (object) [
71 71
             'loc' => 0,
72 72
             'cloc' => 0,
73 73
             'lloc' => 0,
74 74
             'nbMethods' => 0,
75 75
         ];
76
-        $avg = (object)[
76
+        $avg = (object) [
77 77
             'wmc' => [],
78 78
             'ccn' => [],
79 79
             'bugs' => [],
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
                 $violations[$name]++;
166 166
             }
167 167
         }
168
-        $sum->violations = (object)$violations;
168
+        $sum->violations = (object) $violations;
169 169
 
170 170
 
171 171
         $this->avg = $avg;
Please login to merge, or discard this patch.