@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | use Hal\Report\Html\ViewHelper; |
4 | 4 | |
5 | -require __DIR__ . '/_header.php'; |
|
5 | +require __DIR__.'/_header.php'; |
|
6 | 6 | /** @var ViewHelper $viewHelper */ |
7 | 7 | $viewHelper = $this->viewHelper; |
8 | 8 | ?> |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | </div> |
97 | 97 | </div> |
98 | 98 | </div> |
99 | - <?php if($this->isHomePage()) {?> |
|
99 | + <?php if ($this->isHomePage()) {?> |
|
100 | 100 | <div class="column"> |
101 | 101 | <div class="bloc" style="min-height: 475px;"> |
102 | 102 | <div class="label"> |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | <div class="help number-alternate"><div class="help-inner">No composer.json file found</div></div> |
110 | 110 | <?php } else {?> |
111 | 111 | <div class="number"> |
112 | - <?php echo count($packages);?> dependencies |
|
112 | + <?php echo count($packages); ?> dependencies |
|
113 | 113 | </div> |
114 | 114 | <?php } ?> |
115 | 115 | |
@@ -142,9 +142,9 @@ discard block |
||
142 | 142 | } |
143 | 143 | } |
144 | 144 | ?> |
145 | - chartLicenses(<?php echo json_encode(array_values($json));?>); |
|
145 | + chartLicenses(<?php echo json_encode(array_values($json)); ?>); |
|
146 | 146 | } |
147 | 147 | }; |
148 | 148 | </script> |
149 | 149 | |
150 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
150 | +<?php require __DIR__.'/_footer.php'; ?> |
@@ -1,5 +1,5 @@ discard block |
||
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"> |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | </div> |
41 | 41 | </div> |
42 | 42 | </div> |
43 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
43 | +<?php require __DIR__.'/_footer.php'; ?> |
|
44 | 44 | <?php |
45 | 45 | $spots = []; |
46 | 46 | foreach ($this->sharedMetrics->packages as $each) { |
@@ -1,8 +1,8 @@ discard block |
||
1 | -<?php require __DIR__ . '/_header.php'; ?> |
|
1 | +<?php require __DIR__.'/_header.php'; ?> |
|
2 | 2 | |
3 | 3 | <?php |
4 | 4 | $relations = []; |
5 | -$getPackageName = function ($name) { |
|
5 | +$getPackageName = function($name) { |
|
6 | 6 | return $name === '\\' ? 'global' : substr($name, 0, -1); |
7 | 7 | }; |
8 | 8 | foreach ($this->sharedMetrics->packages as $package) { |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | </div> |
42 | 42 | </div> |
43 | 43 | |
44 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
44 | +<?php require __DIR__.'/_footer.php'; ?> |
|
45 | 45 | |
46 | 46 | |
47 | 47 | <script> |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | 'exclude' => implode(',', $parsingConfiguration['excludes']), |
67 | 67 | ...array_merge( |
68 | 68 | ...array_map( |
69 | - fn (string $type, string $path): array => ['report-' . $type => $this->resolvePath($path)], |
|
69 | + fn (string $type, string $path): array => ['report-'.$type => $this->resolvePath($path)], |
|
70 | 70 | array_keys($parsingConfiguration['report']), |
71 | 71 | $parsingConfiguration['report'] |
72 | 72 | ) |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | private function resolvePath(string $path): string |
84 | 84 | { |
85 | 85 | if (DIRECTORY_SEPARATOR !== $path[0]) { |
86 | - return dirname($this->filename) . DIRECTORY_SEPARATOR . $path; |
|
86 | + return dirname($this->filename).DIRECTORY_SEPARATOR.$path; |
|
87 | 87 | } |
88 | 88 | return $path; |
89 | 89 | } |
@@ -33,10 +33,10 @@ |
||
33 | 33 | $this->reporterHandler->report($this->analyzer->process()); |
34 | 34 | $this->violationsChecker->check(); |
35 | 35 | } catch (Exception $e) { |
36 | - $this->output->writeln(PHP_EOL . '<error>' . $e->getMessage() . '</error>' . PHP_EOL); |
|
36 | + $this->output->writeln(PHP_EOL.'<error>'.$e->getMessage().'</error>'.PHP_EOL); |
|
37 | 37 | return 1; |
38 | 38 | } |
39 | - $this->output->writeln(PHP_EOL . '<success>Done</success>' . PHP_EOL); |
|
39 | + $this->output->writeln(PHP_EOL.'<success>Done</success>'.PHP_EOL); |
|
40 | 40 | return 0; |
41 | 41 | } |
42 | 42 | } |
@@ -21,8 +21,8 @@ |
||
21 | 21 | */ |
22 | 22 | public function run(): int |
23 | 23 | { |
24 | - $versionMsg = 'PhpMetrics %s <https://www.phpmetrics.org>' . PHP_EOL . |
|
25 | - 'by Jean-François Lépine <https://twitter.com/Halleck45>' . PHP_EOL; |
|
24 | + $versionMsg = 'PhpMetrics %s <https://www.phpmetrics.org>'.PHP_EOL. |
|
25 | + 'by Jean-François Lépine <https://twitter.com/Halleck45>'.PHP_EOL; |
|
26 | 26 | $this->output->writeln(sprintf($versionMsg, VersionInfo::getVersion())); |
27 | 27 | return 0; |
28 | 28 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function process(array $files): void |
30 | 30 | { |
31 | - array_map(static function (CalculableInterface $calculable) use ($files): void { |
|
31 | + array_map(static function(CalculableInterface $calculable) use ($files): void { |
|
32 | 32 | if ($calculable instanceof CalculableWithFilesInterface) { |
33 | 33 | $calculable->setFiles($files); |
34 | 34 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function report(Metrics $metrics): void |
30 | 30 | { |
31 | - array_map(static function (ReporterInterface $reporter) use ($metrics): void { |
|
31 | + array_map(static function(ReporterInterface $reporter) use ($metrics): void { |
|
32 | 32 | $reporter->generate($metrics); |
33 | 33 | }, $this->reporters); |
34 | 34 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | $help .= sprintf("\n %s%s", str_pad($metricName, 40), $description); |
34 | 34 | } |
35 | 35 | |
36 | - $this->output->writeln($help . PHP_EOL); |
|
36 | + $this->output->writeln($help.PHP_EOL); |
|
37 | 37 | return 0; |
38 | 38 | } |
39 | 39 | } |