@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php require __DIR__ . '/_header.php'; ?> |
|
1 | +<?php require __DIR__.'/_header.php'; ?> |
|
2 | 2 | |
3 | 3 | |
4 | 4 | <?php |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | if (count($array) > 1) { |
28 | 28 | $range = range(0.5, 1, .05); |
29 | 29 | foreach ($range as $percentile) { |
30 | - $json[] = (object)[ |
|
30 | + $json[] = (object) [ |
|
31 | 31 | 'lloc' => procentile($array, $percentile), |
32 | 32 | 'percentile' => $percentile * 100, |
33 | 33 | ]; |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | </div> |
80 | 80 | |
81 | 81 | |
82 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
82 | +<?php require __DIR__.'/_footer.php'; ?> |
|
83 | 83 | |
84 | 84 | |
85 | 85 | <script> |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -require __DIR__ . '/_header.php'; ?> |
|
2 | +require __DIR__.'/_header.php'; ?> |
|
3 | 3 | |
4 | 4 | <?php |
5 | 5 | |
@@ -89,4 +89,4 @@ discard block |
||
89 | 89 | </div> |
90 | 90 | |
91 | 91 | |
92 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
92 | +<?php require __DIR__.'/_footer.php'; ?> |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php require __DIR__ . '/_header.php'; ?> |
|
1 | +<?php require __DIR__.'/_header.php'; ?> |
|
2 | 2 | <div class="row"> |
3 | 3 | <div class="column"> |
4 | 4 | <div class="bloc bloc-number"> |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | <tbody id="contentClassRank" class="clusterize-content"> |
96 | 96 | <?php |
97 | 97 | $classesS = $classes; |
98 | - usort($classesS, function ($a, $b) { |
|
98 | + usort($classesS, function($a, $b) { |
|
99 | 99 | return strcmp($b['pageRank'], $a['pageRank']); |
100 | 100 | }); |
101 | 101 | //$classesS = array_slice($classesS, 0, 10); |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | <tbody id="contentPackages" class="clusterize-content"> |
138 | 138 | <?php |
139 | 139 | $packages = isset($project['composer'], $project['composer']['packages']) ? $project['composer']['packages'] : []; |
140 | - usort($packages, function ($a, $b) { |
|
140 | + usort($packages, function($a, $b) { |
|
141 | 141 | return strcmp($a->name, $b->name); |
142 | 142 | }); |
143 | 143 | foreach ($packages as $package) { ?> |
@@ -147,17 +147,17 @@ discard block |
||
147 | 147 | <?php if (0 !== count($packagesInstalled)) {?><td><?php echo $package->installed; ?></td><?php } ?> |
148 | 148 | <td><?php echo $package->latest; ?></td> |
149 | 149 | <td><?php foreach ($package->license as $license) { ?> |
150 | - <a target="_blank" href="https://spdx.org/licenses/<?php echo $license;?>.html"><?php echo $license;?></a> |
|
150 | + <a target="_blank" href="https://spdx.org/licenses/<?php echo $license; ?>.html"><?php echo $license; ?></a> |
|
151 | 151 | <?php } ?> |
152 | 152 | </td> |
153 | 153 | </tr> |
154 | 154 | <?php } ?> |
155 | 155 | </tbody> |
156 | 156 | </table> |
157 | - <?php if(0 === count($packages)) { ?> |
|
157 | + <?php if (0 === count($packages)) { ?> |
|
158 | 158 | <div>No composer.json file found</div> |
159 | 159 | <?php } ?> |
160 | - <?php if(0 === count($packagesInstalled)) { ?> |
|
160 | + <?php if (0 === count($packagesInstalled)) { ?> |
|
161 | 161 | <div>No composer.lock file found</div> |
162 | 162 | <?php } ?> |
163 | 163 | </div> |
@@ -207,9 +207,9 @@ discard block |
||
207 | 207 | } |
208 | 208 | } |
209 | 209 | ?> |
210 | - chartLicenses(<?php echo json_encode(array_values($json));?>); |
|
210 | + chartLicenses(<?php echo json_encode(array_values($json)); ?>); |
|
211 | 211 | } |
212 | 212 | }; |
213 | 213 | </script> |
214 | 214 | |
215 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
215 | +<?php require __DIR__.'/_footer.php'; ?> |
@@ -1,4 +1,4 @@ discard block |
||
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 |
||
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> |
@@ -107,4 +107,4 @@ discard block |
||
107 | 107 | } |
108 | 108 | } |
109 | 109 | </script> |
110 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
110 | +<?php require __DIR__.'/_footer.php'; ?> |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function writeln($message) |
25 | 25 | { |
26 | - $this->write(\PHP_EOL . $message); |
|
26 | + $this->write(\PHP_EOL.$message); |
|
27 | 27 | return $this; |
28 | 28 | } |
29 | 29 |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public function writeln($message) |
33 | 33 | { |
34 | - return $this->write(\PHP_EOL . $message); |
|
34 | + return $this->write(\PHP_EOL.$message); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function clearln() |
59 | 59 | { |
60 | - return $this->writeln("\x0D" . \PHP_EOL . "\x1B[2K"); |
|
60 | + return $this->writeln("\x0D".\PHP_EOL."\x1B[2K"); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -71,16 +71,16 @@ |
||
71 | 71 | $files = []; |
72 | 72 | |
73 | 73 | $regexForFilter = !empty($this->excludedDirs) |
74 | - ? '((?!' . \implode('|', \array_map('\preg_quote', $this->excludedDirs)) . ').)+' |
|
74 | + ? '((?!'.\implode('|', \array_map('\preg_quote', $this->excludedDirs)).').)+' |
|
75 | 75 | : '.+'; |
76 | 76 | |
77 | 77 | foreach ($paths as $path) { |
78 | 78 | if (\is_dir($path)) { |
79 | - $path = \rtrim($path, \DIRECTORY_SEPARATOR) . \DIRECTORY_SEPARATOR; |
|
79 | + $path = \rtrim($path, \DIRECTORY_SEPARATOR).\DIRECTORY_SEPARATOR; |
|
80 | 80 | $directory = new RecursiveDirectoryIterator($path, $this->flags); |
81 | 81 | $iterator = new RecursiveIteratorIterator($directory); |
82 | 82 | |
83 | - $filterRegex = \sprintf('`^%s%s$`', $regexForFilter, '\.(' . \implode('|', $this->extensions) . ')'); |
|
83 | + $filterRegex = \sprintf('`^%s%s$`', $regexForFilter, '\.('.\implode('|', $this->extensions).')'); |
|
84 | 84 | |
85 | 85 | $filteredIterator = new RegexIterator( |
86 | 86 | $iterator, |
@@ -32,7 +32,7 @@ |
||
32 | 32 | public function read(Config $config) |
33 | 33 | { |
34 | 34 | if (false === ($options = \parse_ini_file($this->filename))) { |
35 | - throw new InvalidArgumentException('Cannot parse configuration file ' . $this->filename . '.'); |
|
35 | + throw new InvalidArgumentException('Cannot parse configuration file '.$this->filename.'.'); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | $config->fromArray($options); |
@@ -37,13 +37,13 @@ |
||
37 | 37 | $jsonText = \file_get_contents($this->filename); |
38 | 38 | |
39 | 39 | if (false === $jsonText) { |
40 | - throw new InvalidArgumentException('Cannot read configuration file ' . $this->filename . '.'); |
|
40 | + throw new InvalidArgumentException('Cannot read configuration file '.$this->filename.'.'); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | $jsonData = \json_decode($jsonText, true); |
44 | 44 | |
45 | 45 | if (false === $jsonData) { |
46 | - throw new InvalidArgumentException('Bad json file ' . $this->filename . '.'); |
|
46 | + throw new InvalidArgumentException('Bad json file '.$this->filename.'.'); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | $config->fromArray($this->collapse($jsonData)); |