@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\FunctionBased; |
6 | 6 | |
@@ -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 | ); |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | array_combine( |
154 | 154 | array_keys($functions), |
155 | 155 | array_map( |
156 | - function (string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
156 | + function(string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
157 | 157 | return [ |
158 | 158 | $fromReflector->reflect($function), |
159 | 159 | $toReflector->reflect($function), |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\FunctionBased; |
6 | 6 | |
@@ -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 | ); |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | array_combine( |
150 | 150 | array_keys($functions), |
151 | 151 | array_map( |
152 | - function (string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
152 | + function(string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
153 | 153 | return [ |
154 | 154 | $fromReflector->reflect($function), |
155 | 155 | $toReflector->reflect($function), |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\FunctionBased; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\InterfaceBased; |
6 | 6 | |
@@ -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 | ); |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | return array_combine( |
105 | 105 | array_keys($properties), |
106 | 106 | array_map( |
107 | - function (string $className, array $errorMessages) use ($fromClassReflector, $toClassReflector |
|
107 | + function(string $className, array $errorMessages) use ($fromClassReflector, $toClassReflector |
|
108 | 108 | ) : array { |
109 | 109 | return [ |
110 | 110 | $fromClassReflector->reflect($className), |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\PropertyBased; |
6 | 6 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | self::assertSame( |
36 | 36 | $expectedMessages, |
37 | - array_map(function (Change $change) : string { |
|
37 | + array_map(function(Change $change) : string { |
|
38 | 38 | return $change->__toString(); |
39 | 39 | }, iterator_to_array($changes)) |
40 | 40 | ); |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | return array_combine( |
145 | 145 | array_keys($properties), |
146 | 146 | array_map( |
147 | - function (string $property, array $errorMessages) use ($fromClass, $toClass) : array { |
|
147 | + function(string $property, array $errorMessages) use ($fromClass, $toClass) : array { |
|
148 | 148 | return [ |
149 | 149 | $fromClass->getProperty($property), |
150 | 150 | $toClass->getProperty($property), |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\PropertyBased; |
6 | 6 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | self::assertSame( |
36 | 36 | $expectedMessages, |
37 | - array_map(function (Change $change) : string { |
|
37 | + array_map(function(Change $change) : string { |
|
38 | 38 | return $change->__toString(); |
39 | 39 | }, iterator_to_array($changes)) |
40 | 40 | ); |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | return array_combine( |
113 | 113 | array_keys($properties), |
114 | 114 | array_map( |
115 | - function (string $property, array $errorMessages) use ($fromClass, $toClass) : array { |
|
115 | + function(string $property, array $errorMessages) use ($fromClass, $toClass) : array { |
|
116 | 116 | return [ |
117 | 117 | $fromClass->getProperty($property), |
118 | 118 | $toClass->getProperty($property), |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\PropertyBased; |
6 | 6 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | self::assertSame( |
36 | 36 | $expectedMessages, |
37 | - array_map(function (Change $change) : string { |
|
37 | + array_map(function(Change $change) : string { |
|
38 | 38 | return $change->__toString(); |
39 | 39 | }, iterator_to_array($changes)) |
40 | 40 | ); |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | return array_combine( |
171 | 171 | array_keys($properties), |
172 | 172 | array_map( |
173 | - function (string $property, array $errorMessages) use ($fromClass, $toClass) : array { |
|
173 | + function(string $property, array $errorMessages) use ($fromClass, $toClass) : array { |
|
174 | 174 | return [ |
175 | 175 | $fromClass->getProperty($property), |
176 | 176 | $toClass->getProperty($property), |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\PropertyBased; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\PropertyBased; |
6 | 6 | |
@@ -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 | ); |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | return array_combine( |
130 | 130 | array_keys($properties), |
131 | 131 | array_map( |
132 | - function (string $property, array $errorMessages) use ($fromClass, $toClass) : array { |
|
132 | + function(string $property, array $errorMessages) use ($fromClass, $toClass) : array { |
|
133 | 133 | return [ |
134 | 134 | $fromClass->getProperty($property), |
135 | 135 | $toClass->getProperty($property), |