@@ -48,7 +48,7 @@ |
||
| 48 | 48 | self::assertSame( |
| 49 | 49 | $expectedVersion, |
| 50 | 50 | (new PickLastMinorVersionFromCollection())->forVersions( |
| 51 | - new VersionCollection(...array_map(static function (string $version) : Version { |
|
| 51 | + new VersionCollection(...array_map(static function(string $version) : Version { |
|
| 52 | 52 | return Version::fromString($version); |
| 53 | 53 | }, $collectionOfVersions)) |
| 54 | 54 | )->toString() |
@@ -26,10 +26,10 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | public function setUp() : void |
| 28 | 28 | { |
| 29 | - $tmpGitRepo = sys_get_temp_dir() . '/api-compare-' . uniqid('tmpGitRepo', true); |
|
| 29 | + $tmpGitRepo = sys_get_temp_dir().'/api-compare-'.uniqid('tmpGitRepo', true); |
|
| 30 | 30 | mkdir($tmpGitRepo, 0777, true); |
| 31 | 31 | (new Process(['git', 'init']))->setWorkingDirectory($tmpGitRepo)->mustRun(); |
| 32 | - file_put_contents($tmpGitRepo . '/test', uniqid('testContent', true)); |
|
| 32 | + file_put_contents($tmpGitRepo.'/test', uniqid('testContent', true)); |
|
| 33 | 33 | (new Process(['git', 'add', '.']))->setWorkingDirectory($tmpGitRepo)->mustRun(); |
| 34 | 34 | (new Process(['git', 'commit', '-m', '"whatever"']))->setWorkingDirectory($tmpGitRepo)->mustRun(); |
| 35 | 35 | $this->repoPath = CheckedOutRepository::fromPath($tmpGitRepo); |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | private function getTags() : array |
| 50 | 50 | { |
| 51 | 51 | return array_map( |
| 52 | - static function (Version $version) : string { |
|
| 52 | + static function(Version $version) : string { |
|
| 53 | 53 | return $version->toString(); |
| 54 | 54 | }, |
| 55 | 55 | iterator_to_array((new GetVersionCollectionFromGitRepository())->fromRepository($this->repoPath)) |