@@ -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 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace RoaveTest\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 RoaveTest\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 RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\ClassConstantBased; |
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 $constant, array $errorMessages) use ($fromClass, $toClass) : array { |
|
115 | + function(string $constant, array $errorMessages) use ($fromClass, $toClass) : array { |
|
116 | 116 | return [ |
117 | 117 | $fromClass->getReflectionConstant($constant), |
118 | 118 | $toClass->getReflectionConstant($constant), |
@@ -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\ClassConstantBased; |
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 $constant, array $errorMessages) use ($fromClass, $toClass) : array { |
|
115 | + function(string $constant, array $errorMessages) use ($fromClass, $toClass) : array { |
|
116 | 116 | return [ |
117 | 117 | $fromClass->getReflectionConstant($constant), |
118 | 118 | $toClass->getReflectionConstant($constant), |
@@ -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\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\MethodBased; |
6 | 6 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | public function compare(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes |
24 | 24 | { |
25 | - if (! $fromMethod->isPublic()) { |
|
25 | + if (!$fromMethod->isPublic()) { |
|
26 | 26 | return Changes::new(); |
27 | 27 | } |
28 | 28 |
@@ -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 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | public function compare(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes |
24 | 24 | { |
25 | - if (! $fromMethod->isProtected()) { |
|
25 | + if (!$fromMethod->isProtected()) { |
|
26 | 26 | return Changes::new(); |
27 | 27 | } |
28 | 28 |
@@ -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 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | { |
23 | 23 | return array_reduce( |
24 | 24 | $this->checks, |
25 | - function (Changes $changes, MethodBased $check) use ($fromMethod, $toMethod) : Changes { |
|
25 | + function(Changes $changes, MethodBased $check) use ($fromMethod, $toMethod) : Changes { |
|
26 | 26 | return $changes->mergeWith($check->compare($fromMethod, $toMethod)); |
27 | 27 | }, |
28 | 28 | Changes::new() |