@@ -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 | ); |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | return array_combine( |
113 | 113 | array_keys($properties), |
114 | 114 | array_map( |
115 | - function (string $method, array $errorMessages) use ($fromClass, $toClass) : array { |
|
115 | + function(string $method, array $errorMessages) use ($fromClass, $toClass) : array { |
|
116 | 116 | return [ |
117 | 117 | $fromClass->getMethod($method), |
118 | 118 | $toClass->getMethod($method), |
@@ -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\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 RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\MethodBased; |
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; |
6 | 6 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | { |
105 | 105 | $methodName = $oldMethod->getName(); |
106 | 106 | |
107 | - if (! $newClass->hasMethod($methodName)) { |
|
107 | + if (!$newClass->hasMethod($methodName)) { |
|
108 | 108 | return Changes::new(); |
109 | 109 | } |
110 | 110 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | { |
116 | 116 | $newProperty = $newClass->getProperty($oldProperty->getName()); |
117 | 117 | |
118 | - if (! $newProperty) { |
|
118 | + if (!$newProperty) { |
|
119 | 119 | return Changes::new(); |
120 | 120 | } |
121 | 121 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | { |
127 | 127 | $newConstant = $newClass->getReflectionConstant($oldConstant->getName()); |
128 | 128 | |
129 | - if (! $newConstant) { |
|
129 | + if (!$newConstant) { |
|
130 | 130 | return Changes::new(); |
131 | 131 | } |
132 | 132 |
@@ -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\Variance; |
6 | 6 | |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | return false; |
33 | 33 | } |
34 | 34 | |
35 | - if ($comparedType->allowsNull() && ! $type->allowsNull()) { |
|
35 | + if ($comparedType->allowsNull() && !$type->allowsNull()) { |
|
36 | 36 | return false; |
37 | 37 | } |
38 | 38 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | return false; |
49 | 49 | } |
50 | 50 | |
51 | - if (strtolower($typeAsString) === 'object' && ! $comparedType->isBuiltin()) { |
|
51 | + if (strtolower($typeAsString) === 'object' && !$comparedType->isBuiltin()) { |
|
52 | 52 | // `object` is not covariant to a defined class type |
53 | 53 | return true; |
54 | 54 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | return true; |
59 | 59 | } |
60 | 60 | |
61 | - if (strtolower($typeAsString) === 'iterable' && ! $comparedType->isBuiltin()) { |
|
61 | + if (strtolower($typeAsString) === 'iterable' && !$comparedType->isBuiltin()) { |
|
62 | 62 | if ($comparedType->targetReflectionClass()->implementsInterface(\Traversable::class)) { |
63 | 63 | // `iterable` can be restricted via any `Iterator` implementation |
64 | 64 | return true; |
@@ -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\ClassConstantBased; |
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\ClassConstantBased; |
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\ClassConstantBased; |
6 | 6 |