Completed
Push — master ( fa02a3...6d9ae8 )
by personal
45s queued 25s
created
src/Hal/Component/Issue/Issuer.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     }
131 131
 
132 132
     /**
133
-     * @param $status
133
+     * @param integer $status
134 134
      */
135 135
     protected function terminate($status)
136 136
     {
@@ -139,6 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
     /**
141 141
      * @param $log
142
+     * @param string $logfile
142 143
      * @return $this
143 144
      */
144 145
     protected function log($logfile, $log)
@@ -152,7 +153,7 @@  discard block
 block discarded – undo
152 153
     }
153 154
 
154 155
     /**
155
-     * @param $debugKey
156
+     * @param string $debugKey
156 157
      * @param $value
157 158
      * @return $this
158 159
      */
@@ -163,7 +164,7 @@  discard block
 block discarded – undo
163 164
     }
164 165
 
165 166
     /**
166
-     * @param $debugKey
167
+     * @param string $debugKey
167 168
      * @return $this
168 169
      */
169 170
     public function clear($debugKey)
Please login to merge, or discard this patch.
src/Hal/Report/Html/Reporter.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,8 +109,8 @@
 block discarded – undo
109 109
     }
110 110
 
111 111
     /**
112
-     * @param $source
113
-     * @param $destination
112
+     * @param string $source
113
+     * @param string $destination
114 114
      * @return $this
115 115
      */
116 116
     public function renderPage($source, $destination, Consolidated $consolidated, $history)
Please login to merge, or discard this patch.
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
         $consolidated = new Consolidated($metrics);
42 42
 
43 43
         // history of builds
44
-        $today = (object)[
44
+        $today = (object) [
45 45
             'avg' => $consolidated->getAvg(),
46 46
             'sum' => $consolidated->getSum()
47 47
         ];
48
-        $files = glob($logDir . '/js/history-*.json');
48
+        $files = glob($logDir.'/js/history-*.json');
49 49
         $next = count($files) + 1;
50 50
         $history = [];
51 51
         natsort($files);
@@ -54,39 +54,39 @@  discard block
 block discarded – undo
54 54
         }
55 55
 
56 56
         // copy sources
