@@ -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; |
@@ -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 | ]), |
@@ -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 | ); |
@@ -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 { |
@@ -48,13 +48,13 @@ discard block |
||
48 | 48 | public function __invoke(string $installationPath) : SourceLocator |
49 | 49 | { |
50 | 50 | Assert::that($installationPath)->directory(); |
51 | - Assert::that($installationPath . '/composer.json')->file(); |
|
51 | + Assert::that($installationPath.'/composer.json')->file(); |
|
52 | 52 | |
53 | - $this->runInDirectory(function () : void { |
|
53 | + $this->runInDirectory(function() : void { |
|
54 | 54 | $this->installer->run(); |
55 | 55 | }, $installationPath); |
56 | 56 | |
57 | - $autoloadStatic = $installationPath . '/vendor/composer/autoload_static.php'; |
|
57 | + $autoloadStatic = $installationPath.'/vendor/composer/autoload_static.php'; |
|
58 | 58 | |
59 | 59 | Assert::that($autoloadStatic)->file(); |
60 | 60 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | ->file(); |
108 | 108 | |
109 | 109 | return new AggregateSourceLocator(array_values(array_map( |
110 | - function (string $path) : SourceLocator { |
|
110 | + function(string $path) : SourceLocator { |
|
111 | 111 | return new SingleFileSourceLocator( |
112 | 112 | realpath($path), |
113 | 113 | $this->astLocator |
@@ -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 |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | |
75 | 75 | public function setUp() : void |
76 | 76 | { |
77 | - $this->sourceRepository = CheckedOutRepository::fromPath(realpath(__DIR__ . '/../../../')); |
|
77 | + $this->sourceRepository = CheckedOutRepository::fromPath(realpath(__DIR__.'/../../../')); |
|
78 | 78 | chdir((string) $this->sourceRepository); |
79 | 79 | |
80 | 80 | $this->input = $this->createMock(InputInterface::class); |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | |
262 | 262 | $this->output->expects(self::any()) |
263 | 263 | ->method('writeln') |
264 | - ->willReturnCallback(function (string $output) use ($changeToExpect) : void { |
|
264 | + ->willReturnCallback(function(string $output) use ($changeToExpect) : void { |
|
265 | 265 | self::assertContains($changeToExpect, $output); |
266 | 266 | }); |
267 | 267 | } |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | |
309 | 309 | $this->getVersions->expects(self::once()) |
310 | 310 | ->method('fromRepository') |
311 | - ->with(self::callback(function (CheckedOutRepository $checkedOutRepository) : bool { |
|
311 | + ->with(self::callback(function(CheckedOutRepository $checkedOutRepository) : bool { |
|
312 | 312 | self::assertEquals($this->sourceRepository, $checkedOutRepository); |
313 | 313 | return true; |
314 | 314 | })) |
@@ -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 |