Completed
Pull Request — master (#299)
by Atlas
04:41
created
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/violations.php 1 patch
Spacing   +3 added lines, -3 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
 <?php
4 4
 $map = [
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                     <tbody>
58 58
                     <?php foreach ($classes as $class) {
59 59
                         if (sizeof($class['violations']) > 0) {
60
-                            $currentId = 'bloc-' . uniqid();
60
+                            $currentId = 'bloc-'.uniqid();
61 61
                             ?>
62 62
 
63 63
                             <tr>
@@ -107,4 +107,4 @@  discard block
 block discarded – undo
107 107
             }
108 108
         }
109 109
     </script>
110
-<?php require __DIR__ . '/_footer.php'; ?>
111 110
\ No newline at end of file
111
+<?php require __DIR__.'/_footer.php'; ?>
112 112
\ 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.
src/Hal/Report/Html/template/oop.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
 <?php
5 5
 
@@ -88,4 +88,4 @@  discard block
 block discarded – undo
88 88
     </div>
89 89
 
90 90
 
91
-<?php require __DIR__ . '/_footer.php'; ?>
92 91
\ No newline at end of file
92
+<?php require __DIR__.'/_footer.php'; ?>
93 93
\ No newline at end of file
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
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             $operands = [];
57 57
             $operators = [];
58 58
 
59
-            iterate_over_node($node, function ($node) use (&$operators, &$operands) {
59
+            iterate_over_node($node, function($node) use (&$operators, &$operands) {
60 60
 
61 61
                 if (
62 62
                     $node instanceof Node\Expr\BinaryOp
Please login to merge, or discard this patch.
src/Hal/Metric/Class_/Structural/SystemComplexityVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
                     $output = 0;
53 53
                     $fanout = [];
54 54
 
55
-                    iterate_over_node($node, function ($node) use (&$output, &$fanout) {
55
+                    iterate_over_node($node, function($node) use (&$output, &$fanout) {
56 56
                         switch (true) {
57 57
                             case $node instanceof Stmt\Return_:
58 58
                                 $output++;
Please login to merge, or discard this patch.
src/Hal/Metric/Class_/Structural/LcomVisitor.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,12 +45,12 @@  discard block
 block discarded – undo
45 45
             foreach ($node->stmts as $stmt) {
46 46
                 if ($stmt instanceof Stmt\ClassMethod) {
47 47
 
48
-                    if (!$graph->has($stmt->name . '()')) {
49
-                        $graph->insert(new TreeNode($stmt->name . '()'));
48
+                    if (!$graph->has($stmt->name.'()')) {
49
+                        $graph->insert(new TreeNode($stmt->name.'()'));
50 50
                     }
51
-                    $from = $graph->get($stmt->name . '()');
51
+                    $from = $graph->get($stmt->name.'()');
52 52
 
53
-                    \iterate_over_node($stmt, function ($node) use ($from, &$graph) {
53
+                    \iterate_over_node($stmt, function($node) use ($from, &$graph) {
54 54
 
55 55
                         if ($node instanceof Node\Expr\PropertyFetch && isset($node->var->name) && $node->var->name == 'this') {
56 56
                             $name = getNameOfNode($node);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                             if (!$node->var instanceof Node\Expr\New_ && isset($node->var->name) && getNameOfNode($node->var) === 'this') {
69 69
                                 // use of method call $this->xxx();
70 70
                                 // use of attribute $this->xxx;
71
-                                $name = getNameOfNode($node->name) . '()';
71
+                                $name = getNameOfNode($node->name).'()';
72 72
                                 if (!$graph->has($name)) {
73 73
                                     $graph->insert(new TreeNode($name));
74 74
                                 }
Please login to merge, or discard this patch.