@@ -61,7 +61,7 @@ |
||
61 | 61 | $comparator |
62 | 62 | ->expects(self::exactly(3)) |
63 | 63 | ->method('compare') |
64 | - ->willReturnCallback(function (ReflectionMethod $from, ReflectionMethod $to) : Changes { |
|
64 | + ->willReturnCallback(function(ReflectionMethod $from, ReflectionMethod $to) : Changes { |
|
65 | 65 | $methodName = $from->getName(); |
66 | 66 | |
67 | 67 | self::assertSame(strtolower($methodName), strtolower($to->getName())); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | self::assertSame( |
35 | 35 | $expectedMessages, |
36 | - array_map(function (Change $change) : string { |
|
36 | + array_map(function(Change $change) : string { |
|
37 | 37 | return $change->__toString(); |
38 | 38 | }, iterator_to_array($changes)) |
39 | 39 | ); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | , |
61 | 61 | $locator |
62 | 62 | )); |
63 | - $toReflector = new ClassReflector(new StringSourceLocator( |
|
63 | + $toReflector = new ClassReflector(new StringSourceLocator( |
|
64 | 64 | <<<'PHP' |
65 | 65 | <?php |
66 | 66 | |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | return array_combine( |
94 | 94 | array_keys($classes), |
95 | 95 | array_map( |
96 | - function (string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
96 | + function(string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
97 | 97 | return [ |
98 | 98 | $fromReflector->reflect($className), |
99 | 99 | $toReflector->reflect($className), |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | |
32 | 32 | self::assertSame( |
33 | 33 | $expectedMessages, |
34 | - array_map(function (Change $change) : string { |
|
34 | + array_map(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 |
@@ -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 | ); |
@@ -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 | - function (string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
108 | + function(string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
109 | 109 | return [ |
110 | 110 | $fromReflector->reflect($className), |
111 | 111 | $toReflector->reflect($className), |
@@ -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), |
@@ -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), |
@@ -63,7 +63,7 @@ |
||
63 | 63 | return array_combine( |
64 | 64 | array_keys($properties), |
65 | 65 | array_map( |
66 | - function (string $expectedMessage, ReflectionProperty $property) : array { |
|
66 | + function(string $expectedMessage, ReflectionProperty $property) : array { |
|
67 | 67 | return [$property, $expectedMessage]; |
68 | 68 | }, |
69 | 69 | array_keys($properties), |