Completed
Push — master ( d9714d...e1173d )
by Oskar
05:05 queued 02:52
created
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.
src/Hal/Metric/System/Packages/Composer/Packagist.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
         // get latest version
38 38
         $latest = '0.0.0';
39
-        foreach ((array)$json->package->versions as $version => $datas) {
39
+        foreach ((array) $json->package->versions as $version => $datas) {
40 40
             if ($version[0] === 'v') {
41 41
                 $version = substr($version, 1);
42 42
             }
Please login to merge, or discard this patch.