@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Churn\Process; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Churn\Process; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Churn\Process\ChangesCount; |
4 | 4 |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Churn\Process\Handler; |
4 | 4 | |
@@ -85,10 +85,10 @@ discard block |
||
85 | 85 | { |
86 | 86 | $process = $processFactory->createChangesCountProcess($file); |
87 | 87 | $process->start(); |
88 | - $pool['CountChanges:' . $process->getFilename()] = $process; |
|
88 | + $pool['CountChanges:'.$process->getFilename()] = $process; |
|
89 | 89 | $process = $processFactory->createCyclomaticComplexityProcess($file); |
90 | 90 | $process->start(); |
91 | - $pool['Complexity:' . $process->getFilename()] = $process; |
|
91 | + $pool['Complexity:'.$process->getFilename()] = $process; |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Churn\Process; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Churn\Process; |
4 | 4 |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Churn\Process; |
4 | 4 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | public function __construct(string $vcs, string $commitsSince) |
37 | 37 | { |
38 | 38 | $this->changesCountProcessBuilder = $this->getChangesCountProcessBuilder($vcs, $commitsSince); |
39 | - $this->phpExecutable = (string)(new PhpExecutableFinder())->find(); |
|
39 | + $this->phpExecutable = (string) (new PhpExecutableFinder())->find(); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -76,15 +76,15 @@ discard block |
||
76 | 76 | { |
77 | 77 | switch ($vcs) { |
78 | 78 | case 'git': |
79 | - return static function (File $file) use ($commitsSince): ChangesCountInterface { |
|
79 | + return static function(File $file) use ($commitsSince): ChangesCountInterface { |
|
80 | 80 | return new GitChangesCountProcess($file, $commitsSince); |
81 | 81 | }; |
82 | 82 | case 'none': |
83 | - return static function (File $file): ChangesCountInterface { |
|
83 | + return static function(File $file): ChangesCountInterface { |
|
84 | 84 | return new NoVcsChangesCountProcess($file); |
85 | 85 | }; |
86 | 86 | default: |
87 | - throw new InvalidArgumentException('Unsupported VCS: ' . $vcs); |
|
87 | + throw new InvalidArgumentException('Unsupported VCS: '.$vcs); |
|
88 | 88 | } |
89 | 89 | } |
90 | 90 | |
@@ -97,6 +97,6 @@ discard block |
||
97 | 97 | return [Phar::running(false), 'assess-complexity']; |
98 | 98 | } |
99 | 99 | |
100 | - return [__DIR__ . '/../../bin/CyclomaticComplexityAssessorRunner']; |
|
100 | + return [__DIR__.'/../../bin/CyclomaticComplexityAssessorRunner']; |
|
101 | 101 | } |
102 | 102 | } |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Churn\Process; |
4 | 4 |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Churn\File; |
4 | 4 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | public function __construct(array $fileExtensions, array $filesToIgnore) |
37 | 37 | { |
38 | 38 | $this->fileExtensions = $fileExtensions; |
39 | - $this->filters = array_map(function (string $fileToIgnore): string { |
|
39 | + $this->filters = array_map(function(string $fileToIgnore): string { |
|
40 | 40 | return $this->patternToRegex($fileToIgnore); |
41 | 41 | }, $filesToIgnore); |
42 | 42 | } |