@@ -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 | } |
@@ -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 |
@@ -11,9 +11,9 @@ |
||
11 | 11 | public function __invoke(ReflectionProperty $property) : string |
12 | 12 | { |
13 | 13 | if ($property->isStatic()) { |
14 | - return $property->getDeclaringClass()->getName() . '::$' . $property->getName(); |
|
14 | + return $property->getDeclaringClass()->getName().'::$'.$property->getName(); |
|
15 | 15 | } |
16 | 16 | |
17 | - return $property->getDeclaringClass()->getName() . '#$' . $property->getName(); |
|
17 | + return $property->getDeclaringClass()->getName().'#$'.$property->getName(); |
|
18 | 18 | } |
19 | 19 | } |
@@ -13,12 +13,12 @@ |
||
13 | 13 | { |
14 | 14 | if ($function instanceof ReflectionMethod) { |
15 | 15 | if ($function->isStatic()) { |
16 | - return $function->getDeclaringClass()->getName() . '::' . $function->getName() . '()'; |
|
16 | + return $function->getDeclaringClass()->getName().'::'.$function->getName().'()'; |
|
17 | 17 | } |
18 | 18 | |
19 | - return $function->getDeclaringClass()->getName() . '#' . $function->getName() . '()'; |
|
19 | + return $function->getDeclaringClass()->getName().'#'.$function->getName().'()'; |
|
20 | 20 | } |
21 | 21 | |
22 | - return $function->getName() . '()'; |
|
22 | + return $function->getName().'()'; |
|
23 | 23 | } |
24 | 24 | } |
@@ -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; |