@@ -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 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | return false; |
46 | 46 | } |
47 | 47 | |
48 | - if (strtolower($typeAsString) === 'object' && ! $comparedType->isBuiltin()) { |
|
48 | + if (strtolower($typeAsString) === 'object' && !$comparedType->isBuiltin()) { |
|
49 | 49 | // `object` is not covariant to a defined class type |
50 | 50 | return true; |
51 | 51 | } |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | return true; |
56 | 56 | } |
57 | 57 | |
58 | - if (strtolower($typeAsString) === 'iterable' && ! $comparedType->isBuiltin()) { |
|
58 | + if (strtolower($typeAsString) === 'iterable' && !$comparedType->isBuiltin()) { |
|
59 | 59 | /** @var ReflectionClass $comparedTypeReflectionClass */ |
60 | 60 | $comparedTypeReflectionClass = $reflector->reflect($comparedTypeAsString); |
61 | 61 |
@@ -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 | |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | return true; |
45 | 45 | } |
46 | 46 | |
47 | - if (strtolower($comparedTypeAsString) === 'object' && ! $type->isBuiltin()) { |
|
47 | + if (strtolower($comparedTypeAsString) === 'object' && !$type->isBuiltin()) { |
|
48 | 48 | // `object` is always contravariant to any object type |
49 | 49 | return true; |
50 | 50 | } |
@@ -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 | |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | return array_merge( |
221 | 221 | [[null]], |
222 | 222 | array_merge(...array_map( |
223 | - function (string $type) : array { |
|
223 | + function(string $type) : array { |
|
224 | 224 | return [ |
225 | 225 | [ReflectionType::createFromType($type, false)], |
226 | 226 | [ReflectionType::createFromType($type, true)], |
@@ -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 | |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | return array_merge( |
212 | 212 | [[null]], |
213 | 213 | array_merge(...array_map( |
214 | - function (string $type) : array { |
|
214 | + function(string $type) : array { |
|
215 | 215 | return [ |
216 | 216 | [ReflectionType::createFromType($type, false)], |
217 | 217 | [ReflectionType::createFromType($type, true)], |