@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace RoaveTest\ApiCompare\Git; |
5 | 5 | |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | { |
17 | 17 | $sha1 = sha1(uniqid('sha1', true)); |
18 | 18 | |
19 | - self::assertSame($sha1, (string)Revision::fromSha1($sha1)); |
|
19 | + self::assertSame($sha1, (string) Revision::fromSha1($sha1)); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | public function invalidRevisionProvider() : array |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace RoaveTest\ApiCompare\Git; |
5 | 5 | |
@@ -13,14 +13,14 @@ discard block |
||
13 | 13 | { |
14 | 14 | public function testFromPath() : void |
15 | 15 | { |
16 | - $path = sys_get_temp_dir() . '/' . uniqid('testPath', true); |
|
16 | + $path = sys_get_temp_dir().'/'.uniqid('testPath', true); |
|
17 | 17 | mkdir($path, 0777, true); |
18 | - mkdir($path . '/.git'); |
|
18 | + mkdir($path.'/.git'); |
|
19 | 19 | |
20 | 20 | $checkedOutRepository = CheckedOutRepository::fromPath($path); |
21 | - self::assertSame($path, (string)$checkedOutRepository); |
|
21 | + self::assertSame($path, (string) $checkedOutRepository); |
|
22 | 22 | |
23 | - rmdir($path . '/.git'); |
|
23 | + rmdir($path.'/.git'); |
|
24 | 24 | rmdir($path); |
25 | 25 | } |
26 | 26 | } |
@@ -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 RoaveTest\ApiCompare\Command; |
5 | 5 | |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | { |
21 | 21 | public function testExecute() : void |
22 | 22 | { |
23 | - $sourceRepository = CheckedOutRepository::fromPath(realpath(__DIR__ . '/../../../')); |
|
23 | + $sourceRepository = CheckedOutRepository::fromPath(realpath(__DIR__.'/../../../')); |
|
24 | 24 | |
25 | 25 | $fromSha = sha1('fromRevision', false); |
26 | 26 | $toSha = sha1('toRevision', false); |
@@ -55,13 +55,13 @@ discard block |
||
55 | 55 | |
56 | 56 | $command = new ApiCompare($git, new DirectoryReflectorFactory()); |
57 | 57 | |
58 | - chdir((string)$sourceRepository); |
|
58 | + chdir((string) $sourceRepository); |
|
59 | 59 | $command->execute($input, $output); |
60 | 60 | } |
61 | 61 | |
62 | 62 | public function testExecuteFailsIfCheckedOutRepositoryDoesNotExist() : void |
63 | 63 | { |
64 | - $sourceRepository = CheckedOutRepository::fromPath(realpath(__DIR__ . '/../../../')); |
|
64 | + $sourceRepository = CheckedOutRepository::fromPath(realpath(__DIR__.'/../../../')); |
|
65 | 65 | |
66 | 66 | $fromSha = sha1('fromRevision', false); |
67 | 67 | $toSha = sha1('toRevision', false); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | $this->expectException(InvalidArgumentException::class); |
100 | 100 | |
101 | - chdir((string)$sourceRepository); |
|
101 | + chdir((string) $sourceRepository); |
|
102 | 102 | |
103 | 103 | $command->execute($input, $output); |
104 | 104 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Roave\ApiCompareCli; |
6 | 6 | |
@@ -9,9 +9,9 @@ discard block |
||
9 | 9 | use Symfony\Component\Console\Application; |
10 | 10 | use function file_exists; |
11 | 11 | |
12 | -(function () { |
|
13 | - foreach ([__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../autoload.php'] as $autoload) { |
|
14 | - if (! file_exists($autoload)) { |
|
12 | +(function() { |
|
13 | + foreach ([__DIR__.'/../vendor/autoload.php', __DIR__.'/../autoload.php'] as $autoload) { |
|
14 | + if (!file_exists($autoload)) { |
|
15 | 15 | continue; |
16 | 16 | } |
17 | 17 |
@@ -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 | |
@@ -77,16 +77,16 @@ discard block |
||
77 | 77 | |
78 | 78 | // @todo fix hard-coded /src/ addition... |
79 | 79 | try { |
80 | - $fromSources = $fromPath . '/' . $sourcesPath; |
|
81 | - $toSources = $toPath . '/' . $sourcesPath; |
|
80 | + $fromSources = $fromPath.'/'.$sourcesPath; |
|
81 | + $toSources = $toPath.'/'.$sourcesPath; |
|
82 | 82 | |
83 | 83 | Assert::that($fromSources)->directory(); |
84 | 84 | Assert::that($toSources)->directory(); |
85 | 85 | |
86 | 86 | (new SymfonyConsoleTextFormatter($output))->write( |
87 | 87 | (new Comparator())->compare( |
88 | - $this->reflectorFactory->__invoke((string)$fromPath . '/' . $sourcesPath), |
|
89 | - $this->reflectorFactory->__invoke((string)$toPath . '/' . $sourcesPath) |
|
88 | + $this->reflectorFactory->__invoke((string) $fromPath.'/'.$sourcesPath), |
|
89 | + $this->reflectorFactory->__invoke((string) $toPath.'/'.$sourcesPath) |
|
90 | 90 | ) |
91 | 91 | ); |
92 | 92 | } finally { |