Completed
Pull Request — master (#504)
by
unknown
30s
created
templates/html_report/_footer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 </div>
2 2
 <?php use Hal\Application\VersionInfo; ?>
3 3
 <!-- Sidebar -->
4
-<?php if(!isset($fullwidth) || $fullwidth === false) {?>
4
+<?php if (!isset($fullwidth) || $fullwidth === false) {?>
5 5
 <div id="sidebar">
6 6
     <div class="content">
7 7
         <div class="logo">
8
-            <a href="index.html"><img src="<?php echo $this->assetPath;?>images/phpmetrics-maintenability.png" alt="Logo PhpMetrics"></a>
8
+            <a href="index.html"><img src="<?php echo $this->assetPath; ?>images/phpmetrics-maintenability.png" alt="Logo PhpMetrics"></a>
9 9
             <h1>PhpMetrics</h1>
10 10
         </div>
11 11
         <div class="links">
@@ -25,10 +25,10 @@  discard block
 block discarded – undo
25 25
                             <path d="M0 0h24v24H0z" fill="none"/>
26 26
                             <path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z"/>
27 27
                         </svg>
28
-                        Violations (<?php echo $this->sharedMetrics->sum->violations->total;?>)
28
+                        Violations (<?php echo $this->sharedMetrics->sum->violations->total; ?>)
29 29
                     </a>
30 30
                 </li>
31
-                <?php if($this->isHomePage()) {?>
31
+                <?php if ($this->isHomePage()) {?>
32 32
                 <li>
33 33
                     <a href="composer.html">
34 34
                         <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" width="24px" height="24px">
Please login to merge, or discard this patch.
templates/html_report/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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'; ?>
Please login to merge, or discard this patch.
templates/html_report/packages.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
     <div class="row">
5 5
         <div class="column">
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
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) {
Please login to merge, or discard this patch.
templates/html_report/package_relations.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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>
Please login to merge, or discard this patch.
src/Hal/Application/Config/File/AbstractConfigFileReader.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Hal/Application/PhpMetrics.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,10 +33,10 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Hal/Application/VersionApplication.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Hal/Application/Workflow/Task/AnalyzerTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Hal/Application/ReporterHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.