@@ -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 | } |
@@ -30,21 +30,21 @@ discard block |
||
30 | 30 | $this->output->writeln( |
31 | 31 | "# Added\n" |
32 | 32 | . implode('', $this->convertFilteredChangesToMarkdownBulletList( |
33 | - function (Change $change) : bool { |
|
33 | + function(Change $change) : bool { |
|
34 | 34 | return $change->isAdded(); |
35 | 35 | }, |
36 | 36 | ...$arrayOfChanges |
37 | 37 | )) |
38 | 38 | . "\n# Changed\n" |
39 | 39 | . implode('', $this->convertFilteredChangesToMarkdownBulletList( |
40 | - function (Change $change) : bool { |
|
40 | + function(Change $change) : bool { |
|
41 | 41 | return $change->isChanged(); |
42 | 42 | }, |
43 | 43 | ...$arrayOfChanges |
44 | 44 | )) |
45 | 45 | . "\n# Removed\n" |
46 | 46 | . implode('', $this->convertFilteredChangesToMarkdownBulletList( |
47 | - function (Change $change) : bool { |
|
47 | + function(Change $change) : bool { |
|
48 | 48 | return $change->isRemoved(); |
49 | 49 | }, |
50 | 50 | ...$arrayOfChanges |
@@ -56,8 +56,8 @@ discard block |
||
56 | 56 | private function convertFilteredChangesToMarkdownBulletList(callable $filterFunction, Change ...$changes) : array |
57 | 57 | { |
58 | 58 | return array_map( |
59 | - function (Change $change) : string { |
|
60 | - return ' - ' . str_replace(['ADDED: ', 'CHANGED: ', 'REMOVED: '], '', trim((string) $change)) . "\n"; |
|
59 | + function(Change $change) : string { |
|
60 | + return ' - '.str_replace(['ADDED: ', 'CHANGED: ', 'REMOVED: '], '', trim((string) $change))."\n"; |
|
61 | 61 | }, |
62 | 62 | array_filter($changes, $filterFunction) |
63 | 63 | ); |
@@ -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 | } |
@@ -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; |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | self::assertSame( |
38 | 38 | $expectedMessages, |
39 | - array_map(function (Change $change) : string { |
|
39 | + array_map(function(Change $change) : string { |
|
40 | 40 | return $change->__toString(); |
41 | 41 | }, iterator_to_array($changes)) |
42 | 42 | ); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | return array_combine( |
123 | 123 | array_keys($properties), |
124 | 124 | array_map( |
125 | - function (string $methodName, array $errorMessages) use ($fromClass, $toClass) : array { |
|
125 | + function(string $methodName, array $errorMessages) use ($fromClass, $toClass) : array { |
|
126 | 126 | return [ |
127 | 127 | $fromClass->getMethod($methodName), |
128 | 128 | $toClass->getMethod($methodName), |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | self::assertSame( |
38 | 38 | $expectedMessages, |
39 | - array_map(function (Change $change) : string { |
|
39 | + array_map(function(Change $change) : string { |
|
40 | 40 | return $change->__toString(); |
41 | 41 | }, iterator_to_array($changes)) |
42 | 42 | ); |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | return array_combine( |
109 | 109 | array_keys($properties), |
110 | 110 | array_map( |
111 | - function (string $method, array $errorMessages) use ($fromClass, $toClass) : array { |
|
111 | + function(string $method, array $errorMessages) use ($fromClass, $toClass) : array { |
|
112 | 112 | return [ |
113 | 113 | $fromClass->getMethod($method), |
114 | 114 | $toClass->getMethod($method), |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | self::assertSame( |
38 | 38 | $expectedMessages, |
39 | - array_map(function (Change $change) : string { |
|
39 | + array_map(function(Change $change) : string { |
|
40 | 40 | return $change->__toString(); |
41 | 41 | }, iterator_to_array($changes)) |
42 | 42 | ); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | return array_combine( |
123 | 123 | array_keys($properties), |
124 | 124 | array_map( |
125 | - function (string $methodName, array $errorMessages) use ($fromClass, $toClass) : array { |
|
125 | + function(string $methodName, array $errorMessages) use ($fromClass, $toClass) : array { |
|
126 | 126 | return [ |
127 | 127 | $fromClass->getMethod($methodName), |
128 | 128 | $toClass->getMethod($methodName), |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | self::assertSame( |
38 | 38 | $expectedMessages, |
39 | - array_map(function (Change $change) : string { |
|
39 | + array_map(function(Change $change) : string { |
|
40 | 40 | return $change->__toString(); |
41 | 41 | }, iterator_to_array($changes)) |
42 | 42 | ); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | return array_combine( |
123 | 123 | array_keys($properties), |
124 | 124 | array_map( |
125 | - function (string $methodName, array $errorMessages) use ($fromClass, $toClass) : array { |
|
125 | + function(string $methodName, array $errorMessages) use ($fromClass, $toClass) : array { |
|
126 | 126 | return [ |
127 | 127 | $fromClass->getMethod($methodName), |
128 | 128 | $toClass->getMethod($methodName), |