@@ -6,45 +6,45 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
| 8 | 8 | { |
| 9 | - public static $files = array ( |
|
| 10 | - 'a12da592622097d2b593a430e32e13fd' => __DIR__ . '/../..' . '/included-file-1.php', |
|
| 11 | - '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/../..' . '/included-file-2.php', |
|
| 9 | + public static $files = array( |
|
| 10 | + 'a12da592622097d2b593a430e32e13fd' => __DIR__.'/../..'.'/included-file-1.php', |
|
| 11 | + '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__.'/../..'.'/included-file-2.php', |
|
| 12 | 12 | ); |
| 13 | 13 | |
| 14 | - public static $prefixLengthsPsr4 = array ( |
|
| 14 | + public static $prefixLengthsPsr4 = array( |
|
| 15 | 15 | 'p' => |
| 16 | - array ( |
|
| 16 | + array( |
|
| 17 | 17 | 'phpDocumentor\\Reflection\\' => 25, |
| 18 | 18 | ), |
| 19 | 19 | ); |
| 20 | 20 | |
| 21 | - public static $prefixDirsPsr4 = array ( |
|
| 21 | + public static $prefixDirsPsr4 = array( |
|
| 22 | 22 | 'phpDocumentor\\Reflection\\' => |
| 23 | - array ( |
|
| 24 | - 0 => __DIR__ . '/..' . '/phpdocumentor/reflection-common/src', |
|
| 25 | - 1 => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src', |
|
| 26 | - 2 => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src', |
|
| 23 | + array( |
|
| 24 | + 0 => __DIR__.'/..'.'/phpdocumentor/reflection-common/src', |
|
| 25 | + 1 => __DIR__.'/..'.'/phpdocumentor/reflection-docblock/src', |
|
| 26 | + 2 => __DIR__.'/..'.'/phpdocumentor/type-resolver/src', |
|
| 27 | 27 | ), |
| 28 | 28 | ); |
| 29 | 29 | |
| 30 | - public static $prefixesPsr0 = array ( |
|
| 30 | + public static $prefixesPsr0 = array( |
|
| 31 | 31 | 'P' => |
| 32 | - array ( |
|
| 32 | + array( |
|
| 33 | 33 | 'Prophecy\\' => |
| 34 | - array ( |
|
| 35 | - 0 => __DIR__ . '/..' . '/phpspec/prophecy/src', |
|
| 34 | + array( |
|
| 35 | + 0 => __DIR__.'/..'.'/phpspec/prophecy/src', |
|
| 36 | 36 | ), |
| 37 | 37 | ), |
| 38 | 38 | ); |
| 39 | 39 | |
| 40 | - public static $classMap = array ( |
|
| 41 | - 'A\\ClassName' => __DIR__ . '/../..' . '/AClassName.php', |
|
| 42 | - 'B\\ClassName' => __DIR__ . '/../..' . '/BClassName.php', |
|
| 40 | + public static $classMap = array( |
|
| 41 | + 'A\\ClassName' => __DIR__.'/../..'.'/AClassName.php', |
|
| 42 | + 'B\\ClassName' => __DIR__.'/../..'.'/BClassName.php', |
|
| 43 | 43 | ); |
| 44 | 44 | |
| 45 | 45 | public static function getInitializer(ClassLoader $loader) |
| 46 | 46 | { |
| 47 | - return \Closure::bind(function () use ($loader) { |
|
| 47 | + return \Closure::bind(function() use ($loader) { |
|
| 48 | 48 | $loader->prefixLengthsPsr4 = ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa::$prefixLengthsPsr4; |
| 49 | 49 | $loader->prefixDirsPsr4 = ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa::$prefixDirsPsr4; |
| 50 | 50 | $loader->prefixesPsr0 = ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa::$prefixesPsr0; |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $expectedRevision, |
| 33 | 33 | (new GitParseRevision())->fromStringForRepository( |
| 34 | 34 | $revisionToBeParsed, |
| 35 | - CheckedOutRepository::fromPath(__DIR__ . '/../../../') |
|
| 35 | + CheckedOutRepository::fromPath(__DIR__.'/../../../') |
|
| 36 | 36 | )->__toString() |
| 37 | 37 | ); |
| 38 | 38 | } |
@@ -18,14 +18,14 @@ |
||
| 18 | 18 | { |
| 19 | 19 | public function testFromPath() : void |
| 20 | 20 | { |
| 21 | - $path = sys_get_temp_dir() . '/' . uniqid('testPath', true); |
|
| 21 | + $path = sys_get_temp_dir().'/'.uniqid('testPath', true); |
|
| 22 | 22 | mkdir($path, 0777, true); |
| 23 | - mkdir($path . '/.git'); |
|
| 23 | + mkdir($path.'/.git'); |
|
| 24 | 24 | |
| 25 | 25 | $checkedOutRepository = CheckedOutRepository::fromPath($path); |
| 26 | 26 | self::assertSame($path, (string) $checkedOutRepository); |
| 27 | 27 | |
| 28 | - rmdir($path . '/.git'); |
|
| 28 | + rmdir($path.'/.git'); |
|
| 29 | 29 | rmdir($path); |
| 30 | 30 | } |
| 31 | 31 | } |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | { |
| 18 | 18 | public function testCheckoutAndRemove() : void |
| 19 | 19 | { |
| 20 | - $sourceRepositoryPath = realpath(__DIR__ . '/../../../'); |
|
| 20 | + $sourceRepositoryPath = realpath(__DIR__.'/../../../'); |
|
| 21 | 21 | |
| 22 | 22 | $git = new GitCheckoutRevisionToTemporaryPath(); |
| 23 | 23 | |
@@ -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); |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | self::assertSame( |
| 53 | 53 | ['1.0.0'], |
| 54 | 54 | array_map( |
| 55 | - function (Version $version) { |
|
| 55 | + function(Version $version) { |
|
| 56 | 56 | return $version->getVersionString(); |
| 57 | 57 | }, |
| 58 | 58 | iterator_to_array((new GetVersionCollectionFromGitRepository())->fromRepository($this->repoPath)) |
@@ -83,13 +83,13 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | public function testWillLocateDependencies() : void |
| 85 | 85 | { |
| 86 | - $composerInstallationStructure = realpath(__DIR__ . '/../../asset/composer-installation-structure'); |
|
| 86 | + $composerInstallationStructure = realpath(__DIR__.'/../../asset/composer-installation-structure'); |
|
| 87 | 87 | |
| 88 | 88 | $this |
| 89 | 89 | ->composerInstaller |
| 90 | 90 | ->expects(self::once()) |
| 91 | 91 | ->method('run') |
| 92 | - ->willReturnCallback(function () use ($composerInstallationStructure) : void { |
|
| 92 | + ->willReturnCallback(function() use ($composerInstallationStructure) : void { |
|
| 93 | 93 | self::assertSame($composerInstallationStructure, getcwd()); |
| 94 | 94 | }); |
| 95 | 95 | |
@@ -109,8 +109,8 @@ discard block |
||
| 109 | 109 | self::assertEquals( |
| 110 | 110 | new StaticClassMapSourceLocator( |
| 111 | 111 | [ |
| 112 | - 'A\\ClassName' => realpath(__DIR__ . '/../../asset/composer-installation-structure/AClassName.php'), |
|
| 113 | - 'B\\ClassName' => realpath(__DIR__ . '/../../asset/composer-installation-structure/BClassName.php'), |
|
| 112 | + 'A\\ClassName' => realpath(__DIR__.'/../../asset/composer-installation-structure/AClassName.php'), |
|
| 113 | + 'B\\ClassName' => realpath(__DIR__.'/../../asset/composer-installation-structure/BClassName.php'), |
|
| 114 | 114 | ], |
| 115 | 115 | $this->astLocator |
| 116 | 116 | ), |
@@ -119,11 +119,11 @@ discard block |
||
| 119 | 119 | self::assertEquals( |
| 120 | 120 | new AggregateSourceLocator([ |
| 121 | 121 | new SingleFileSourceLocator( |
| 122 | - realpath(__DIR__ . '/../../asset/composer-installation-structure/included-file-1.php'), |
|
| 122 | + realpath(__DIR__.'/../../asset/composer-installation-structure/included-file-1.php'), |
|
| 123 | 123 | $this->astLocator |
| 124 | 124 | ), |
| 125 | 125 | new SingleFileSourceLocator( |
| 126 | - realpath(__DIR__ . '/../../asset/composer-installation-structure/included-file-2.php'), |
|
| 126 | + realpath(__DIR__.'/../../asset/composer-installation-structure/included-file-2.php'), |
|
| 127 | 127 | $this->astLocator |
| 128 | 128 | ), |
| 129 | 129 | ]), |
@@ -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\\ClassWithMethodsBeingRemoved' => [ |
| 47 | 47 | (new ClassReflector(new SingleFileSourceLocator( |
| 48 | - __DIR__ . '/../../../../asset/api/old/ClassWithMethodsBeingRemoved.php', |
|
| 48 | + __DIR__.'/../../../../asset/api/old/ClassWithMethodsBeingRemoved.php', |
|
| 49 | 49 | $locator |
| 50 | 50 | )))->reflect('RoaveTestAsset\\ClassWithMethodsBeingRemoved'), |
| 51 | 51 | (new ClassReflector(new SingleFileSourceLocator( |
| 52 | - __DIR__ . '/../../../../asset/api/new/ClassWithMethodsBeingRemoved.php', |
|
| 52 | + __DIR__.'/../../../../asset/api/new/ClassWithMethodsBeingRemoved.php', |
|
| 53 | 53 | $locator |
| 54 | 54 | )))->reflect('RoaveTestAsset\\ClassWithMethodsBeingRemoved'), |
| 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 | [ |