@@ -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 | |
@@ -19,10 +19,10 @@ discard block |
||
19 | 19 | |
20 | 20 | public function setUp() : void |
21 | 21 | { |
22 | - $tmpGitRepo = sys_get_temp_dir() . '/api-compare-' . uniqid('tmpGitRepo', true); |
|
22 | + $tmpGitRepo = sys_get_temp_dir().'/api-compare-'.uniqid('tmpGitRepo', true); |
|
23 | 23 | mkdir($tmpGitRepo, 0777, true); |
24 | 24 | (new Process(['git', 'init']))->setWorkingDirectory($tmpGitRepo)->mustRun(); |
25 | - file_put_contents($tmpGitRepo . '/test', uniqid('testContent', true)); |
|
25 | + file_put_contents($tmpGitRepo.'/test', uniqid('testContent', true)); |
|
26 | 26 | (new Process(['git', 'add', '.']))->setWorkingDirectory($tmpGitRepo)->mustRun(); |
27 | 27 | (new Process(['git', 'commit', '-m', '"whatever"']))->setWorkingDirectory($tmpGitRepo)->mustRun(); |
28 | 28 | $this->repoPath = CheckedOutRepository::fromPath($tmpGitRepo); |
@@ -30,12 +30,12 @@ discard block |
||
30 | 30 | |
31 | 31 | public function tearDown() : void |
32 | 32 | { |
33 | - (new Process(['rm', '-Rf', (string)$this->repoPath]))->mustRun(); |
|
33 | + (new Process(['rm', '-Rf', (string) $this->repoPath]))->mustRun(); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | private function makeTag(string $tagName) : void |
37 | 37 | { |
38 | - (new Process(['git', 'tag', $tagName]))->setWorkingDirectory((string)$this->repoPath)->mustRun(); |
|
38 | + (new Process(['git', 'tag', $tagName]))->setWorkingDirectory((string) $this->repoPath)->mustRun(); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | public function testFromRepository() : void |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | '1.0.0', |
48 | 48 | ], |
49 | 49 | array_map( |
50 | - function (Version $version) { |
|
50 | + function(Version $version) { |
|
51 | 51 | return $version->getVersionString(); |
52 | 52 | }, |
53 | 53 | iterator_to_array((new GetVersionCollectionFromGitRepository())->fromRepository($this->repoPath)) |
@@ -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 | |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | $expectedRevision, |
31 | 31 | (new GitParseRevision())->fromStringForRepository( |
32 | 32 | $revisionToBeParsed, |
33 | - CheckedOutRepository::fromPath(__DIR__ . '/../../../') |
|
33 | + CheckedOutRepository::fromPath(__DIR__.'/../../../') |
|
34 | 34 | )->__toString() |
35 | 35 | ); |
36 | 36 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace RoaveTest\ApiCompare\Git; |
5 | 5 |