@@ -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 @@ 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 | |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | { |
16 | 16 | public function testCheckoutAndRemove() : void |
17 | 17 | { |
18 | - $sourceRepositoryPath = realpath(__DIR__ . '/../../../'); |
|
18 | + $sourceRepositoryPath = realpath(__DIR__.'/../../../'); |
|
19 | 19 | |
20 | 20 | $git = new GitCheckoutRevisionToTemporaryPath(); |
21 | 21 |
@@ -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 @@ 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 | |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | { |
20 | 20 | public function testExecute() : void |
21 | 21 | { |
22 | - $sourceRepository = CheckedOutRepository::fromPath(realpath(__DIR__ . '/../../../')); |
|
22 | + $sourceRepository = CheckedOutRepository::fromPath(realpath(__DIR__.'/../../../')); |
|
23 | 23 | |
24 | 24 | $fromSha = sha1('fromRevision', false); |
25 | 25 | $toSha = sha1('toRevision', false); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | $command = new ApiCompare($git, new DirectoryReflectorFactory()); |
51 | 51 | |
52 | - chdir((string)$sourceRepository); |
|
52 | + chdir((string) $sourceRepository); |
|
53 | 53 | $command->execute($input, $output); |
54 | 54 | } |
55 | 55 | } |
@@ -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 |