| @@ -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 | } | 
| @@ -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()); | 
| @@ -18,7 +18,7 @@ | ||
| 18 | 18 | public static function fromPath(string $path) : self | 
| 19 | 19 |      { | 
| 20 | 20 | Assert::that($path)->directory(); | 
| 21 | - Assert::that($path . '/.git')->directory(); | |
| 21 | + Assert::that($path.'/.git')->directory(); | |
| 22 | 22 | $instance = new self(); | 
| 23 | 23 | $instance->path = $path; | 
| 24 | 24 | return $instance; | 
| @@ -76,9 +76,9 @@ discard block | ||
| 76 | 76 | $classMap = $classMapProperty->getDefaultValue(); | 
| 77 | 77 | |
| 78 | 78 | Assert::that($classMap) | 
| 79 | - ->isArray() | |
| 80 | - ->all() | |
| 81 | - ->file(); | |
| 79 | + ->isArray() | |
| 80 | + ->all() | |
| 81 | + ->file(); | |
| 82 | 82 | |
| 83 | 83 | return new StaticClassMapSourceLocator($classMap, $this->astLocator); | 
| 84 | 84 | } | 
| @@ -92,9 +92,9 @@ discard block | ||
| 92 | 92 | $filesMap = $filesMapProperty->getDefaultValue(); | 
| 93 | 93 | |
| 94 | 94 | Assert::that($filesMap) | 
| 95 | - ->isArray() | |
| 96 | - ->all() | |
| 97 | - ->file(); | |
| 95 | + ->isArray() | |
| 96 | + ->all() | |
| 97 | + ->file(); | |
| 98 | 98 | |
| 99 | 99 | return new AggregateSourceLocator(array_values(array_map( | 
| 100 | 100 |              function (string $path) : SourceLocator { | 
| @@ -44,9 +44,9 @@ discard block | ||
| 44 | 44 | public function __invoke(string $installationPath) : SourceLocator | 
| 45 | 45 |      { | 
| 46 | 46 | Assert::that($installationPath)->directory(); | 
| 47 | - Assert::that($installationPath . '/composer.json')->file(); | |
| 47 | + Assert::that($installationPath.'/composer.json')->file(); | |
| 48 | 48 | |
| 49 | -        $this->runInDirectory(function () use ($installationPath) : void { | |
| 49 | +        $this->runInDirectory(function() use ($installationPath) : void { | |
| 50 | 50 | $installer = ($this->makeComposerInstaller)($installationPath); | 
| 51 | 51 | |
| 52 | 52 | Assert::that($installer)->isInstanceOf(Installer::class); | 
| @@ -63,7 +63,7 @@ discard block | ||
| 63 | 63 | $installer->run(); | 
| 64 | 64 | }, $installationPath); | 
| 65 | 65 | |
| 66 | - $autoloadStatic = $installationPath . '/vendor/composer/autoload_static.php'; | |
| 66 | + $autoloadStatic = $installationPath.'/vendor/composer/autoload_static.php'; | |
| 67 | 67 | |
| 68 | 68 | Assert::that($autoloadStatic)->file(); | 
| 69 | 69 | |
| @@ -106,7 +106,7 @@ discard block | ||
| 106 | 106 |      { | 
| 107 | 107 |          $filesMapProperty = $autoloadStatic->getProperty('files'); | 
| 108 | 108 | |
| 109 | -        if (! $filesMapProperty) { | |
| 109 | +        if (!$filesMapProperty) { | |
| 110 | 110 | return new AggregateSourceLocator(); | 
| 111 | 111 | } | 
| 112 | 112 | |
| @@ -121,7 +121,7 @@ discard block | ||
| 121 | 121 | ->file(); | 
| 122 | 122 | |
| 123 | 123 | return new AggregateSourceLocator(array_values(array_map( | 
| 124 | -            function (string $path) : SourceLocator { | |
| 124 | +            function(string $path) : SourceLocator { | |
| 125 | 125 | $realPath = realpath($path); | 
| 126 | 126 | |
| 127 | 127 | Assert::that($realPath)->string(); | 
| @@ -34,7 +34,7 @@ | ||
| 34 | 34 | */ | 
| 35 | 35 | protected function createLocatedSource(Identifier $identifier) : ?LocatedSource | 
| 36 | 36 |      { | 
| 37 | -        if (! $identifier->isClass()) { | |
| 37 | +        if (!$identifier->isClass()) { | |
| 38 | 38 | return null; | 
| 39 | 39 | } | 
| 40 | 40 | |
| @@ -63,7 +63,7 @@ | ||
| 63 | 63 | return array_combine( | 
| 64 | 64 | array_keys($properties), | 
| 65 | 65 | array_map( | 
| 66 | -                function (string $expectedMessage, ReflectionProperty $property) : array { | |
| 66 | +                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(function (string $output) use ($changeToExpect) : void { | |
| 39 | +            ->willReturnCallback(function(string $output) use ($changeToExpect) : void { | |
| 40 | 40 | self::assertContains($changeToExpect, $output); | 
| 41 | 41 | }); | 
| 42 | 42 | |