@@ -121,20 +121,20 @@ discard block |
||
| 121 | 121 | |
| 122 | 122 | unlink($this->sourcesRepository); |
| 123 | 123 | mkdir($this->sourcesRepository); |
| 124 | - mkdir($this->sourcesRepository . '/src'); |
|
| 124 | + mkdir($this->sourcesRepository.'/src'); |
|
| 125 | 125 | |
| 126 | 126 | self::assertDirectoryExists($this->sourcesRepository); |
| 127 | - self::assertDirectoryExists($this->sourcesRepository . '/src'); |
|
| 127 | + self::assertDirectoryExists($this->sourcesRepository.'/src'); |
|
| 128 | 128 | |
| 129 | 129 | (new Process('git init', $this->sourcesRepository))->mustRun(); |
| 130 | 130 | |
| 131 | - file_put_contents($this->sourcesRepository . '/composer.json', self::COMPOSER_MANIFEST); |
|
| 131 | + file_put_contents($this->sourcesRepository.'/composer.json', self::COMPOSER_MANIFEST); |
|
| 132 | 132 | |
| 133 | 133 | (new Process('git add -A', $this->sourcesRepository))->mustRun(); |
| 134 | 134 | (new Process('git commit -am "Initial commit with composer manifest"', $this->sourcesRepository))->mustRun(); |
| 135 | 135 | |
| 136 | 136 | foreach (self::CLASS_VERSIONS as $key => $classCode) { |
| 137 | - file_put_contents($this->sourcesRepository . '/src/TheClass.php', $classCode); |
|
| 137 | + file_put_contents($this->sourcesRepository.'/src/TheClass.php', $classCode); |
|
| 138 | 138 | |
| 139 | 139 | (new Process('git add -A', $this->sourcesRepository))->mustRun(); |
| 140 | 140 | (new Process(sprintf('git commit -am "Class sources v%d"', $key + 1), $this->sourcesRepository))->mustRun(); |
@@ -159,9 +159,9 @@ discard block |
||
| 159 | 159 | { |
| 160 | 160 | $check = new Process( |
| 161 | 161 | [ |
| 162 | - __DIR__ . '/../../../bin/roave-backward-compatibility-check', |
|
| 163 | - '--from=' . $this->versions[0], |
|
| 164 | - '--to=' . $this->versions[1], |
|
| 162 | + __DIR__.'/../../../bin/roave-backward-compatibility-check', |
|
| 163 | + '--from='.$this->versions[0], |
|
| 164 | + '--to='.$this->versions[1], |
|
| 165 | 165 | ], |
| 166 | 166 | $this->sourcesRepository |
| 167 | 167 | ); |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | public function testWillNotRunWithoutTagsNorSpecifiedVersions() : void |
| 182 | 182 | { |
| 183 | 183 | $check = new Process( |
| 184 | - __DIR__ . '/../../../bin/roave-backward-compatibility-check', |
|
| 184 | + __DIR__.'/../../../bin/roave-backward-compatibility-check', |
|
| 185 | 185 | $this->sourcesRepository |
| 186 | 186 | ); |
| 187 | 187 | |
@@ -196,9 +196,9 @@ discard block |
||
| 196 | 196 | { |
| 197 | 197 | $check = new Process( |
| 198 | 198 | [ |
| 199 | - __DIR__ . '/../../../bin/roave-backward-compatibility-check', |
|
| 200 | - '--from=' . $this->versions[0], |
|
| 201 | - '--to=' . $this->versions[3], |
|
| 199 | + __DIR__.'/../../../bin/roave-backward-compatibility-check', |
|
| 200 | + '--from='.$this->versions[0], |
|
| 201 | + '--to='.$this->versions[3], |
|
| 202 | 202 | '-vvv', |
| 203 | 203 | ], |
| 204 | 204 | $this->sourcesRepository |
@@ -219,8 +219,8 @@ discard block |
||
| 219 | 219 | |
| 220 | 220 | $check = new Process( |
| 221 | 221 | [ |
| 222 | - __DIR__ . '/../../../bin/roave-backward-compatibility-check', |
|
| 223 | - '--to=' . $this->versions[2], |
|
| 222 | + __DIR__.'/../../../bin/roave-backward-compatibility-check', |
|
| 223 | + '--to='.$this->versions[2], |
|
| 224 | 224 | ], |
| 225 | 225 | $this->sourcesRepository |
| 226 | 226 | ); |
@@ -248,8 +248,8 @@ discard block |
||
| 248 | 248 | |
| 249 | 249 | $check = new Process( |
| 250 | 250 | [ |
| 251 | - __DIR__ . '/../../../bin/roave-backward-compatibility-check', |
|
| 252 | - '--to=' . $this->versions[2], |
|
| 251 | + __DIR__.'/../../../bin/roave-backward-compatibility-check', |
|
| 252 | + '--to='.$this->versions[2], |
|
| 253 | 253 | ], |
| 254 | 254 | $this->sourcesRepository |
| 255 | 255 | ); |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | 'tag', |
| 288 | 288 | $tagName, |
| 289 | 289 | '-m', |
| 290 | - 'A tag for version ' . $version, |
|
| 290 | + 'A tag for version '.$version, |
|
| 291 | 291 | ], |
| 292 | 292 | $this->sourcesRepository |
| 293 | 293 | ))->mustRun(); |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | { |
| 30 | 30 | $reflector = new ClassReflector( |
| 31 | 31 | $this->locateSources |
| 32 | - ->__invoke(__DIR__ . '/../../asset/located-sources/composer-definition-with-everything') |
|
| 32 | + ->__invoke(__DIR__.'/../../asset/located-sources/composer-definition-with-everything') |
|
| 33 | 33 | ); |
| 34 | 34 | |
| 35 | 35 | self::assertSame( |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | $this->originalCwd = $originalCwd; |
| 51 | 51 | $this->composerInstaller = $this->createMock(Installer::class); |
| 52 | 52 | $this->astLocator = (new BetterReflection())->astLocator(); |
| 53 | - $this->makeInstaller = function (string $installationPath) : Installer { |
|
| 53 | + $this->makeInstaller = function(string $installationPath) : Installer { |
|
| 54 | 54 | self::assertSame($this->expectedInstallatonPath, $installationPath); |
| 55 | 55 | |
| 56 | 56 | return $this->composerInstaller; |
@@ -89,13 +89,13 @@ discard block |
||
| 89 | 89 | |
| 90 | 90 | public function testWillLocateDependencies() : void |
| 91 | 91 | { |
| 92 | - $this->expectedInstallatonPath = $this->realpath(__DIR__ . '/../../asset/composer-installation-structure'); |
|
| 92 | + $this->expectedInstallatonPath = $this->realpath(__DIR__.'/../../asset/composer-installation-structure'); |
|
| 93 | 93 | |
| 94 | 94 | $this |
| 95 | 95 | ->composerInstaller |
| 96 | 96 | ->expects(self::once()) |
| 97 | 97 | ->method('run') |
| 98 | - ->willReturnCallback(function () : void { |
|
| 98 | + ->willReturnCallback(function() : void { |
|
| 99 | 99 | self::assertSame($this->expectedInstallatonPath, getcwd()); |
| 100 | 100 | }); |
| 101 | 101 | |
@@ -38,9 +38,9 @@ |
||
| 38 | 38 | public function __invoke(string $installationPath) : SourceLocator |
| 39 | 39 | { |
| 40 | 40 | Assert::that($installationPath)->directory(); |
| 41 | - Assert::that($installationPath . '/composer.json')->file(); |
|
| 41 | + Assert::that($installationPath.'/composer.json')->file(); |
|
| 42 | 42 | |
| 43 | - $this->runInDirectory(function () use ($installationPath) : void { |
|
| 43 | + $this->runInDirectory(function() use ($installationPath) : void { |
|
| 44 | 44 | $installer = ($this->makeComposerInstaller)($installationPath); |
| 45 | 45 | |
| 46 | 46 | Assert::that($installer)->isInstanceOf(Installer::class); |