Completed
Pull Request — master (#448)
by
unknown
08:31
created
phpmetrics/src/Hal/Metric/System/Packages/Composer/Composer.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace Hal\Metric\System\Packages\Composer;
3 3
 
4 4
 use Hal\Application\Config\Config;
5
-use Hal\Application\Config\ConfigException;
6 5
 use Hal\Component\File\Finder;
7 6
 use Hal\Metric\Metrics;
8 7
 use Hal\Metric\ProjectMetric;
Please login to merge, or discard this patch.
phpmetrics/tests/Component/Tree/GraphDeduplicatedTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Test;
4 4
 
5
-use Hal\Component\Tree\Graph;
6 5
 use Hal\Component\Tree\GraphDeduplicated;
7 6
 use Hal\Component\Tree\Node;
8 7
 
Please login to merge, or discard this patch.
phpmetrics/tests/Component/Tree/Operator/SizeOfTreeTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Test;
4 4
 
5 5
 use Hal\Component\Tree\Graph;
6
-use Hal\Component\Tree\GraphFactory;
7 6
 use Hal\Component\Tree\Node;
8 7
 use Hal\Component\Tree\Operator\SizeOfTree;
9 8
 
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/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.