Passed
Pull Request — master (#270)
by Viktor
02:17
created
src/Result/Render/JsonResultsRenderer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Churn\Result\Render;
4 4
 
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public function render(OutputInterface $output, array $results): void
18 18
     {
19
-        $data = array_map(static function (array $result): array {
19
+        $data = array_map(static function(array $result): array {
20 20
             return [
21 21
                 'file' => $result[0],
22 22
                 'commits' => $result[1],
Please login to merge, or discard this patch.
src/Result/Render/ConsoleResultsRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Churn\Result\Render;
4 4
 
Please login to merge, or discard this patch.
src/Result/Render/CsvResultsRenderer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Churn\Result\Render;
4 4
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
         $output->writeln($this->getHeader());
19 19
 
20 20
         foreach ($results as $result) {
21
-            $output->writeln(implode(';', [ '"'.$result[0].'"', $result[1], $result[2], $result[3] ]));
21
+            $output->writeln(implode(';', ['"'.$result[0].'"', $result[1], $result[2], $result[3]]));
22 22
         };
23 23
     }
24 24
 
Please login to merge, or discard this patch.
src/Result/HighestScores.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Churn\Result;
4 4
 
Please login to merge, or discard this patch.
src/Result/ResultsRendererFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Churn\Result;
4 4
 
Please login to merge, or discard this patch.
src/Result/Render/ResultsRendererInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Churn\Result\Render;
4 4
 
Please login to merge, or discard this patch.
src/File/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Churn\File;
4 4
 
Please login to merge, or discard this patch.
src/Command/RunCommand.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 declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Churn\Command;
4 4
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
  */
31 31
 class RunCommand extends Command
32 32
 {
33
-    public const LOGO ="
33
+    public const LOGO = "
34 34
     ___  _   _  __  __  ____  _  _     ____  _   _  ____
35 35
    / __)( )_( )(  )(  )(  _ \( \( )___(  _ \( )_( )(  _ \
36 36
   ( (__  ) _ (  )(__)(  )   / )  ((___))___/ ) _ (  )___/
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         }
122 122
 
123 123
         throw new InvalidArgumentException(
124
-            'Provide the directories you want to scan as arguments, ' .
124
+            'Provide the directories you want to scan as arguments, '.
125 125
             'or configure them under "directoriesToScan" in your churn.yml file.'
126 126
         );
127 127
     }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     ): OnSuccess {
140 140
         $observer = new OnSuccessAccumulate($accumulator);
141 141
 
142
-        if ((bool)$input->getOption('progress')) {
142
+        if ((bool) $input->getOption('progress')) {
143 143
             $progressBar = new ProgressBar($output);
144 144
             $progressBar->start();
145 145
             $observer = new OnSuccessCollection($observer, new OnSuccessProgress($progressBar));
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      */
171 171
     private function writeResult(InputInterface $input, OutputInterface $output, ResultAccumulator $accumulator): void
172 172
     {
173
-        if ((bool)$input->getOption('progress')) {
173
+        if ((bool) $input->getOption('progress')) {
174 174
             $output->writeln("\n");
175 175
         }
176 176
         if (!empty($input->getOption('output'))) {
Please login to merge, or discard this patch.
src/Command/AssessComplexityCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Churn\Command;
4 4
 
Please login to merge, or discard this patch.