@@ -23,7 +23,7 @@ |
||
23 | 23 | array_diff($fromClass->getInterfaceNames(), $toClass->getInterfaceNames()) |
24 | 24 | ); |
25 | 25 | |
26 | - if (! $removedAncestors) { |
|
26 | + if (!$removedAncestors) { |
|
27 | 27 | return Changes::empty(); |
28 | 28 | } |
29 | 29 |
@@ -62,7 +62,7 @@ |
||
62 | 62 | $instance = new self(); |
63 | 63 | |
64 | 64 | $instance->bufferedChanges = []; |
65 | - $instance->unBufferedChanges = (function () use ($other) : Generator { |
|
65 | + $instance->unBufferedChanges = (function() use ($other) : Generator { |
|
66 | 66 | foreach ($this as $change) { |
67 | 67 | yield $change; |
68 | 68 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | array_diff($fromClass->getInterfaceNames(), $toClass->getInterfaceNames()) |
24 | 24 | ); |
25 | 25 | |
26 | - if (! $removedAncestors) { |
|
26 | + if (!$removedAncestors) { |
|
27 | 27 | return Changes::empty(); |
28 | 28 | } |
29 | 29 |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | $stableVersions = $versions->matching(new class implements ConstraintInterface { |
31 | 31 | public function assert(Version $version) : bool |
32 | 32 | { |
33 | - return ! $version->isPreRelease(); |
|
33 | + return !$version->isPreRelease(); |
|
34 | 34 | } |
35 | 35 | }); |
36 | 36 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | new ComparisonConstraint(ComparisonConstraint::OPERATOR_LTE, $lastVersion), |
46 | 46 | new ComparisonConstraint( |
47 | 47 | ComparisonConstraint::OPERATOR_GTE, |
48 | - Version::fromString($lastVersion->getMajor() . '.' . $lastVersion->getMinor() . '.0') |
|
48 | + Version::fromString($lastVersion->getMajor().'.'.$lastVersion->getMinor().'.0') |
|
49 | 49 | ) |
50 | 50 | )) |
51 | 51 | ->sortedAscending(); |
@@ -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) { |
|
52 | + static function(Version $version) { |
|
53 | 53 | return $version->getVersionString(); |
54 | 54 | }, |
55 | 55 | iterator_to_array((new GetVersionCollectionFromGitRepository())->fromRepository($this->repoPath)) |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | |
49 | 49 | public function testExceptionIsThrownWhenTwoPathsCollide() : void |
50 | 50 | { |
51 | - $git = new GitCheckoutRevisionToTemporaryPath(static function () : string { |
|
51 | + $git = new GitCheckoutRevisionToTemporaryPath(static function() : string { |
|
52 | 52 | return 'foo'; |
53 | 53 | }); |
54 | 54 | $sourceRepository = $this->sourceRepository(); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | |
77 | 77 | private function sourceRepository() : CheckedOutRepository |
78 | 78 | { |
79 | - $repositoryPath = realpath(__DIR__ . '/../../..'); |
|
79 | + $repositoryPath = realpath(__DIR__.'/../../..'); |
|
80 | 80 | |
81 | 81 | self::assertInternalType('string', $repositoryPath); |
82 | 82 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | self::assertSame( |
47 | 47 | $expectedVersion, |
48 | 48 | (new PickLastMinorVersionFromCollection())->forVersions( |
49 | - new VersionsCollection(...array_map(static function (string $version) : Version { |
|
49 | + new VersionsCollection(...array_map(static function(string $version) : Version { |
|
50 | 50 | return Version::fromString($version); |
51 | 51 | }, $collectionOfVersions)) |
52 | 52 | )->getVersionString() |
@@ -63,7 +63,7 @@ |
||
63 | 63 | return array_combine( |
64 | 64 | array_keys($properties), |
65 | 65 | array_map( |
66 | - static function (string $expectedMessage, ReflectionProperty $property) : array { |
|
66 | + static function(string $expectedMessage, ReflectionProperty $property) : array { |
|
67 | 67 | return [$property, $expectedMessage]; |
68 | 68 | }, |
69 | 69 | array_keys($properties), |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | $output->expects(self::any()) |
38 | 38 | ->method('writeln') |
39 | - ->willReturnCallback(static function (string $output) use ($changeToExpect) : void { |
|
39 | + ->willReturnCallback(static function(string $output) use ($changeToExpect) : void { |
|
40 | 40 | self::assertContains($changeToExpect, $output); |
41 | 41 | }); |
42 | 42 |