Completed
Push — master ( c43217...d06016 )
by personal
22s queued 13s
created
templates/html_report/violations.php 1 patch
Spacing   +4 added lines, -4 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 (count($class['violations']) > 0) {
60
-                            $currentId = 'bloc-' . uniqid('', true);
60
+                            $currentId = 'bloc-'.uniqid('', true);
61 61
                             ?>
62 62
 
63 63
                             <tr>
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                     <tbody>
109 109
                     <?php foreach ($packages as $package) {
110 110
                         if (count($package['violations']) > 0) {
111
-                            $currentId = 'bloc-' . uniqid();
111
+                            $currentId = 'bloc-'.uniqid();
112 112
                             ?>
113 113
 
114 114
                             <tr>
@@ -158,4 +158,4 @@  discard block
 block discarded – undo
158 158
             }
159 159
         }
160 160
     </script>
161
-<?php require __DIR__ . '/_footer.php'; ?>
161
+<?php require __DIR__.'/_footer.php'; ?>
Please login to merge, or discard this patch.
templates/html_report/panel.php 1 patch
Spacing   +5 added lines, -5 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, static function ($a, $b) {
84
+                    usort($classesS, static function($a, $b) {
85 85
                         return strcmp($b['pageRank'], $a['pageRank']);
86 86
                     });
87 87
                     $classesS = array_slice($classesS, 0, 10);
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
                                 $badgeTitleMI = 'Maintainability Index';
95 95
                                 $mi = isset($class['mi']) ? $class['mi'] : '';
96 96
                                 ?>
97
-                                <span class="badge" title="<?php echo $badgeTitleMI;?>"><?php echo $mi;?></span>
98
-                                <span class="badge" title="<?php echo $badgeTitleMIWOC;?>"><?php echo $mIwoC;?></span>
97
+                                <span class="badge" title="<?php echo $badgeTitleMI; ?>"><?php echo $mi; ?></span>
98
+                                <span class="badge" title="<?php echo $badgeTitleMIWOC; ?>"><?php echo $mIwoC; ?></span>
99 99
                             </td>
100 100
                             <td><?php echo $class['pageRank']; ?></td>
101 101
                         </tr>
@@ -147,4 +147,4 @@  discard block
 block discarded – undo
147 147
     </script>
148 148
 
149 149
 <?php
150
-require __DIR__ . '/_footer.php'; ?>
150
+require __DIR__.'/_footer.php'; ?>
Please login to merge, or discard this patch.
templates/html_report/composer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@  discard block
 block discarded – undo
1 1
 <?php
2
-require __DIR__ . '/_header.php';
2
+require __DIR__.'/_header.php';
3 3
 
4 4
 $packages = isset($project['composer']['packages']) ? $project['composer']['packages'] : [];
5
-usort($packages, function ($a, $b) {
5
+usort($packages, function($a, $b) {
6 6
     return strcmp($a->name, $b->name);
7 7
 });
8 8
 if ([] === $packages) {
9 9
     echo '<div class="row"><div class="column"><div class="bloc">No composer.json file found in this project</div></div></div>';
10
-    require __DIR__ . '/_footer.php';
10
+    require __DIR__.'/_footer.php';
11 11
     return;
12 12
 }
13 13
 ?>
@@ -95,4 +95,4 @@  discard block
 block discarded – undo
95 95
     </div>
96 96
 </div>
97 97
 
98
-<?php require __DIR__ . '/_footer.php'; ?>
98
+<?php require __DIR__.'/_footer.php'; ?>
Please login to merge, or discard this patch.
templates/html_report/_header.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,10 +57,10 @@
 block discarded – undo
57 57
         <?php if ([] !== $this->groups) {?>
58 58
         <div class="content-full group-tabs">
59 59
             <ul class="tabs">
60
-                <li class="<?php if(!$this->currentGroup) { echo 'active'; }?>"><a href="<?php echo $this->assetPath;?>index.html">All</a></li>
60
+                <li class="<?php if (!$this->currentGroup) { echo 'active'; }?>"><a href="<?php echo $this->assetPath; ?>index.html">All</a></li>
61 61
                 <?php foreach ($this->groups as $group) { ?>
62 62
                     <li class="<?php if ($group->getName() === $this->currentGroup) { echo 'active'; }?> ">
63
-                        <a href="<?php echo $this->assetPath . $group->getName();?>/index.html"><?php echo $group->getName();?></a>
63
+                        <a href="<?php echo $this->assetPath.$group->getName(); ?>/index.html"><?php echo $group->getName(); ?></a>
64 64
                     </li>
65 65
                 <?php } ?>
66 66
             </ul>
Please login to merge, or discard this patch.
templates/html_report/loc.php 1 patch
Spacing   +5 added lines, -5 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
 
4 4
 <?php
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
 
14 14
 // 2. percentile map
15 15
 $json = [];
16
-if(count($array) > 1) {
16
+if (count($array) > 1) {
17 17
     $range = range(0.5, 1, .05);
18 18
     foreach ($range as $percentile) {
19
-        $json[] = (object)[
19
+        $json[] = (object) [
20 20
             'lloc' => percentile($array, $percentile),
21 21
             'percentile' => round($percentile * 100),
22 22
         ];
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                         <td><span class="path"><?php echo $class['name']; ?></span></td>
58 58
                         <?php foreach (['lloc', 'cloc', 'volume', 'intelligentContent', 'commentWeight'] as $attribute) {?>
59 59
                             <td>
60
-                                <span class="badge" <?php echo gradientStyleFor($classes, $attribute, $class[$attribute]);?>>
60
+                                <span class="badge" <?php echo gradientStyleFor($classes, $attribute, $class[$attribute]); ?>>
61 61
                                 <?php echo isset($class[$attribute]) ? $class[$attribute] : ''; ?>
62 62
                                 </span>
63 63
                             </td>
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 </div>
71 71
 
72 72
 
73
-<?php require __DIR__ . '/_footer.php'; ?>
73
+<?php require __DIR__.'/_footer.php'; ?>
74 74
 
75 75
 
76 76
 <script>
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">
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
                             <td><span class="path"><?php echo $class['name']; ?></span></td>
76 76
                             <?php foreach (['wmc', 'ccn', 'ccnMethodMax', 'relativeSystemComplexity', 'relativeDataComplexity', 'relativeStructuralComplexity', 'bugs', 'kanDefect'] as $attribute) {?>
77 77
                                 <td>
78
-                                    <span class="badge" <?php echo gradientStyleFor($classes, $attribute, $class[$attribute]);?>>
78
+                                    <span class="badge" <?php echo gradientStyleFor($classes, $attribute, $class[$attribute]); ?>>
79 79
                                     <?php echo isset($class[$attribute]) ? $class[$attribute] : ''; ?>
80 80
                                     </span>
81 81
                                 </td>
@@ -91,4 +91,4 @@  discard block
 block discarded – undo
91 91
     </div>
92 92
 
93 93
 
94
-<?php require __DIR__ . '/_footer.php'; ?>
94
+<?php require __DIR__.'/_footer.php'; ?>
Please login to merge, or discard this patch.
src/Hal/Component/File/Finder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,15 +59,15 @@
 block discarded – undo
59 59
         $files = [];
60 60
         foreach ($paths as $path) {
61 61
             if (is_dir($path)) {
62
-                $path = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
62
+                $path = rtrim($path, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR;
63 63
                 $directory = new RecursiveDirectoryIterator($path);
64 64
                 $iterator = new RecursiveIteratorIterator($directory);
65 65
 
66 66
                 $filterRegex = sprintf(
67 67
                     '`^%s%s%s$`',
68 68
                     preg_quote($path, '`'),
69
-                    !empty($this->excludedDirs) ? '((?!' . implode('|', array_map('preg_quote', $this->excludedDirs)) . ').)+' : '.+',
70
-                    '\.(' . implode('|', $this->extensions) . ')'
69
+                    !empty($this->excludedDirs) ? '((?!'.implode('|', array_map('preg_quote', $this->excludedDirs)).').)+' : '.+',
70
+                    '\.('.implode('|', $this->extensions).')'
71 71
                 );
72 72
 
73 73
                 $filteredIterator = new RegexIterator(
Please login to merge, or discard this patch.
src/Hal/Report/Json/SummaryReporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             return;
42 42
         }
43 43
         if (!file_exists(dirname($logFile)) || !is_writable(dirname($logFile))) {
44
-            throw new \RuntimeException('You don\'t have permissions to write JSON report in ' . $logFile);
44
+            throw new \RuntimeException('You don\'t have permissions to write JSON report in '.$logFile);
45 45
         }
46 46
 
47 47
         $summaryWriter = new SummaryWriter($metrics, new Consolidated($metrics), $this->config);
Please login to merge, or discard this patch.