@@ -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 @@ |
||
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 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 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Roave\ApiCompare\Git; |
5 | 5 |