@@ -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\ClassBased; |
6 | 6 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $comparator |
61 | 61 | ->expects(self::exactly(3)) |
62 | 62 | ->method('compare') |
63 | - ->willReturnCallback(function (ReflectionMethod $from, ReflectionMethod $to) : Changes { |
|
63 | + ->willReturnCallback(function(ReflectionMethod $from, ReflectionMethod $to) : Changes { |
|
64 | 64 | $methodName = $from->getName(); |
65 | 65 | |
66 | 66 | self::assertSame(strtolower($methodName), strtolower($to->getName())); |
@@ -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\ClassBased; |
6 | 6 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $comparator |
61 | 61 | ->expects(self::exactly(2)) |
62 | 62 | ->method('compare') |
63 | - ->willReturnCallback(function (ReflectionProperty $from, ReflectionProperty $to) : Changes { |
|
63 | + ->willReturnCallback(function(ReflectionProperty $from, ReflectionProperty $to) : Changes { |
|
64 | 64 | $propertyName = $from->getName(); |
65 | 65 | |
66 | 66 | self::assertSame($propertyName, $to->getName()); |
@@ -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\ClassBased; |
6 | 6 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $comparator |
61 | 61 | ->expects(self::exactly(2)) |
62 | 62 | ->method('compare') |
63 | - ->willReturnCallback(function (ReflectionClassConstant $from, ReflectionClassConstant $to) : Changes { |
|
63 | + ->willReturnCallback(function(ReflectionClassConstant $from, ReflectionClassConstant $to) : Changes { |
|
64 | 64 | $propertyName = $from->getName(); |
65 | 65 | |
66 | 66 | self::assertSame($propertyName, $to->getName()); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Roave\ApiCompare\Comparator\BackwardsCompatibility\MethodBased; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Roave\ApiCompare\Comparator\BackwardsCompatibility\MethodBased; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Roave\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 Roave\ApiCompare\Comparator\BackwardsCompatibility\ClassBased; |
6 | 6 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | return array_reduce( |
28 | 28 | array_keys($commonConstants), |
29 | - function (Changes $accumulator, string $constantName) use ($constantsFrom, $constantsTo) : Changes { |
|
29 | + function(Changes $accumulator, string $constantName) use ($constantsFrom, $constantsTo) : Changes { |
|
30 | 30 | return $accumulator->mergeWith($this->checkConstant->compare( |
31 | 31 | $constantsFrom[$constantName], |
32 | 32 | $constantsTo[$constantName]) |
@@ -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 Roave\ApiCompare\Comparator\BackwardsCompatibility\ClassBased; |
6 | 6 | |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | return array_reduce( |
30 | 30 | array_keys($commonProperties), |
31 | - function (Changes $accumulator, string $propertyName) use ($propertiesFrom, $propertiesTo) : Changes { |
|
31 | + function(Changes $accumulator, string $propertyName) use ($propertiesFrom, $propertiesTo) : Changes { |
|
32 | 32 | return $accumulator->mergeWith($this->checkProperty->compare( |
33 | 33 | $propertiesFrom[$propertyName], |
34 | 34 | $propertiesTo[$propertyName]) |
@@ -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 Roave\ApiCompare\Comparator\BackwardsCompatibility\ClassBased; |
6 | 6 | |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | return array_reduce( |
32 | 32 | array_keys($commonMethods), |
33 | - function (Changes $accumulator, string $methodName) use ($methodsFrom, $methodsTo) : Changes { |
|
33 | + function(Changes $accumulator, string $methodName) use ($methodsFrom, $methodsTo) : Changes { |
|
34 | 34 | return $accumulator->mergeWith($this->checkMethod->compare( |
35 | 35 | $methodsFrom[$methodName], |
36 | 36 | $methodsTo[$methodName]) |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $methods = $class->getMethods(); |
47 | 47 | |
48 | 48 | return array_combine( |
49 | - array_map(function (ReflectionMethod $method) : string { |
|
49 | + array_map(function(ReflectionMethod $method) : string { |
|
50 | 50 | return strtolower($method->getName()); |
51 | 51 | }, $methods), |
52 | 52 | $methods |