Completed
Push — master ( 08eb64...d9714d )
by Oskar
19s queued 15s
created
src/Hal/Metric/Class_/Component/MaintainabilityIndexVisitor.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,9 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Hal\Metric\Class_\Component;
3 3
 
4
-use Hal\Metric\FunctionMetric;
5 4
 use Hal\Metric\Metrics;
6
-use Hoa\Ruler\Model\Bag\Scalar;
7 5
 use PhpParser\Node;
8 6
 use PhpParser\Node\Stmt;
9 7
 use PhpParser\NodeVisitorAbstract;
Please login to merge, or discard this patch.
src/Hal/Component/File/Finder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,14 +71,14 @@
 block discarded – undo
71 71
         $files = array();
72 72
         foreach ($paths as $path) {
73 73
             if (is_dir($path)) {
74
-                $path = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
74
+                $path = rtrim($path, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR;
75 75
                 $directory = new RecursiveDirectoryIterator($path, $this->flags);
76 76
                 $iterator = new RecursiveIteratorIterator($directory);
77 77
 
78 78
                 $filterRegex = sprintf(
79 79
                     '`^%s%s$`',
80
-                    !empty($this->excludedDirs) ? '((?!' . implode('|', array_map('preg_quote', $this->excludedDirs)) . ').)+' : '.+',
81
-                    '\.(' . implode('|', $this->extensions) . ')'
80
+                    !empty($this->excludedDirs) ? '((?!'.implode('|', array_map('preg_quote', $this->excludedDirs)).').)+' : '.+',
81
+                    '\.('.implode('|', $this->extensions).')'
82 82
                 );
83 83
 
84 84
                 $filteredIterator = new RegexIterator(
Please login to merge, or discard this patch.
src/Hal/Metric/Helper/RoleOfMethodDetector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,13 +58,13 @@
 block discarded – undo
58 58
      */
59 59
     public function detects($node)
60 60
     {
61
-        if (! $node instanceof ClassMethod) {
61
+        if (!$node instanceof ClassMethod) {
62 62
             return null;
63 63
         }
64 64
 
65 65
         // build a fingerprint of the given method
66 66
         $fingerprintOfMethod = [];
67
-        iterate_over_node($node, function ($node) use (&$fingerprintOfMethod) {
67
+        iterate_over_node($node, function($node) use (&$fingerprintOfMethod) {
68 68
 
69 69
             // avoid cast
70 70
             if ($node instanceof Cast) {
Please login to merge, or discard this patch.