Completed
Push — master ( 1af926...5d5b5a )
by
unknown
05:35 queued 04:17
created
src/Hal/Application/Analyze.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
         $metrics = new Metrics();
79 79
 
80 80
         // traverse all
81
-        $whenToStop = function () {
81
+        $whenToStop = function() {
82 82
             return true;
83 83
         };
84 84
 
Please login to merge, or discard this patch.
src/Hal/Metric/Class_/Complexity/CyclomaticComplexityVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
             foreach ($node->stmts as $stmt) {
65 65
                 if ($stmt instanceof Stmt\ClassMethod) {
66 66
                     // iterate over children, recursively
67
-                    $cb = function ($node) use (&$cb) {
67
+                    $cb = function($node) use (&$cb) {
68 68
                         $ccn = 0;
69 69
 
70 70
                         foreach (get_object_vars($node) as $name => $member) {
Please login to merge, or discard this patch.
src/Hal/Metric/Class_/Text/HalsteadVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
             $operands = [];
58 58
             $operators = [];
59 59
 
60
-            iterate_over_node($node, function ($node) use (&$operators, &$operands) {
60
+            iterate_over_node($node, function($node) use (&$operators, &$operands) {
61 61
 
62 62
                 if ($node instanceof Node\Expr\BinaryOp
63 63
                     || $node instanceof Node\Expr\AssignOp
Please login to merge, or discard this patch.
src/Hal/Metric/System/Packages/Composer/Composer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         foreach ($rawRequirements as $requirement => $version) {
45 45
             $package = $packagist->get($requirement);
46 46
 
47
-            $packages[$requirement] = (object)[
47
+            $packages[$requirement] = (object) [
48 48
                 'name' => $requirement,
49 49
                 'required' => $version,
50 50
                 'installed' => isset($rawInstalled[$requirement]) ? $rawInstalled[$requirement] : null,
@@ -75,13 +75,13 @@  discard block
 block discarded – undo
75 75
             if (!\preg_match('/composer(-dist)?\.json/', $filename)) {
76 76
                 continue;
77 77
             }
78
-            $composerJson = (object)\json_decode(\file_get_contents($filename));
78
+            $composerJson = (object) \json_decode(\file_get_contents($filename));
79 79
 
80 80
             if (!isset($composerJson->require)) {
81 81
                 continue;
82 82
             }
83 83
 
84
-            $rawRequirements[] = (array)$composerJson->require;
84
+            $rawRequirements[] = (array) $composerJson->require;
85 85
         }
86 86
 
87 87
         return \call_user_func_array('array_merge', $rawRequirements);
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             if (false === \strpos($filename, 'composer.lock')) {
106 106
                 continue;
107 107
             }
108
-            $composerLockJson = (object)\json_decode(\file_get_contents($filename));
108
+            $composerLockJson = (object) \json_decode(\file_get_contents($filename));
109 109
 
110 110
             if (!isset($composerLockJson->packages)) {
111 111
                 continue;
Please login to merge, or discard this patch.
src/Hal/Application/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $output = new CliOutput();
23 23
 
24 24
         // issues and debug
25
-        $issuer = (new Issuer($output));//->enable();
25
+        $issuer = (new Issuer($output)); //->enable();
26 26
 
27 27
         // config
28 28
         $config = (new Parser())->parse($argv);
Please login to merge, or discard this patch.
src/Hal/Component/Output/ProgressBar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
             return
99 99
                 0 >= version_compare(
100 100
                     '10.0.10586',
101
-                    PHP_WINDOWS_VERSION_MAJOR . '.' . PHP_WINDOWS_VERSION_MINOR . '.' . PHP_WINDOWS_VERSION_BUILD
101
+                    PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD
102 102
                 )
103 103
                 || false !== getenv('ANSICON')
104 104
                 || 'ON' === getenv('ConEmuANSI')
Please login to merge, or discard this patch.
src/Hal/Report/Html/Reporter.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
         $consolidated = new Consolidated($metrics);
45 45
 
46 46
         // history of builds
47
-        $today = (object)[
47
+        $today = (object) [
48 48
             'avg' => $consolidated->getAvg(),
49 49
             'sum' => $consolidated->getSum()
50 50
         ];
51
-        $files = glob($logDir . '/js/history-*.json');
51
+        $files = glob($logDir.'/js/history-*.json');
52 52
         $next = count($files) + 1;
53 53
         $history = [];
54 54
         natsort($files);
@@ -57,39 +57,39 @@  discard block
 block discarded – undo
57 57
         }
58 58
 
59 59
         // copy sources
60
-        if (!file_exists($logDir . '/js')) {
60
+        if (!file_exists($logDir.'/js')) {
61 61
             mkdir($logDir.'/js', 0755, true);
62 62
         }
63
-        if (!file_exists($logDir . '/css')) {
63
+        if (!file_exists($logDir.'/css')) {
64 64
             mkdir($logDir.'/css', 0755, true);
65 65
         }
66
-        if (!file_exists($logDir . '/images')) {
66
+        if (!file_exists($logDir.'/images')) {
67 67
             mkdir($logDir.'/images', 0755, true);
68 68
         }
69
-        if (!file_exists($logDir . '/fonts')) {
69
+        if (!file_exists($logDir.'/fonts')) {
70 70
             mkdir($logDir.'/fonts', 0755, true);
71 71
         }
72
-        recurse_copy(__DIR__ . '/template/js', $logDir . '/js');
73
-        recurse_copy(__DIR__ . '/template/css', $logDir . '/css');
74
-        recurse_copy(__DIR__ . '/template/images', $logDir . '/images');
75
-        recurse_copy(__DIR__ . '/template/fonts', $logDir . '/fonts');
72
+        recurse_copy(__DIR__.'/template/js', $logDir.'/js');
73
+        recurse_copy(__DIR__.'/template/css', $logDir.'/css');
74
+        recurse_copy(__DIR__.'/template/images', $logDir.'/images');
75
+        recurse_copy(__DIR__.'/template/fonts', $logDir.'/fonts');
76 76
 
77 77
         // render dynamic pages
78
-        $this->renderPage(__DIR__ . '/template/index.php', $logDir . '/index.html', $consolidated, $history);
79
-        $this->renderPage(__DIR__ . '/template/loc.php', $logDir . '/loc.html', $consolidated, $history);
80
-        $this->renderPage(__DIR__ . '/template/relations.php', $logDir . '/relations.html', $consolidated, $history);
81
-        $this->renderPage(__DIR__ . '/template/coupling.php', $logDir . '/coupling.html', $consolidated, $history);
82
-        $this->renderPage(__DIR__ . '/template/all.php', $logDir . '/all.html', $consolidated, $history);
83
-        $this->renderPage(__DIR__ . '/template/oop.php', $logDir . '/oop.html', $consolidated, $history);
84
-        $this->renderPage(__DIR__ . '/template/complexity.php', $logDir . '/complexity.html', $consolidated, $history);
85
-        $this->renderPage(__DIR__ . '/template/panel.php', $logDir . '/panel.html', $consolidated, $history);
86
-        $this->renderPage(__DIR__ . '/template/violations.php', $logDir . '/violations.html', $consolidated, $history);
87
-        $this->renderPage(__DIR__ . '/template/packages.php', $logDir . '/packages.html', $consolidated, $history);
88
-        $this->renderPage(__DIR__ . '/template/package_relations.php', $logDir . '/package_relations.html', $consolidated, $history);
78
+        $this->renderPage(__DIR__.'/template/index.php', $logDir.'/index.html', $consolidated, $history);
79
+        $this->renderPage(__DIR__.'/template/loc.php', $logDir.'/loc.html', $consolidated, $history);
80
+        $this->renderPage(__DIR__.'/template/relations.php', $logDir.'/relations.html', $consolidated, $history);
81
+        $this->renderPage(__DIR__.'/template/coupling.php', $logDir.'/coupling.html', $consolidated, $history);
82
+        $this->renderPage(__DIR__.'/template/all.php', $logDir.'/all.html', $consolidated, $history);
83
+        $this->renderPage(__DIR__.'/template/oop.php', $logDir.'/oop.html', $consolidated, $history);
84
+        $this->renderPage(__DIR__.'/template/complexity.php', $logDir.'/complexity.html', $consolidated, $history);
85
+        $this->renderPage(__DIR__.'/template/panel.php', $logDir.'/panel.html', $consolidated, $history);
86
+        $this->renderPage(__DIR__.'/template/violations.php', $logDir.'/violations.html', $consolidated, $history);
87
+        $this->renderPage(__DIR__.'/template/packages.php', $logDir.'/packages.html', $consolidated, $history);
88
+        $this->renderPage(__DIR__.'/template/package_relations.php', $logDir.'/package_relations.html', $consolidated, $history);
89 89
         if ($this->config->has('git')) {
90
-            $this->renderPage(__DIR__ . '/template/git.php', $logDir . '/git.html', $consolidated, $history);
90
+            $this->renderPage(__DIR__.'/template/git.php', $logDir.'/git.html', $consolidated, $history);
91 91
         }
92
-        $this->renderPage(__DIR__ . '/template/junit.php', $logDir . '/junit.html', $consolidated, $history);
92
+        $this->renderPage(__DIR__.'/template/junit.php', $logDir.'/junit.html', $consolidated, $history);
93 93
 
94 94
         // js data
95 95
         file_put_contents(
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
 
104 104
         // json data
105 105
         file_put_contents(
106
-            $logDir . '/js/classes.js',
107
-            'var classes = ' . json_encode($consolidated->getClasses(), JSON_PRETTY_PRINT)
106
+            $logDir.'/js/classes.js',
107
+            'var classes = '.json_encode($consolidated->getClasses(), JSON_PRETTY_PRINT)
108 108
         );
109 109
 
110 110
         $this->output->writeln(sprintf('HTML report generated in "%s" directory', $logDir));
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 
173 173
         $diff = $newValue - $oldValue;
174 174
         if ($diff > 0) {
175
-            $diff = '+' . $diff;
175
+            $diff = '+'.$diff;
176 176
         }
177 177
 
178 178
         $goodOrBad = 'neutral';
Please login to merge, or discard this patch.