@@ -74,7 +74,7 @@ |
||
74 | 74 | |
75 | 75 | private function typeToString(?ReflectionType $type) : string |
76 | 76 | { |
77 | - if (! $type) { |
|
77 | + if (!$type) { |
|
78 | 78 | return 'no type'; |
79 | 79 | } |
80 | 80 |
@@ -74,7 +74,7 @@ |
||
74 | 74 | |
75 | 75 | private function typeToString(?ReflectionType $type) : string |
76 | 76 | { |
77 | - if (! $type) { |
|
77 | + if (!$type) { |
|
78 | 78 | return 'no type'; |
79 | 79 | } |
80 | 80 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | ) : Changes { |
49 | 49 | $changelog = Changes::new(); |
50 | 50 | |
51 | - $definedApiClassNames = array_map(function (ReflectionClass $class) : string { |
|
51 | + $definedApiClassNames = array_map(function(ReflectionClass $class) : string { |
|
52 | 52 | return $class->getName(); |
53 | 53 | }, $definedSymbols->getAllClasses()); |
54 | 54 |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | public function testWillLocateDependencies() : void |
95 | 95 | { |
96 | - $composerInstallationStructure = realpath(__DIR__ . '/../../asset/composer-installation-structure'); |
|
96 | + $composerInstallationStructure = realpath(__DIR__.'/../../asset/composer-installation-structure'); |
|
97 | 97 | |
98 | 98 | $this |
99 | 99 | ->makeInstaller |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | ->composerInstaller |
107 | 107 | ->expects(self::once()) |
108 | 108 | ->method('run') |
109 | - ->willReturnCallback(function () use ($composerInstallationStructure) : void { |
|
109 | + ->willReturnCallback(function() use ($composerInstallationStructure) : void { |
|
110 | 110 | self::assertSame($composerInstallationStructure, getcwd()); |
111 | 111 | }); |
112 | 112 | |
@@ -126,8 +126,8 @@ discard block |
||
126 | 126 | self::assertEquals( |
127 | 127 | new StaticClassMapSourceLocator( |
128 | 128 | [ |
129 | - 'A\\ClassName' => realpath(__DIR__ . '/../../asset/composer-installation-structure/AClassName.php'), |
|
130 | - 'B\\ClassName' => realpath(__DIR__ . '/../../asset/composer-installation-structure/BClassName.php'), |
|
129 | + 'A\\ClassName' => realpath(__DIR__.'/../../asset/composer-installation-structure/AClassName.php'), |
|
130 | + 'B\\ClassName' => realpath(__DIR__.'/../../asset/composer-installation-structure/BClassName.php'), |
|
131 | 131 | ], |
132 | 132 | $this->astLocator |
133 | 133 | ), |
@@ -136,11 +136,11 @@ discard block |
||
136 | 136 | self::assertEquals( |
137 | 137 | new AggregateSourceLocator([ |
138 | 138 | new SingleFileSourceLocator( |
139 | - realpath(__DIR__ . '/../../asset/composer-installation-structure/included-file-1.php'), |
|
139 | + realpath(__DIR__.'/../../asset/composer-installation-structure/included-file-1.php'), |
|
140 | 140 | $this->astLocator |
141 | 141 | ), |
142 | 142 | new SingleFileSourceLocator( |
143 | - realpath(__DIR__ . '/../../asset/composer-installation-structure/included-file-2.php'), |
|
143 | + realpath(__DIR__.'/../../asset/composer-installation-structure/included-file-2.php'), |
|
144 | 144 | $this->astLocator |
145 | 145 | ), |
146 | 146 | ]), |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | |
152 | 152 | public function testWillLocateDependenciesEvenWithoutAutoloadFiles() : void |
153 | 153 | { |
154 | - $composerInstallationStructure = realpath(__DIR__ . '/../../asset/composer-installation-structure-without-autoload-files'); |
|
154 | + $composerInstallationStructure = realpath(__DIR__.'/../../asset/composer-installation-structure-without-autoload-files'); |
|
155 | 155 | |
156 | 156 | $this |
157 | 157 | ->makeInstaller |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | ->composerInstaller |
165 | 165 | ->expects(self::once()) |
166 | 166 | ->method('run') |
167 | - ->willReturnCallback(function () use ($composerInstallationStructure) : void { |
|
167 | + ->willReturnCallback(function() use ($composerInstallationStructure) : void { |
|
168 | 168 | self::assertSame($composerInstallationStructure, getcwd()); |
169 | 169 | }); |
170 | 170 | |
@@ -184,8 +184,8 @@ discard block |
||
184 | 184 | self::assertEquals( |
185 | 185 | new StaticClassMapSourceLocator( |
186 | 186 | [ |
187 | - 'A\\ClassName' => realpath(__DIR__ . '/../../asset/composer-installation-structure-without-autoload-files/AClassName.php'), |
|
188 | - 'B\\ClassName' => realpath(__DIR__ . '/../../asset/composer-installation-structure-without-autoload-files/BClassName.php'), |
|
187 | + 'A\\ClassName' => realpath(__DIR__.'/../../asset/composer-installation-structure-without-autoload-files/AClassName.php'), |
|
188 | + 'B\\ClassName' => realpath(__DIR__.'/../../asset/composer-installation-structure-without-autoload-files/BClassName.php'), |
|
189 | 189 | ], |
190 | 190 | $this->astLocator |
191 | 191 | ), |
@@ -6,40 +6,40 @@ |
||
6 | 6 | |
7 | 7 | class ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
8 | 8 | { |
9 | - public static $prefixLengthsPsr4 = array ( |
|
9 | + public static $prefixLengthsPsr4 = array( |
|
10 | 10 | 'p' => |
11 | - array ( |
|
11 | + array( |
|
12 | 12 | 'phpDocumentor\\Reflection\\' => 25, |
13 | 13 | ), |
14 | 14 | ); |
15 | 15 | |
16 | - public static $prefixDirsPsr4 = array ( |
|
16 | + public static $prefixDirsPsr4 = array( |
|
17 | 17 | 'phpDocumentor\\Reflection\\' => |
18 | - array ( |
|
19 | - 0 => __DIR__ . '/..' . '/phpdocumentor/reflection-common/src', |
|
20 | - 1 => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src', |
|
21 | - 2 => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src', |
|
18 | + array( |
|
19 | + 0 => __DIR__.'/..'.'/phpdocumentor/reflection-common/src', |
|
20 | + 1 => __DIR__.'/..'.'/phpdocumentor/reflection-docblock/src', |
|
21 | + 2 => __DIR__.'/..'.'/phpdocumentor/type-resolver/src', |
|
22 | 22 | ), |
23 | 23 | ); |
24 | 24 | |
25 | - public static $prefixesPsr0 = array ( |
|
25 | + public static $prefixesPsr0 = array( |
|
26 | 26 | 'P' => |
27 | - array ( |
|
27 | + array( |
|
28 | 28 | 'Prophecy\\' => |
29 | - array ( |
|
30 | - 0 => __DIR__ . '/..' . '/phpspec/prophecy/src', |
|
29 | + array( |
|
30 | + 0 => __DIR__.'/..'.'/phpspec/prophecy/src', |
|
31 | 31 | ), |
32 | 32 | ), |
33 | 33 | ); |
34 | 34 | |
35 | - public static $classMap = array ( |
|
36 | - 'A\\ClassName' => __DIR__ . '/../..' . '/AClassName.php', |
|
37 | - 'B\\ClassName' => __DIR__ . '/../..' . '/BClassName.php', |
|
35 | + public static $classMap = array( |
|
36 | + 'A\\ClassName' => __DIR__.'/../..'.'/AClassName.php', |
|
37 | + 'B\\ClassName' => __DIR__.'/../..'.'/BClassName.php', |
|
38 | 38 | ); |
39 | 39 | |
40 | 40 | public static function getInitializer(ClassLoader $loader) |
41 | 41 | { |
42 | - return \Closure::bind(function () use ($loader) { |
|
42 | + return \Closure::bind(function() use ($loader) { |
|
43 | 43 | $loader->prefixLengthsPsr4 = ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa::$prefixLengthsPsr4; |
44 | 44 | $loader->prefixDirsPsr4 = ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa::$prefixDirsPsr4; |
45 | 45 | $loader->prefixesPsr0 = ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa::$prefixesPsr0; |
@@ -31,9 +31,9 @@ discard block |
||
31 | 31 | use Symfony\Component\Console\Output\ConsoleOutput; |
32 | 32 | use function file_exists; |
33 | 33 | |
34 | -(function () : void { |
|
35 | - foreach ([__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../autoload.php'] as $autoload) { |
|
36 | - if (! file_exists($autoload)) { |
|
34 | +(function() : void { |
|
35 | + foreach ([__DIR__.'/../vendor/autoload.php', __DIR__.'/../autoload.php'] as $autoload) { |
|
36 | + if (!file_exists($autoload)) { |
|
37 | 37 | continue; |
38 | 38 | } |
39 | 39 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | new GetVersionCollectionFromGitRepository(), |
55 | 55 | new PickLastMinorVersionFromCollection(), |
56 | 56 | new LocateDependenciesViaComposer( |
57 | - function (string $installationPath) use ($composerIo) : Installer { |
|
57 | + function(string $installationPath) use ($composerIo) : Installer { |
|
58 | 58 | return Installer::create( |
59 | 59 | $composerIo, |
60 | 60 | (new Factory())->createComposer( |