@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Churn\Assessors\CyclomaticComplexity; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Churn\Logic; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Churn\Collections; |
4 | 4 |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | |
4 | 4 | namespace Churn\Processes; |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | */ |
83 | 83 | public function getKey(): string |
84 | 84 | { |
85 | - return $this->getType() . $this->file->getFullPath(); |
|
85 | + return $this->getType().$this->file->getFullPath(); |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Churn\Renderers\Results; |
4 | 4 | |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | $output->writeln($this->getHeader()); |
19 | 19 | |
20 | 20 | foreach ($results->toArray() 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 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Churn\Renderers\Results; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Churn\Renderers\Results; |
4 | 4 |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | |
4 | 4 | namespace Churn\Renderers\Results; |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | */ |
17 | 17 | public function render(OutputInterface $output, ResultCollection $results): void |
18 | 18 | { |
19 | - $data = array_map(function (array $result) { |
|
19 | + $data = array_map(function(array $result) { |
|
20 | 20 | return [ |
21 | 21 | 'file' => $result[0], |
22 | 22 | 'commits' => $result[1], |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Churn\Commands; |
4 | 4 | |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $filesCollection = (new FileManager($config->getFileExtensions(), $config->getFilesToIgnore())) |
86 | 86 | ->getPhpFiles($this->getDirectoriesToScan($input, $config->getDirectoriesToScan())); |
87 | 87 | |
88 | - $this->processManager->setProgressBarEnabled((bool)$input->getOption('progress')); |
|
88 | + $this->processManager->setProgressBarEnabled((bool) $input->getOption('progress')); |
|
89 | 89 | $this->processManager->setOutputStream($output); |
90 | 90 | |
91 | 91 | $completedProcesses = $this->processManager->process( |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | } |
124 | 124 | |
125 | 125 | throw new InvalidArgumentException( |
126 | - 'Provide the directories you want to scan as arguments, ' . |
|
126 | + 'Provide the directories you want to scan as arguments, '. |
|
127 | 127 | 'or configure them under "directoriesToScan" in your churn.yml file.' |
128 | 128 | ); |
129 | 129 | } |