@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | self::assertSame( |
| 35 | 35 | $expectedMessages, |
| 36 | - array_map(static function (Change $change) : string { |
|
| 36 | + array_map(static function(Change $change) : string { |
|
| 37 | 37 | return $change->__toString(); |
| 38 | 38 | }, iterator_to_array($changes)) |
| 39 | 39 | ); |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | , |
| 64 | 64 | $locator |
| 65 | 65 | )); |
| 66 | - $toReflector = new ClassReflector(new StringSourceLocator( |
|
| 66 | + $toReflector = new ClassReflector(new StringSourceLocator( |
|
| 67 | 67 | <<<'PHP' |
| 68 | 68 | <?php |
| 69 | 69 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | return array_combine( |
| 103 | 103 | array_keys($classes), |
| 104 | 104 | array_map( |
| 105 | - static function (string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
| 105 | + static function(string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
| 106 | 106 | return [ |
| 107 | 107 | $fromReflector->reflect($className), |
| 108 | 108 | $toReflector->reflect($className), |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | self::assertSame( |
| 35 | 35 | $expectedMessages, |
| 36 | - array_map(static function (Change $change) : string { |
|
| 36 | + array_map(static function(Change $change) : string { |
|
| 37 | 37 | return $change->__toString(); |
| 38 | 38 | }, iterator_to_array($changes)) |
| 39 | 39 | ); |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | , |
| 64 | 64 | $locator |
| 65 | 65 | )); |
| 66 | - $toReflector = new ClassReflector(new StringSourceLocator( |
|
| 66 | + $toReflector = new ClassReflector(new StringSourceLocator( |
|
| 67 | 67 | <<<'PHP' |
| 68 | 68 | <?php |
| 69 | 69 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | return array_combine( |
| 103 | 103 | array_keys($classes), |
| 104 | 104 | array_map( |
| 105 | - static function (string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
| 105 | + static function(string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
| 106 | 106 | return [ |
| 107 | 107 | $fromReflector->reflect($className), |
| 108 | 108 | $toReflector->reflect($className), |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | self::assertSame( |
| 35 | 35 | $expectedMessages, |
| 36 | - array_map(static function (Change $change) : string { |
|
| 36 | + array_map(static function(Change $change) : string { |
|
| 37 | 37 | return $change->__toString(); |
| 38 | 38 | }, iterator_to_array($changes)) |
| 39 | 39 | ); |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | , |
| 64 | 64 | $locator |
| 65 | 65 | )); |
| 66 | - $toReflector = new ClassReflector(new StringSourceLocator( |
|
| 66 | + $toReflector = new ClassReflector(new StringSourceLocator( |
|
| 67 | 67 | <<<'PHP' |
| 68 | 68 | <?php |
| 69 | 69 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | return array_combine( |
| 103 | 103 | array_keys($classes), |
| 104 | 104 | array_map( |
| 105 | - static function (string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
| 105 | + static function(string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
| 106 | 106 | return [ |
| 107 | 107 | $fromReflector->reflect($className), |
| 108 | 108 | $toReflector->reflect($className), |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | self::assertSame( |
| 35 | 35 | $expectedMessages, |
| 36 | - array_map(static function (Change $change) : string { |
|
| 36 | + array_map(static function(Change $change) : string { |
|
| 37 | 37 | return $change->__toString(); |
| 38 | 38 | }, iterator_to_array($changes)) |
| 39 | 39 | ); |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | , |
| 64 | 64 | $locator |
| 65 | 65 | )); |
| 66 | - $toReflector = new ClassReflector(new StringSourceLocator( |
|
| 66 | + $toReflector = new ClassReflector(new StringSourceLocator( |
|
| 67 | 67 | <<<'PHP' |
| 68 | 68 | <?php |
| 69 | 69 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | return array_combine( |
| 103 | 103 | array_keys($classes), |
| 104 | 104 | array_map( |
| 105 | - static function (string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
| 105 | + static function(string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
| 106 | 106 | return [ |
| 107 | 107 | $fromReflector->reflect($className), |
| 108 | 108 | $toReflector->reflect($className), |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | self::assertSame( |
| 35 | 35 | $expectedMessages, |
| 36 | - array_map(static function (Change $change) : string { |
|
| 36 | + array_map(static function(Change $change) : string { |
|
| 37 | 37 | return $change->__toString(); |
| 38 | 38 | }, iterator_to_array($changes)) |
| 39 | 39 | ); |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | , |
| 64 | 64 | $locator |
| 65 | 65 | )); |
| 66 | - $toReflector = new ClassReflector(new StringSourceLocator( |
|
| 66 | + $toReflector = new ClassReflector(new StringSourceLocator( |
|
| 67 | 67 | <<<'PHP' |
| 68 | 68 | <?php |
| 69 | 69 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | return array_combine( |
| 103 | 103 | array_keys($classes), |
| 104 | 104 | array_map( |
| 105 | - static function (string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
| 105 | + static function(string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
| 106 | 106 | return [ |
| 107 | 107 | $fromReflector->reflect($className), |
| 108 | 108 | $toReflector->reflect($className), |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | self::assertSame( |
| 35 | 35 | $expectedMessages, |
| 36 | - array_map(static function (Change $change) : string { |
|
| 36 | + array_map(static function(Change $change) : string { |
|
| 37 | 37 | return $change->__toString(); |
| 38 | 38 | }, iterator_to_array($changes)) |
| 39 | 39 | ); |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | , |
| 64 | 64 | $locator |
| 65 | 65 | )); |
| 66 | - $toReflector = new ClassReflector(new StringSourceLocator( |
|
| 66 | + $toReflector = new ClassReflector(new StringSourceLocator( |
|
| 67 | 67 | <<<'PHP' |
| 68 | 68 | <?php |
| 69 | 69 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | return array_combine( |
| 103 | 103 | array_keys($classes), |
| 104 | 104 | array_map( |
| 105 | - static function (string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
| 105 | + static function(string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
| 106 | 106 | return [ |
| 107 | 107 | $fromReflector->reflect($className), |
| 108 | 108 | $toReflector->reflect($className), |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | self::assertSame( |
| 39 | 39 | $expectedMessages, |
| 40 | - array_map(static function (Change $change) : string { |
|
| 40 | + array_map(static function(Change $change) : string { |
|
| 41 | 41 | return $change->__toString(); |
| 42 | 42 | }, iterator_to_array($changes)) |
| 43 | 43 | ); |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | return array_combine( |
| 124 | 124 | array_keys($properties), |
| 125 | 125 | array_map( |
| 126 | - static function (string $methodName, array $errorMessages) use ($fromClass, $toClass) : array { |
|
| 126 | + static function(string $methodName, array $errorMessages) use ($fromClass, $toClass) : array { |
|
| 127 | 127 | return [ |
| 128 | 128 | $fromClass->getMethod($methodName), |
| 129 | 129 | $toClass->getMethod($methodName), |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | self::assertSame( |
| 39 | 39 | $expectedMessages, |
| 40 | - array_map(static function (Change $change) : string { |
|
| 40 | + array_map(static function(Change $change) : string { |
|
| 41 | 41 | return $change->__toString(); |
| 42 | 42 | }, iterator_to_array($changes)) |
| 43 | 43 | ); |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | return array_combine( |
| 124 | 124 | array_keys($properties), |
| 125 | 125 | array_map( |
| 126 | - static function (string $methodName, array $errorMessages) use ($fromClass, $toClass) : array { |
|
| 126 | + static function(string $methodName, array $errorMessages) use ($fromClass, $toClass) : array { |
|
| 127 | 127 | return [ |
| 128 | 128 | $fromClass->getMethod($methodName), |
| 129 | 129 | $toClass->getMethod($methodName), |
@@ -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 | ); |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | |
| 113 | 113 | return array_combine(array_keys($properties), |
| 114 | 114 | array_map( |
| 115 | - function (string $constant, array $errorMessages) use ($fromClass, $toClass) : array { |
|
| 115 | + function(string $constant, array $errorMessages) use ($fromClass, $toClass) : array { |
|
| 116 | 116 | return [ |
| 117 | 117 | $fromClass->getReflectionConstant($constant), |
| 118 | 118 | $toClass->getReflectionConstant($constant), |