@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace RoaveTest\ApiCompare; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Roave\ApiCompare\Formatter; |
5 | 5 | |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | { |
24 | 24 | /** @var Change $change */ |
25 | 25 | foreach ($changes as $change) { |
26 | - $this->output->writeln((string)$change); |
|
26 | + $this->output->writeln((string) $change); |
|
27 | 27 | } |
28 | 28 | } |
29 | 29 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Roave\ApiCompare\Formatter; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Roave\ApiCompare; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Roave\ApiCompare\Git; |
5 | 5 | |
@@ -13,10 +13,10 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function checkout(CheckedOutRepository $sourceRepository, Revision $revision) : CheckedOutRepository |
15 | 15 | { |
16 | - $checkoutDirectory = sys_get_temp_dir() . '/api-compare-' . (string)$revision; |
|
16 | + $checkoutDirectory = sys_get_temp_dir().'/api-compare-'.(string) $revision; |
|
17 | 17 | |
18 | - (new Process(['git', 'clone', (string)$sourceRepository, $checkoutDirectory]))->mustRun(); |
|
19 | - (new Process(['git', 'checkout', (string)$revision]))->setWorkingDirectory($checkoutDirectory)->mustRun(); |
|
18 | + (new Process(['git', 'clone', (string) $sourceRepository, $checkoutDirectory]))->mustRun(); |
|
19 | + (new Process(['git', 'checkout', (string) $revision]))->setWorkingDirectory($checkoutDirectory)->mustRun(); |
|
20 | 20 | |
21 | 21 | return CheckedOutRepository::fromPath($checkoutDirectory); |
22 | 22 | } |
@@ -27,6 +27,6 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function remove(CheckedOutRepository $checkedOutRepository) : void |
29 | 29 | { |
30 | - (new Process(['rm', '-rf', (string)$checkedOutRepository]))->mustRun(); |
|
30 | + (new Process(['rm', '-rf', (string) $checkedOutRepository]))->mustRun(); |
|
31 | 31 | } |
32 | 32 | } |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Roave\ApiCompare\Git; |
5 | 5 | |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | public static function fromPath(string $path) : self |
18 | 18 | { |
19 | 19 | Assert::that($path)->directory(); |
20 | - Assert::that($path . '/.git')->directory(); |
|
20 | + Assert::that($path.'/.git')->directory(); |
|
21 | 21 | $instance = new self(); |
22 | 22 | $instance->path = $path; |
23 | 23 | return $instance; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Roave\ApiCompare\Git; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Roave\ApiCompare\Command; |
5 | 5 | |
@@ -71,8 +71,8 @@ discard block |
||
71 | 71 | try { |
72 | 72 | (new SymfonyConsoleTextFormatter($output))->write( |
73 | 73 | (new Comparator())->compare( |
74 | - $this->reflectorFactory->__invoke((string)$fromPath . '/src/'), |
|
75 | - $this->reflectorFactory->__invoke((string)$toPath . '/src/') |
|
74 | + $this->reflectorFactory->__invoke((string) $fromPath.'/src/'), |
|
75 | + $this->reflectorFactory->__invoke((string) $toPath.'/src/') |
|
76 | 76 | ) |
77 | 77 | ); |
78 | 78 | } finally { |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Roave\ApiCompare; |
5 | 5 |