Completed
Pull Request — master (#448)
by
unknown
08:31
created
phpmetrics/src/Hal/Application/Config/File/ConfigFileReaderJson.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
     private function resolvePath($path)
92 92
     {
93 93
         if (DIRECTORY_SEPARATOR !== $path[0]) {
94
-             $path = dirname($this->filename) . DIRECTORY_SEPARATOR . $path;
94
+                $path = dirname($this->filename) . DIRECTORY_SEPARATOR . $path;
95 95
         }
96 96
 
97 97
         return $path;
Please login to merge, or discard this patch.
phpmetrics/tests/Metric/examples/halstead2.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 function maxi ($a, $b){
3
-    if ($a > $b) return $a;
3
+    if ($a > $b) {
4
+        return $a;
5
+    }
4 6
     return $b;
5 7
 }
6 8
\ No newline at end of file
Please login to merge, or discard this patch.
phpmetrics/tests/Metric/examples/externals1.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
     class A {
4 4
         public function foo($foo, C $c) : H
5 5
         {
6
-             $x = new B;
6
+                $x = new B;
7 7
             D::foo();
8 8
         }
9 9
     }
Please login to merge, or discard this patch.
phpmetrics/tests/Metric/examples/cyclomatic1.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,15 +14,15 @@
 block discarded – undo
14 14
         if(true) {
15 15
 
16 16
         } else {
17
-	        if (true) {
17
+            if (true) {
18 18
 
19
-	        } else if (true) {
19
+            } else if (true) {
20 20
 
21
-	        } elseif (true) {
21
+            } elseif (true) {
22 22
 
23
-	        } elseif (true) {
23
+            } elseif (true) {
24 24
 
25
-	        }
25
+            }
26 26
         }
27 27
     }
28 28
 
Please login to merge, or discard this patch.
phpmetrics/tests/Metric/examples/halstead4.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 function f_while($a){
3 3
     $i = 2;
4
-    if ($a < 0) return 0;
4
+    if ($a < 0) {
5
+        return 0;
6
+    }
5 7
     while ($a > 0){
6 8
         $a -= 100;
7 9
         $i *= 2;
Please login to merge, or discard this patch.