@@ -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\PropertyBased; |
6 | 6 | |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | { |
22 | 22 | return array_reduce( |
23 | 23 | $this->checks, |
24 | - function (Changes $changes, PropertyBased $check) use ($fromProperty, $toProperty) : Changes { |
|
24 | + function(Changes $changes, PropertyBased $check) use ($fromProperty, $toProperty) : Changes { |
|
25 | 25 | return $changes->mergeWith($check->compare($fromProperty, $toProperty)); |
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\PropertyBased; |
6 | 6 | |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | public function compare(ReflectionProperty $fromProperty, ReflectionProperty $toProperty) : Changes |
21 | 21 | { |
22 | - if (! $fromProperty->isProtected()) { |
|
22 | + if (!$fromProperty->isProtected()) { |
|
23 | 23 | return Changes::new(); |
24 | 24 | } |
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\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 @@ 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 @@ |
||
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 @@ 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 | public function compare(ReflectionClassConstant $fromConstant, ReflectionClassConstant $toConstant) : Changes |
23 | 23 | { |
24 | - if (! $fromConstant->isPublic()) { |
|
24 | + if (!$fromConstant->isPublic()) { |
|
25 | 25 | return Changes::new(); |
26 | 26 | } |
27 | 27 |
@@ -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 @@ 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 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | { |
23 | 23 | return array_reduce( |
24 | 24 | $this->checks, |
25 | - function (Changes $changes, ClassConstantBased $check) use ($fromConstant, $toConstant) : Changes { |
|
25 | + function(Changes $changes, ClassConstantBased $check) use ($fromConstant, $toConstant) : Changes { |
|
26 | 26 | return $changes->mergeWith($check->compare($fromConstant, $toConstant)); |
27 | 27 | }, |
28 | 28 | Changes::new() |