@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | use Roave\ApiCompare\Command; |
5 | 5 | use Symfony\Component\Console\Application; |
6 | 6 | |
7 | 7 | $foundAutoload = false; |
8 | -foreach ([__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../autoload.php'] as $autoload) { |
|
8 | +foreach ([__DIR__.'/../vendor/autoload.php', __DIR__.'/../autoload.php'] as $autoload) { |
|
9 | 9 | if (file_exists($autoload)) { |
10 | 10 | /** @noinspection PhpIncludeInspection */ |
11 | 11 | require $autoload; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace RoaveTest\ApiCompare\Formatter; |
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; |
5 | 5 | |
@@ -15,8 +15,8 @@ discard block |
||
15 | 15 | { |
16 | 16 | $changeText = uniqid('changeText', true); |
17 | 17 | self::assertSame( |
18 | - ' ADDED: ' . $changeText, |
|
19 | - (string)Change::added($changeText, false) |
|
18 | + ' ADDED: '.$changeText, |
|
19 | + (string) Change::added($changeText, false) |
|
20 | 20 | ); |
21 | 21 | } |
22 | 22 | |
@@ -24,8 +24,8 @@ discard block |
||
24 | 24 | { |
25 | 25 | $changeText = uniqid('changeText', true); |
26 | 26 | self::assertSame( |
27 | - '[BC] ADDED: ' . $changeText, |
|
28 | - (string)Change::added($changeText, true) |
|
27 | + '[BC] ADDED: '.$changeText, |
|
28 | + (string) Change::added($changeText, true) |
|
29 | 29 | ); |
30 | 30 | } |
31 | 31 | |
@@ -33,8 +33,8 @@ discard block |
||
33 | 33 | { |
34 | 34 | $changeText = uniqid('changeText', true); |
35 | 35 | self::assertSame( |
36 | - ' CHANGED: ' . $changeText, |
|
37 | - (string)Change::changed($changeText, false) |
|
36 | + ' CHANGED: '.$changeText, |
|
37 | + (string) Change::changed($changeText, false) |
|
38 | 38 | ); |
39 | 39 | } |
40 | 40 | |
@@ -42,8 +42,8 @@ discard block |
||
42 | 42 | { |
43 | 43 | $changeText = uniqid('changeText', true); |
44 | 44 | self::assertSame( |
45 | - '[BC] CHANGED: ' . $changeText, |
|
46 | - (string)Change::changed($changeText, true) |
|
45 | + '[BC] CHANGED: '.$changeText, |
|
46 | + (string) Change::changed($changeText, true) |
|
47 | 47 | ); |
48 | 48 | } |
49 | 49 | |
@@ -51,8 +51,8 @@ discard block |
||
51 | 51 | { |
52 | 52 | $changeText = uniqid('changeText', true); |
53 | 53 | self::assertSame( |
54 | - ' REMOVED: ' . $changeText, |
|
55 | - (string)Change::removed($changeText, false) |
|
54 | + ' REMOVED: '.$changeText, |
|
55 | + (string) Change::removed($changeText, false) |
|
56 | 56 | ); |
57 | 57 | } |
58 | 58 | |
@@ -60,8 +60,8 @@ discard block |
||
60 | 60 | { |
61 | 61 | $changeText = uniqid('changeText', true); |
62 | 62 | self::assertSame( |
63 | - '[BC] REMOVED: ' . $changeText, |
|
64 | - (string)Change::removed($changeText, true) |
|
63 | + '[BC] REMOVED: '.$changeText, |
|
64 | + (string) Change::removed($changeText, true) |
|
65 | 65 | ); |
66 | 66 | } |
67 | 67 | } |
@@ -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; |
5 | 5 | |
@@ -43,8 +43,8 @@ discard block |
||
43 | 43 | Change::removed('Class ClassGone has been deleted', true), |
44 | 44 | ]), |
45 | 45 | (new Comparator())->compare( |
46 | - $reflectorFactory->__invoke(__DIR__ . '/../asset/api/old'), |
|
47 | - $reflectorFactory->__invoke(__DIR__ . '/../asset/api/new') |
|
46 | + $reflectorFactory->__invoke(__DIR__.'/../asset/api/old'), |
|
47 | + $reflectorFactory->__invoke(__DIR__.'/../asset/api/new') |
|
48 | 48 | ) |
49 | 49 | ); |
50 | 50 | } |
@@ -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 @@ 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; |