@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | self::assertSame( |
| 38 | 38 | $expectedMessages, |
| 39 | - array_map(static function (Change $change) : string { |
|
| 39 | + array_map(static function(Change $change) : string { |
|
| 40 | 40 | return $change->__toString(); |
| 41 | 41 | }, iterator_to_array($changes)) |
| 42 | 42 | ); |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | return array_combine( |
| 139 | 139 | array_keys($properties), |
| 140 | 140 | array_map( |
| 141 | - static function (string $property, array $errorMessages) use ($fromClass, $toClass) : array { |
|
| 141 | + static function(string $property, array $errorMessages) use ($fromClass, $toClass) : array { |
|
| 142 | 142 | return [ |
| 143 | 143 | $fromClass->getProperty($property), |
| 144 | 144 | $toClass->getProperty($property), |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | self::assertSame( |
| 38 | 38 | $expectedMessages, |
| 39 | - array_map(static function (Change $change) : string { |
|
| 39 | + array_map(static function(Change $change) : string { |
|
| 40 | 40 | return $change->__toString(); |
| 41 | 41 | }, iterator_to_array($changes)) |
| 42 | 42 | ); |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | return array_combine( |
| 176 | 176 | array_keys($properties), |
| 177 | 177 | array_map( |
| 178 | - static function (string $property, array $errorMessages) use ($fromClass, $toClass) : array { |
|
| 178 | + static function(string $property, array $errorMessages) use ($fromClass, $toClass) : array { |
|
| 179 | 179 | return [ |
| 180 | 180 | $fromClass->getProperty($property), |
| 181 | 181 | $toClass->getProperty($property), |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | self::assertSame( |
| 33 | 33 | $expectedMessages, |
| 34 | - array_map(static function (Change $change) : string { |
|
| 34 | + array_map(static function(Change $change) : string { |
|
| 35 | 35 | return $change->__toString(); |
| 36 | 36 | }, iterator_to_array($changes)) |
| 37 | 37 | ); |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | , |
| 54 | 54 | $locator |
| 55 | 55 | )); |
| 56 | - $toReflector = new ClassReflector(new StringSourceLocator( |
|
| 56 | + $toReflector = new ClassReflector(new StringSourceLocator( |
|
| 57 | 57 | <<<'PHP' |
| 58 | 58 | <?php |
| 59 | 59 | |
@@ -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), |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | self::assertSame( |
| 38 | 38 | $expectedMessages, |
| 39 | - array_map(static function (Change $change) : string { |
|
| 39 | + array_map(static function(Change $change) : string { |
|
| 40 | 40 | return $change->__toString(); |
| 41 | 41 | }, iterator_to_array($changes)) |
| 42 | 42 | ); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | , |
| 67 | 67 | $locator |
| 68 | 68 | )); |
| 69 | - $toReflector = new ClassReflector(new StringSourceLocator( |
|
| 69 | + $toReflector = new ClassReflector(new StringSourceLocator( |
|
| 70 | 70 | <<<'PHP' |
| 71 | 71 | <?php |
| 72 | 72 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | return array_combine( |
| 106 | 106 | array_keys($classes), |
| 107 | 107 | array_map( |
| 108 | - static function (string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
| 108 | + static function(string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
| 109 | 109 | return [ |
| 110 | 110 | $fromReflector->reflect($className), |
| 111 | 111 | $toReflector->reflect($className), |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | $comparator |
| 62 | 62 | ->expects(self::exactly(2)) |
| 63 | 63 | ->method('__invoke') |
| 64 | - ->willReturnCallback(static function (ReflectionProperty $from, ReflectionProperty $to) : Changes { |
|
| 64 | + ->willReturnCallback(static function(ReflectionProperty $from, ReflectionProperty $to) : Changes { |
|
| 65 | 65 | $propertyName = $from->getName(); |
| 66 | 66 | |
| 67 | 67 | self::assertSame($propertyName, $to->getName()); |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | self::assertSame( |
| 33 | 33 | $expectedMessages, |
| 34 | - array_map(static function (Change $change) : string { |
|
| 34 | + array_map(static function(Change $change) : string { |
|
| 35 | 35 | return $change->__toString(); |
| 36 | 36 | }, iterator_to_array($changes)) |
| 37 | 37 | ); |
@@ -45,11 +45,11 @@ discard block |
||
| 45 | 45 | return [ |
| 46 | 46 | 'RoaveTestAsset\\ClassWithConstantsBeingRemoved' => [ |
| 47 | 47 | (new ClassReflector(new SingleFileSourceLocator( |
| 48 | - __DIR__ . '/../../../../asset/api/old/ClassWithConstantsBeingRemoved.php', |
|
| 48 | + __DIR__.'/../../../../asset/api/old/ClassWithConstantsBeingRemoved.php', |
|
| 49 | 49 | $locator |
| 50 | 50 | )))->reflect('RoaveTestAsset\\ClassWithConstantsBeingRemoved'), |
| 51 | 51 | (new ClassReflector(new SingleFileSourceLocator( |
| 52 | - __DIR__ . '/../../../../asset/api/new/ClassWithConstantsBeingRemoved.php', |
|
| 52 | + __DIR__.'/../../../../asset/api/new/ClassWithConstantsBeingRemoved.php', |
|
| 53 | 53 | $locator |
| 54 | 54 | )))->reflect('RoaveTestAsset\\ClassWithConstantsBeingRemoved'), |
| 55 | 55 | [ |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | $comparator |
| 63 | 63 | ->expects(self::exactly(3)) |
| 64 | 64 | ->method('__invoke') |
| 65 | - ->willReturnCallback(static function (ReflectionMethod $from, ReflectionMethod $to) : Changes { |
|
| 65 | + ->willReturnCallback(static function(ReflectionMethod $from, ReflectionMethod $to) : Changes { |
|
| 66 | 66 | $methodName = $from->getName(); |
| 67 | 67 | |
| 68 | 68 | self::assertSame(strtolower($methodName), strtolower($to->getName())); |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | self::assertSame( |
| 38 | 38 | $expectedMessages, |
| 39 | - array_map(static function (Change $change) : string { |
|
| 39 | + array_map(static function(Change $change) : string { |
|
| 40 | 40 | return $change->__toString(); |
| 41 | 41 | }, iterator_to_array($changes)) |
| 42 | 42 | ); |
@@ -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 | |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | return array_combine( |
| 97 | 97 | array_keys($classes), |
| 98 | 98 | array_map( |
| 99 | - static function (string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
| 99 | + static function(string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
| 100 | 100 | return [ |
| 101 | 101 | $fromReflector->reflect($className), |
| 102 | 102 | $toReflector->reflect($className), |