@@ -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\ClassConstantBased; |
| 6 | 6 | |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | { |
| 22 | 22 | return array_reduce( |
| 23 | 23 | $this->checks, |
| 24 | - function (Changes $changes, ConstantBased $check) use ($fromConstant, $toConstant) : Changes { |
|
| 24 | + function(Changes $changes, ConstantBased $check) use ($fromConstant, $toConstant) : Changes { |
|
| 25 | 25 | return $changes->mergeWith($check->compare($fromConstant, $toConstant)); |
| 26 | 26 | }, |
| 27 | 27 | 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\FunctionBased; |
| 6 | 6 | |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | private function typeToString(?ReflectionType $type) : string |
| 80 | 80 | { |
| 81 | - if (! $type) { |
|
| 81 | + if (!$type) { |
|
| 82 | 82 | return 'no type'; |
| 83 | 83 | } |
| 84 | 84 | |
@@ -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\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 Roave\ApiCompare\Comparator\BackwardsCompatibility\FunctionBased; |
| 6 | 6 | |
@@ -56,13 +56,13 @@ discard block |
||
| 56 | 56 | { |
| 57 | 57 | $optionalParameters = array_values(array_filter( |
| 58 | 58 | $function->getParameters(), |
| 59 | - function (ReflectionParameter $parameter) : bool { |
|
| 59 | + function(ReflectionParameter $parameter) : bool { |
|
| 60 | 60 | return $parameter->isDefaultValueAvailable(); |
| 61 | 61 | } |
| 62 | 62 | )); |
| 63 | 63 | |
| 64 | 64 | return array_combine( |
| 65 | - array_map(function (ReflectionParameter $parameter) : int { |
|
| 65 | + array_map(function(ReflectionParameter $parameter) : int { |
|
| 66 | 66 | return $parameter->getPosition(); |
| 67 | 67 | }, $optionalParameters), |
| 68 | 68 | $optionalParameters |
@@ -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\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 Roave\ApiCompare\Comparator\BackwardsCompatibility\FunctionBased; |
| 6 | 6 | |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | { |
| 22 | 22 | return array_reduce( |
| 23 | 23 | $this->checks, |
| 24 | - function (Changes $changes, FunctionBased $check) use ($fromFunction, $toClass) : Changes { |
|
| 24 | + function(Changes $changes, FunctionBased $check) use ($fromFunction, $toClass) : Changes { |
|
| 25 | 25 | return $changes->mergeWith($check->compare($fromFunction, $toClass)); |
| 26 | 26 | }, |
| 27 | 27 | Changes::new() |
@@ -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\FunctionBased; |
| 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\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 Roave\ApiCompare\Comparator\BackwardsCompatibility\FunctionBased; |
| 6 | 6 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | private function typeToString(?ReflectionType $type) : string |
| 63 | 63 | { |
| 64 | - if (! $type) { |
|
| 64 | + if (!$type) { |
|
| 65 | 65 | return 'no type'; |
| 66 | 66 | } |
| 67 | 67 | |