@@ -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 | } |
@@ -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 |
@@ -18,10 +18,10 @@ |
||
18 | 18 | /** @var string[] */ |
19 | 19 | private $classMap; |
20 | 20 | |
21 | - /** |
|
22 | - * @param array<string, string> $classMap map of class => file. Every file must exist, |
|
23 | - * every key must be non-empty |
|
24 | - */ |
|
21 | + /** |
|
22 | + * @param array<string, string> $classMap map of class => file. Every file must exist, |
|
23 | + * every key must be non-empty |
|
24 | + */ |
|
25 | 25 | public function __construct( |
26 | 26 | array $classMap, |
27 | 27 | Locator $astLocator |
@@ -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 | } |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | self::assertSame( |
37 | 37 | $expectedMessages, |
38 | - array_map(function (Change $change) : string { |
|
38 | + array_map(function(Change $change) : string { |
|
39 | 39 | return $change->__toString(); |
40 | 40 | }, iterator_to_array($changes)) |
41 | 41 | ); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | array_combine( |
117 | 117 | array_keys($functions), |
118 | 118 | array_map( |
119 | - function (string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
119 | + function(string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
120 | 120 | return [ |
121 | 121 | $fromReflector->reflect($function), |
122 | 122 | $toReflector->reflect($function), |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | self::assertSame( |
37 | 37 | $expectedMessages, |
38 | - array_map(function (Change $change) : string { |
|
38 | + array_map(function(Change $change) : string { |
|
39 | 39 | return $change->__toString(); |
40 | 40 | }, iterator_to_array($changes)) |
41 | 41 | ); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | array_combine( |
117 | 117 | array_keys($functions), |
118 | 118 | array_map( |
119 | - function (string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
119 | + function(string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
120 | 120 | return [ |
121 | 121 | $fromReflector->reflect($function), |
122 | 122 | $toReflector->reflect($function), |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | self::assertSame( |
37 | 37 | $expectedMessages, |
38 | - array_map(function (Change $change) : string { |
|
38 | + array_map(function(Change $change) : string { |
|
39 | 39 | return $change->__toString(); |
40 | 40 | }, iterator_to_array($changes)) |
41 | 41 | ); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | array_combine( |
117 | 117 | array_keys($functions), |
118 | 118 | array_map( |
119 | - function (string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
119 | + function(string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
120 | 120 | return [ |
121 | 121 | $fromReflector->reflect($function), |
122 | 122 | $toReflector->reflect($function), |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | self::assertSame( |
37 | 37 | $expectedMessages, |
38 | - array_map(function (Change $change) : string { |
|
38 | + array_map(function(Change $change) : string { |
|
39 | 39 | return $change->__toString(); |
40 | 40 | }, iterator_to_array($changes)) |
41 | 41 | ); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | array_combine( |
117 | 117 | array_keys($functions), |
118 | 118 | array_map( |
119 | - function (string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
119 | + function(string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
120 | 120 | return [ |
121 | 121 | $fromReflector->reflect($function), |
122 | 122 | $toReflector->reflect($function), |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | self::assertSame( |
37 | 37 | $expectedMessages, |
38 | - array_map(function (Change $change) : string { |
|
38 | + array_map(function(Change $change) : string { |
|
39 | 39 | return $change->__toString(); |
40 | 40 | }, iterator_to_array($changes)) |
41 | 41 | ); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | array_combine( |
117 | 117 | array_keys($functions), |
118 | 118 | array_map( |
119 | - function (string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
119 | + function(string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
120 | 120 | return [ |
121 | 121 | $fromReflector->reflect($function), |
122 | 122 | $toReflector->reflect($function), |