Completed
Push — master ( 88450a...6b817c )
by personal
02:00 queued 10s
created
templates/html_report/coupling.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
 <div class="row">
4 4
     <div class="column">
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
                         <td><span class="path"><?php echo $class['name']; ?></span></td>
27 27
                         <?php foreach (['afferentCoupling', 'efferentCoupling', 'instability', 'pageRank'] as $attribute) {?>
28 28
                             <td>
29
-                                <span class="badge" <?php echo gradientStyleFor($classes, $attribute, $class[$attribute]);?>);">
29
+                                <span class="badge" <?php echo gradientStyleFor($classes, $attribute, $class[$attribute]); ?>);">
30 30
                                 <?php echo isset($class[$attribute]) ? $class[$attribute] : ''; ?>
31 31
                                 </span>
32 32
                             </td>
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
 </div>
43 43
 
44
-<?php require __DIR__ . '/_footer.php'; ?>
44
+<?php require __DIR__.'/_footer.php'; ?>
45 45
 
46 46
 
47 47
 <script type="text/javascript">
Please login to merge, or discard this patch.
templates/html_report/oop.php 1 patch
Spacing   +3 added lines, -3 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
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                             <td><span class="path"><?php echo $class['name']; ?></span></td>
78 78
                             <?php foreach (['lcom', 'volume', 'ccn', 'ccnMethodMax', 'bugs', 'difficulty'] as $attribute) {?>
79 79
                                 <td>
80
-                                    <span class="badge" <?php echo gradientStyleFor($classes, $attribute, $class[$attribute]);?>);">
80
+                                    <span class="badge" <?php echo gradientStyleFor($classes, $attribute, $class[$attribute]); ?>);">
81 81
                                     <?php echo isset($class[$attribute]) ? $class[$attribute] : ''; ?>
82 82
                                     </span>
83 83
                                 </td>
@@ -90,4 +90,4 @@  discard block
 block discarded – undo
90 90
     </div>
91 91
 
92 92
 
93
-<?php require __DIR__ . '/_footer.php'; ?>
93
+<?php require __DIR__.'/_footer.php'; ?>
Please login to merge, or discard this patch.
templates/html_report/complexity.php 1 patch
Spacing   +3 added lines, -3 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">
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                             <td><span class="path"><?php echo $class['name']; ?></span></td>
75 75
                             <?php foreach (['wmc', 'ccn', 'ccnMethodMax', 'relativeSystemComplexity', 'relativeDataComplexity', 'relativeStructuralComplexity', 'bugs', 'kanDefect'] as $attribute) {?>
76 76
                                 <td>
77
-                                    <span class="badge" <?php echo gradientStyleFor($classes, $attribute, $class[$attribute]);?>);">
77
+                                    <span class="badge" <?php echo gradientStyleFor($classes, $attribute, $class[$attribute]); ?>);">
78 78
                                     <?php echo isset($class[$attribute]) ? $class[$attribute] : ''; ?>
79 79
                                     </span>
80 80
                                 </td>
@@ -90,4 +90,4 @@  discard block
 block discarded – undo
90 90
     </div>
91 91
 
92 92
 
93
-<?php require __DIR__ . '/_footer.php'; ?>
93
+<?php require __DIR__.'/_footer.php'; ?>
Please login to merge, or discard this patch.
src/functions.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     }
87 87
 
88 88
     if ($node instanceof \PhpParser\Node\Name\FullyQualified) {
89
-        return (string)$node;
89
+        return (string) $node;
90 90
     }
91 91
     if ($node instanceof \PhpParser\Node\Expr\New_) {
92 92
         return getNameOfNode($node->class);
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     }
98 98
 
99 99
     if ($node instanceof \PhpParser\Node\Name) {
100
-        return (string)implode($node->parts);
100
+        return (string) implode($node->parts);
101 101
     }
102 102
 
103 103
     if (isset($node->name) && $node->name instanceof \PhpParser\Node\Expr\Variable) {
@@ -125,11 +125,11 @@  discard block
 block discarded – undo
125 125
     }
126 126
 
127 127
     if (isset($node->name) && null === $node->name) {
128
-        return 'anonymous@' . spl_object_hash($node);
128
+        return 'anonymous@'.spl_object_hash($node);
129 129
     }
130 130
 
131 131
     if (isset($node->name)) {
132
-        return (string)$node->name;
132
+        return (string) $node->name;
133 133
     }
134 134
 
135 135
     return null;
@@ -147,10 +147,10 @@  discard block
 block discarded – undo
147 147
     }
148 148
     while (false !== ($file = readdir($dir))) {
149 149
         if (($file != '.') && ($file != '..')) {
150
-            if (is_dir($src . '/' . $file)) {
151
-                recurse_copy($src . '/' . $file, $dst . '/' . $file);
150
+            if (is_dir($src.'/'.$file)) {
151
+                recurse_copy($src.'/'.$file, $dst.'/'.$file);
152 152
             } else {
153
-                copy($src . '/' . $file, $dst . '/' . $file);
153
+                copy($src.'/'.$file, $dst.'/'.$file);
154 154
             }
155 155
         }
156 156
     }
@@ -175,16 +175,16 @@  discard block
 block discarded – undo
175 175
 {
176 176
     // memory cache
177 177
     static $caches;
178
-    if(null === $caches) {
178
+    if (null === $caches) {
179 179
         $caches = [];
180 180
     }
181 181
 
182
-    if(!isset($caches[$attribute])) {
182
+    if (!isset($caches[$attribute])) {
183 183
         // avoid to iterate over array too many times
184 184
         $max = 0;
185 185
         $min = 1;
186
-        foreach($array as $item) {
187
-            if(!isset($item[$attribute])) {
186
+        foreach ($array as $item) {
187
+            if (!isset($item[$attribute])) {
188 188
                 continue;
189 189
             }
190 190
 
Please login to merge, or discard this patch.