57
-        if (!file_exists($logDir . '/js')) {
58
-            mkdir($logDir . '/js', 0755, true);
57
+        if (!file_exists($logDir.'/js')) {
58
+            mkdir($logDir.'/js', 0755, true);
59 59
         }
60
-        if (!file_exists($logDir . '/css')) {
61
-            mkdir($logDir . '/css', 0755, true);
60
+        if (!file_exists($logDir.'/css')) {
61
+            mkdir($logDir.'/css', 0755, true);
62 62
         }
63
-        if (!file_exists($logDir . '/images')) {
64
-            mkdir($logDir . '/images', 0755, true);
63
+        if (!file_exists($logDir.'/images')) {
64
+            mkdir($logDir.'/images', 0755, true);
65 65
         }
66
-        if (!file_exists($logDir . '/fonts')) {
67
-            mkdir($logDir . '/fonts', 0755, true);
66
+        if (!file_exists($logDir.'/fonts')) {
67
+            mkdir($logDir.'/fonts', 0755, true);
68 68
         }
69
-        recurse_copy(__DIR__ . '/template/js', $logDir . '/js');
70
-        recurse_copy(__DIR__ . '/template/css', $logDir . '/css');
71
-        recurse_copy(__DIR__ . '/template/images', $logDir . '/images');
72
-        recurse_copy(__DIR__ . '/template/fonts', $logDir . '/fonts');
69
+        recurse_copy(__DIR__.'/template/js', $logDir.'/js');
70
+        recurse_copy(__DIR__.'/template/css', $logDir.'/css');
71
+        recurse_copy(__DIR__.'/template/images', $logDir.'/images');
72
+        recurse_copy(__DIR__.'/template/fonts', $logDir.'/fonts');
73 73
 
74 74
         // render dynamic pages
75
-        $this->renderPage(__DIR__ . '/template/index.php', $logDir . '/index.html', $consolidated, $history);
76
-        $this->renderPage(__DIR__ . '/template/loc.php', $logDir . '/loc.html', $consolidated, $history);
77
-        $this->renderPage(__DIR__ . '/template/relations.php', $logDir . '/relations.html', $consolidated, $history);
78
-        $this->renderPage(__DIR__ . '/template/coupling.php', $logDir . '/coupling.html', $consolidated, $history);
79
-        $this->renderPage(__DIR__ . '/template/all.php', $logDir . '/all.html', $consolidated, $history);
80
-        $this->renderPage(__DIR__ . '/template/oop.php', $logDir . '/oop.html', $consolidated, $history);
81
-        $this->renderPage(__DIR__ . '/template/complexity.php', $logDir . '/complexity.html', $consolidated, $history);
82
-        $this->renderPage(__DIR__ . '/template/panel.php', $logDir . '/panel.html', $consolidated, $history);
83
-        $this->renderPage(__DIR__ . '/template/violations.php', $logDir . '/violations.html', $consolidated, $history);
84
-        $this->renderPage(__DIR__ . '/template/packages.php', $logDir . '/packages.html', $consolidated, $history);
85
-        $this->renderPage(__DIR__ . '/template/package_relations.php', $logDir . '/package_relations.html', $consolidated, $history);
75
+        $this->renderPage(__DIR__.'/template/index.php', $logDir.'/index.html', $consolidated, $history);
76
+        $this->renderPage(__DIR__.'/template/loc.php', $logDir.'/loc.html', $consolidated, $history);
77
+        $this->renderPage(__DIR__.'/template/relations.php', $logDir.'/relations.html', $consolidated, $history);
78
+        $this->renderPage(__DIR__.'/template/coupling.php', $logDir.'/coupling.html', $consolidated, $history);
79
+        $this->renderPage(__DIR__.'/template/all.php', $logDir.'/all.html', $consolidated, $history);
80
+        $this->renderPage(__DIR__.'/template/oop.php', $logDir.'/oop.html', $consolidated, $history);
81
+        $this->renderPage(__DIR__.'/template/complexity.php', $logDir.'/complexity.html', $consolidated, $history);
82
+        $this->renderPage(__DIR__.'/template/panel.php', $logDir.'/panel.html', $consolidated, $history);
83
+        $this->renderPage(__DIR__.'/template/violations.php', $logDir.'/violations.html', $consolidated, $history);
84
+        $this->renderPage(__DIR__.'/template/packages.php', $logDir.'/packages.html', $consolidated, $history);
85
+        $this->renderPage(__DIR__.'/template/package_relations.php', $logDir.'/package_relations.html', $consolidated, $history);
86 86
         if ($this->config->has('git')) {
87
-            $this->renderPage(__DIR__ . '/template/git.php', $logDir . '/git.html', $consolidated, $history);
87
+            $this->renderPage(__DIR__.'/template/git.php', $logDir.'/git.html', $consolidated, $history);
88 88
         }
89
-        $this->renderPage(__DIR__ . '/template/junit.php', $logDir . '/junit.html', $consolidated, $history);
89
+        $this->renderPage(__DIR__.'/template/junit.php', $logDir.'/junit.html', $consolidated, $history);
90 90
 
91 91
         // js data
92 92
         file_put_contents(
@@ -100,8 +100,8 @@  discard block
 block discarded – undo
100 100
 
101 101
         // json data
102 102
         file_put_contents(
103
-            $logDir . '/js/classes.js',
104
-            'var classes = ' . json_encode($consolidated->getClasses(), JSON_PRETTY_PRINT)
103
+            $logDir.'/js/classes.js',
104
+            'var classes = '.json_encode($consolidated->getClasses(), JSON_PRETTY_PRINT)
105 105
         );
106 106
 
107 107
         $this->output->writeln(sprintf('HTML report generated in "%s" directory', $logDir));
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 
169 169
         $diff = $newValue - $oldValue;
170 170
         if ($diff > 0) {
171
-            $diff = '+' . $diff;
171
+            $diff = '+'.$diff;
172 172
         }
173 173
 
174 174
         $goodOrBad = 'neutral';
Please login to merge, or discard this patch.
src/Hal/Violation/Violations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     {
45 45
         $string = '';
46 46
         foreach ($this->data as $violation) {
47
-            $string .= $violation->getName() . ',';
47
+            $string .= $violation->getName().',';
48 48
         }
49 49
         return $string;
50 50
     }
Please login to merge, or discard this patch.
src/Hal/Report/Html/template/relations.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@  discard block
 block discarded – undo
1
-<?php require __DIR__ . '/_header.php'; ?>
1
+<?php require __DIR__.'/_header.php'; ?>
2 2
 
3 3
 <?php
4 4
 $relations = [];
5 5
 $classesCp = [];
6 6
 foreach ($classes as $class) {
7 7
 
8
-    $class['name'] = '\\' . $class['name'];
8
+    $class['name'] = '\\'.$class['name'];
9 9
     $classesCp[$class['name']] = $class;
10 10
     $classesCp[$class['name']]['externals'] = [];
11 11
 
12 12
 
13 13
     foreach ($class['externals'] as &$ext) {
14
-        $ext = '\\' . $ext;
14
+        $ext = '\\'.$ext;
15 15
         if (!isset($classes[$ext])) {
16 16
             $classesCp[$ext] = [
17 17
                 'name' => $ext,
@@ -22,10 +22,10 @@  discard block
 block discarded – undo
22 22
     }
23 23
 }
24 24
 foreach ($classesCp as $class) {
25
-    array_push($relations, (object)[
25
+    array_push($relations, (object) [
26 26
         'name' => $class['name'],
27 27
         'size' => 3000,
28
-        'relations' => (array)array_values(array_unique($class['externals'])),
28
+        'relations' => (array) array_values(array_unique($class['externals'])),
29 29
     ]);
30 30
 }
31 31
 ?>
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     </div>
41 41
 </div>
42 42
 
43
-<?php require __DIR__ . '/_footer.php'; ?>
43
+<?php require __DIR__.'/_footer.php'; ?>
44 44
 
45 45
 
46 46
 <script type="text/javascript">
Please login to merge, or discard this patch.
src/Hal/Report/Html/template/complexity.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-require __DIR__ . '/_header.php'; ?>
2
+require __DIR__.'/_header.php'; ?>
3 3
 
4 4
     <div class="row">
5 5
         <div class="column">
@@ -79,4 +79,4 @@  discard block
 block discarded – undo
79 79
     </div>
80 80
 
81 81
 
82
-<?php require __DIR__ . '/_footer.php'; ?>
83 82
\ No newline at end of file
83
+<?php require __DIR__.'/_footer.php'; ?>
84 84
\ No newline at end of file
Please login to merge, or discard this patch.
src/Hal/Report/Html/template/git.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-require __DIR__ . '/_header.php'; ?>
2
+require __DIR__.'/_header.php'; ?>
3 3
 
4 4
 
5 5
 <?php
@@ -12,12 +12,12 @@  discard block
 block discarded – undo
12 12
     $history = array_slice($history, -24);
13 13
     $json = [];
14 14
     foreach ($history as $date => $values) {
15
-        array_push($json, (object)[
15
+        array_push($json, (object) [
16 16
             'date' => $date,
17 17
             'key' => 'Additions',
18 18
             'value' => abs($values['additions']),
19 19
         ]);
20
-        array_push($json, (object)[
20
+        array_push($json, (object) [
21 21
             'date' => $date,
22 22
             'key' => 'Removes',
23 23
             'value' => abs($values['removes']),
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     </div>
95 95
 </div>
96 96
 
97
-<?php require __DIR__ . '/_footer.php'; ?>
97
+<?php require __DIR__.'/_footer.php'; ?>
98 98
 
99 99
 
100 100
 <script type="text/javascript">
Please login to merge, or discard this patch.
src/Hal/Report/Html/template/all.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 $fullwidth = true;
3
-require __DIR__ . '/_header.php'; ?>
3
+require __DIR__.'/_header.php'; ?>
4 4
 
5 5
 <?php
6 6
 
@@ -37,4 +37,4 @@  discard block
 block discarded – undo
37 37
             </div>
38 38
         </div>
39 39
     </div>
40
-<?php require __DIR__ . '/_footer.php'; ?>
41 40
\ No newline at end of file
41
+<?php require __DIR__.'/_footer.php'; ?>
42 42
\ No newline at end of file
Please login to merge, or discard this patch.
src/Hal/Report/Html/template/panel.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 $fullwidth = true;
3
-require __DIR__ . '/_header.php'; ?>
3
+require __DIR__.'/_header.php'; ?>
4 4
 
5 5
     <div class="row">
6 6
         <div class="column">
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                     <tbody>
82 82
                     <?php
83 83
                     $classesS = $classes;
84
-                    usort($classesS, function ($a, $b) {
84
+                    usort($classesS, function($a, $b) {
85 85
                         return strcmp($b['pageRank'], $a['pageRank']);
86 86
                     });
87 87
                     $classesS = array_slice($classesS, 0, 10);
@@ -128,4 +128,4 @@  discard block
 block discarded – undo
128 128
     </script>
129 129
 
130 130
 <?php
131
-require __DIR__ . '/_footer.php'; ?>
132 131
\ No newline at end of file
132
+require __DIR__.'/_footer.php'; ?>
133 133
\ No newline at end of file
Please login to merge, or discard this patch.
src/Hal/Report/Html/template/coupling.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php require __DIR__ . '/_header.php'; ?>
1
+<?php require __DIR__.'/_header.php'; ?>
2 2
 
3 3
 <div class="row">
4 4
     <div class="column">
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
 </div>
40 40
 
41
-<?php require __DIR__ . '/_footer.php'; ?>
41
+<?php require __DIR__.'/_footer.php'; ?>
42 42
 
43 43
 
44 44
 <script type="text/javascript">
Please login to merge, or discard this patch.