@@ -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\InterfaceBased; |
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\MethodBased; |
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 | ); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | return array_combine( |
129 | 129 | array_keys($properties), |
130 | 130 | array_map( |
131 | - function (string $methodName, array $errorMessages) use ($fromClass, $toClass) : array { |
|
131 | + function(string $methodName, array $errorMessages) use ($fromClass, $toClass) : array { |
|
132 | 132 | return [ |
133 | 133 | $fromClass->getMethod($methodName), |
134 | 134 | $toClass->getMethod($methodName), |
@@ -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\MethodBased; |
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 | ); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | return array_combine( |
129 | 129 | array_keys($properties), |
130 | 130 | array_map( |
131 | - function (string $methodName, array $errorMessages) use ($fromClass, $toClass) : array { |
|
131 | + function(string $methodName, array $errorMessages) use ($fromClass, $toClass) : array { |
|
132 | 132 | return [ |
133 | 133 | $fromClass->getMethod($methodName), |
134 | 134 | $toClass->getMethod($methodName), |
@@ -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 | |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | self::assertSame( |
32 | 32 | $expectedMessages, |
33 | - array_map(function (Change $change) : string { |
|
33 | + array_map(function(Change $change) : string { |
|
34 | 34 | return $change->__toString(); |
35 | 35 | }, iterator_to_array($changes)) |
36 | 36 | ); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | , |
58 | 58 | $locator |
59 | 59 | )); |
60 | - $toReflector = new ClassReflector(new StringSourceLocator( |
|
60 | + $toReflector = new ClassReflector(new StringSourceLocator( |
|
61 | 61 | <<<'PHP' |
62 | 62 | <?php |
63 | 63 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | return array_combine( |
91 | 91 | array_keys($classes), |
92 | 92 | array_map( |
93 | - function (string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
93 | + function(string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
94 | 94 | return [ |
95 | 95 | $fromReflector->reflect($className), |
96 | 96 | $toReflector->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 Roave\ApiCompare\Comparator\BackwardsCompatibility\InterfaceBased; |
6 | 6 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | { |
23 | 23 | return array_reduce( |
24 | 24 | $this->checks, |
25 | - function (Changes $changes, InterfaceBased $check) use ($fromClass, $toClass) : Changes { |
|
25 | + function(Changes $changes, InterfaceBased $check) use ($fromClass, $toClass) : Changes { |
|
26 | 26 | return $changes->mergeWith($check->compare($fromClass, $toClass)); |
27 | 27 | }, |
28 | 28 | Changes::new() |
@@ -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\InterfaceBased; |
6 | 6 | |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | { |
20 | 20 | Assert::that($fromClass->getName())->same($toClass->getName()); |
21 | 21 | |
22 | - if ($toClass->isInterface() || ! $fromClass->isInterface()) { |
|
22 | + if ($toClass->isInterface() || !$fromClass->isInterface()) { |
|
23 | 23 | // checking whether a class became an interface is done in `ClassBecameInterface` |
24 | 24 | return Changes::new(); |
25 | 25 | } |
@@ -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\MethodBased; |
6 | 6 | |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | { |
18 | 18 | public function compare(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes |
19 | 19 | { |
20 | - if ($fromMethod->isFinal() || ! $toMethod->isFinal()) { |
|
20 | + if ($fromMethod->isFinal() || !$toMethod->isFinal()) { |
|
21 | 21 | return Changes::new(); |
22 | 22 | } |
23 | 23 |
@@ -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\MethodBased; |
6 | 6 | |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | { |
18 | 18 | public function compare(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes |
19 | 19 | { |
20 | - if ($fromMethod->isAbstract() || ! $toMethod->isAbstract()) { |
|
20 | + if ($fromMethod->isAbstract() || !$toMethod->isAbstract()) { |
|
21 | 21 | return Changes::new(); |
22 | 22 | } |
23 | 23 |
@@ -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 | |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | { |
21 | 21 | Assert::that($fromClass->getName())->same($toClass->getName()); |
22 | 22 | |
23 | - if ($fromClass->isInterface() || ! $toClass->isInterface()) { |
|
23 | + if ($fromClass->isInterface() || !$toClass->isInterface()) { |
|
24 | 24 | // checking whether a class became an interface is done in `ClassBecameInterface` |
25 | 25 | return Changes::new(); |
26 | 26 | } |