@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | |
32 | 32 | self::assertSame( |
33 | 33 | $expectedMessages, |
34 | - array_map(function (Change $change) : string { |
|
34 | + array_map(function(Change $change) : string { |
|
35 | 35 | return $change->__toString(); |
36 | 36 | }, iterator_to_array($changes)) |
37 | 37 | ); |
@@ -45,11 +45,11 @@ discard block |
||
45 | 45 | return [ |
46 | 46 | 'RoaveTestAsset\\ClassWithPropertyVisibilitiesBeingChanged' => [ |
47 | 47 | (new ClassReflector(new SingleFileSourceLocator( |
48 | - __DIR__ . '/../../../../asset/api/old/ClassWithPropertyVisibilitiesBeingChanged.php', |
|
48 | + __DIR__.'/../../../../asset/api/old/ClassWithPropertyVisibilitiesBeingChanged.php', |
|
49 | 49 | $locator |
50 | 50 | )))->reflect('RoaveTestAsset\\ClassWithPropertyVisibilitiesBeingChanged'), |
51 | 51 | (new ClassReflector(new SingleFileSourceLocator( |
52 | - __DIR__ . '/../../../../asset/api/new/ClassWithPropertyVisibilitiesBeingChanged.php', |
|
52 | + __DIR__.'/../../../../asset/api/new/ClassWithPropertyVisibilitiesBeingChanged.php', |
|
53 | 53 | $locator |
54 | 54 | )))->reflect('RoaveTestAsset\\ClassWithPropertyVisibilitiesBeingChanged'), |
55 | 55 | [ |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | self::assertSame( |
31 | 31 | $expectedMessages, |
32 | - array_map(function (Change $change) : string { |
|
32 | + array_map(function(Change $change) : string { |
|
33 | 33 | return $change->__toString(); |
34 | 34 | }, iterator_to_array($changes)) |
35 | 35 | ); |
@@ -43,11 +43,11 @@ discard block |
||
43 | 43 | return [ |
44 | 44 | 'RoaveTestAsset\\ClassWithConstantsBeingRemoved' => [ |
45 | 45 | (new ClassReflector(new SingleFileSourceLocator( |
46 | - __DIR__ . '/../../../../asset/api/old/ClassWithConstantsBeingRemoved.php', |
|
46 | + __DIR__.'/../../../../asset/api/old/ClassWithConstantsBeingRemoved.php', |
|
47 | 47 | $locator |
48 | 48 | )))->reflect('RoaveTestAsset\\ClassWithConstantsBeingRemoved'), |
49 | 49 | (new ClassReflector(new SingleFileSourceLocator( |
50 | - __DIR__ . '/../../../../asset/api/new/ClassWithConstantsBeingRemoved.php', |
|
50 | + __DIR__.'/../../../../asset/api/new/ClassWithConstantsBeingRemoved.php', |
|
51 | 51 | $locator |
52 | 52 | )))->reflect('RoaveTestAsset\\ClassWithConstantsBeingRemoved'), |
53 | 53 | [ |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | |
32 | 32 | self::assertSame( |
33 | 33 | $expectedMessages, |
34 | - array_map(function (Change $change) : string { |
|
34 | + array_map(function(Change $change) : string { |
|
35 | 35 | return $change->__toString(); |
36 | 36 | }, iterator_to_array($changes)) |
37 | 37 | ); |
@@ -45,11 +45,11 @@ discard block |
||
45 | 45 | return [ |
46 | 46 | 'RoaveTestAsset\\ClassWithPropertiesBeingRemoved' => [ |
47 | 47 | (new ClassReflector(new SingleFileSourceLocator( |
48 | - __DIR__ . '/../../../../asset/api/old/ClassWithPropertiesBeingRemoved.php', |
|
48 | + __DIR__.'/../../../../asset/api/old/ClassWithPropertiesBeingRemoved.php', |
|
49 | 49 | $locator |
50 | 50 | )))->reflect('RoaveTestAsset\\ClassWithPropertiesBeingRemoved'), |
51 | 51 | (new ClassReflector(new SingleFileSourceLocator( |
52 | - __DIR__ . '/../../../../asset/api/new/ClassWithPropertiesBeingRemoved.php', |
|
52 | + __DIR__.'/../../../../asset/api/new/ClassWithPropertiesBeingRemoved.php', |
|
53 | 53 | $locator |
54 | 54 | )))->reflect('RoaveTestAsset\\ClassWithPropertiesBeingRemoved'), |
55 | 55 | [ |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | self::assertSame( |
31 | 31 | $expectedMessages, |
32 | - array_map(function (Change $change) : string { |
|
32 | + array_map(function(Change $change) : string { |
|
33 | 33 | return $change->__toString(); |
34 | 34 | }, iterator_to_array($changes)) |
35 | 35 | ); |
@@ -43,11 +43,11 @@ discard block |
||
43 | 43 | return [ |
44 | 44 | 'RoaveTestAsset\\ClassWithConstantValuesBeingChanged' => [ |
45 | 45 | (new ClassReflector(new SingleFileSourceLocator( |
46 | - __DIR__ . '/../../../../asset/api/old/ClassWithConstantValuesBeingChanged.php', |
|
46 | + __DIR__.'/../../../../asset/api/old/ClassWithConstantValuesBeingChanged.php', |
|
47 | 47 | $locator |
48 | 48 | )))->reflect('RoaveTestAsset\\ClassWithConstantValuesBeingChanged'), |
49 | 49 | (new ClassReflector(new SingleFileSourceLocator( |
50 | - __DIR__ . '/../../../../asset/api/new/ClassWithConstantValuesBeingChanged.php', |
|
50 | + __DIR__.'/../../../../asset/api/new/ClassWithConstantValuesBeingChanged.php', |
|
51 | 51 | $locator |
52 | 52 | )))->reflect('RoaveTestAsset\\ClassWithConstantValuesBeingChanged'), |
53 | 53 | [ |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | self::assertSame( |
31 | 31 | $expectedMessages, |
32 | - array_map(function (Change $change) : string { |
|
32 | + array_map(function(Change $change) : string { |
|
33 | 33 | return $change->__toString(); |
34 | 34 | }, iterator_to_array($changes)) |
35 | 35 | ); |
@@ -43,11 +43,11 @@ discard block |
||
43 | 43 | return [ |
44 | 44 | 'RoaveTestAsset\\ClassWithConstantVisibilitiesBeingChanged' => [ |
45 | 45 | (new ClassReflector(new SingleFileSourceLocator( |
46 | - __DIR__ . '/../../../../asset/api/old/ClassWithConstantVisibilitiesBeingChanged.php', |
|
46 | + __DIR__.'/../../../../asset/api/old/ClassWithConstantVisibilitiesBeingChanged.php', |
|
47 | 47 | $locator |
48 | 48 | )))->reflect('RoaveTestAsset\\ClassWithConstantVisibilitiesBeingChanged'), |
49 | 49 | (new ClassReflector(new SingleFileSourceLocator( |
50 | - __DIR__ . '/../../../../asset/api/new/ClassWithConstantVisibilitiesBeingChanged.php', |
|
50 | + __DIR__.'/../../../../asset/api/new/ClassWithConstantVisibilitiesBeingChanged.php', |
|
51 | 51 | $locator |
52 | 52 | )))->reflect('RoaveTestAsset\\ClassWithConstantVisibilitiesBeingChanged'), |
53 | 53 | [ |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | $output->expects(self::any()) |
37 | 37 | ->method('writeln') |
38 | - ->willReturnCallback(function (string $output) use ($changeToExpect) { |
|
38 | + ->willReturnCallback(function(string $output) use ($changeToExpect) { |
|
39 | 39 | self::assertContains($changeToExpect, $output); |
40 | 40 | }); |
41 | 41 |
@@ -73,7 +73,7 @@ |
||
73 | 73 | ->astLocator |
74 | 74 | ->expects(self::once()) |
75 | 75 | ->method('findReflection') |
76 | - ->with($this->reflector, self::callback(function (LocatedSource $source) : bool { |
|
76 | + ->with($this->reflector, self::callback(function(LocatedSource $source) : bool { |
|
77 | 77 | self::assertSame(file_get_contents(__FILE__), $source->getSource()); |
78 | 78 | self::assertSame(__FILE__, $source->getFileName()); |
79 | 79 | self::assertNull($source->getExtensionName()); |
@@ -124,23 +124,23 @@ |
||
124 | 124 | $toPath = $this->git->checkout($sourceRepo, $toRevision); |
125 | 125 | |
126 | 126 | try { |
127 | - $fromSources = $fromPath . '/' . $sourcesPath; |
|
128 | - $toSources = $toPath . '/' . $sourcesPath; |
|
127 | + $fromSources = $fromPath.'/'.$sourcesPath; |
|
128 | + $toSources = $toPath.'/'.$sourcesPath; |
|
129 | 129 | |
130 | 130 | Assert::that($fromSources)->directory(); |
131 | 131 | Assert::that($toSources)->directory(); |
132 | 132 | |
133 | 133 | $changes = $this->comparator->compare( |
134 | 134 | $this->reflectorFactory->__invoke( |
135 | - $fromPath . '/' . $sourcesPath, |
|
135 | + $fromPath.'/'.$sourcesPath, |
|
136 | 136 | new AggregateSourceLocator() // no dependencies |
137 | 137 | ), |
138 | 138 | $this->reflectorFactory->__invoke( |
139 | - $fromPath . '/' . $sourcesPath, |
|
139 | + $fromPath.'/'.$sourcesPath, |
|
140 | 140 | $this->locateDependencies->__invoke((string) $fromPath) |
141 | 141 | ), |
142 | 142 | $this->reflectorFactory->__invoke( |
143 | - $toPath . '/' . $sourcesPath, |
|
143 | + $toPath.'/'.$sourcesPath, |
|
144 | 144 | $this->locateDependencies->__invoke((string) $toPath) |
145 | 145 | ) |
146 | 146 | ); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | public function checkout(CheckedOutRepository $sourceRepository, Revision $revision) : CheckedOutRepository |
18 | 18 | { |
19 | - $checkoutDirectory = sys_get_temp_dir() . '/api-compare-' . (string) $revision; |
|
19 | + $checkoutDirectory = sys_get_temp_dir().'/api-compare-'.(string) $revision; |
|
20 | 20 | |
21 | 21 | (new Process(['git', 'clone', (string) $sourceRepository, $checkoutDirectory]))->mustRun(); |
22 | 22 | (new Process(['git', 'checkout', (string) $revision]))->setWorkingDirectory($checkoutDirectory)->mustRun(); |