@@ -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\TraitBased; |
6 | 6 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | self::assertSame( |
38 | 38 | $expectedMessages, |
39 | - array_map(function (Change $change) : string { |
|
39 | + array_map(function(Change $change) : string { |
|
40 | 40 | return $change->__toString(); |
41 | 41 | }, iterator_to_array($changes)) |
42 | 42 | ); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | , |
62 | 62 | $locator |
63 | 63 | )); |
64 | - $toReflector = new ClassReflector(new StringSourceLocator( |
|
64 | + $toReflector = new ClassReflector(new StringSourceLocator( |
|
65 | 65 | <<<'PHP' |
66 | 66 | <?php |
67 | 67 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | return array_combine( |
91 | 91 | array_keys($classes), |
92 | 92 | array_map( |
93 | - function (string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
93 | + function(string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
94 | 94 | return [ |
95 | 95 | $fromReflector->reflect($className), |
96 | 96 | $toReflector->reflect($className), |
@@ -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\TraitBased; |
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\TraitBased; |
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\TraitBased; |
6 | 6 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | self::assertSame( |
38 | 38 | $expectedMessages, |
39 | - array_map(function (Change $change) : string { |
|
39 | + array_map(function(Change $change) : string { |
|
40 | 40 | return $change->__toString(); |
41 | 41 | }, iterator_to_array($changes)) |
42 | 42 | ); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | , |
62 | 62 | $locator |
63 | 63 | )); |
64 | - $toReflector = new ClassReflector(new StringSourceLocator( |
|
64 | + $toReflector = new ClassReflector(new StringSourceLocator( |
|
65 | 65 | <<<'PHP' |
66 | 66 | <?php |
67 | 67 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | return array_combine( |
91 | 91 | array_keys($classes), |
92 | 92 | array_map( |
93 | - function (string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
93 | + function(string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
94 | 94 | return [ |
95 | 95 | $fromReflector->reflect($className), |
96 | 96 | $toReflector->reflect($className), |
@@ -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 | |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | { |
21 | 21 | Assert::that($fromClass->getName())->same($toClass->getName()); |
22 | 22 | |
23 | - if (! $this->isClass($toClass) || ! $fromClass->isInterface()) { |
|
23 | + if (!$this->isClass($toClass) || !$fromClass->isInterface()) { |
|
24 | 24 | // checking whether a class became an interface is done in `ClassBecameInterface` |
25 | 25 | return Changes::new(); |
26 | 26 | } |
@@ -37,6 +37,6 @@ discard block |
||
37 | 37 | */ |
38 | 38 | private function isClass(ReflectionClass $class) : bool |
39 | 39 | { |
40 | - return ! ($class->isTrait() || $class->isInterface()); |
|
40 | + return !($class->isTrait() || $class->isInterface()); |
|
41 | 41 | } |
42 | 42 | } |
@@ -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 | |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | { |
21 | 21 | Assert::that($fromClass->getName())->same($toClass->getName()); |
22 | 22 | |
23 | - if (! $toClass->isTrait() || ! $fromClass->isInterface()) { |
|
23 | + if (!$toClass->isTrait() || !$fromClass->isInterface()) { |
|
24 | 24 | // checking whether an interface became an class is done in `InterfaceBecameClass` |
25 | 25 | return Changes::new(); |
26 | 26 | } |
@@ -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\InterfaceBased; |
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\ClassBased; |
6 | 6 | |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | { |
22 | 22 | Assert::that($fromClass->getName())->same($toClass->getName()); |
23 | 23 | |
24 | - if ($fromClass->isTrait() || ! $toClass->isTrait()) { |
|
24 | + if ($fromClass->isTrait() || !$toClass->isTrait()) { |
|
25 | 25 | return Changes::new(); |
26 | 26 | } |
27 | 27 |
@@ -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\ClassBased; |
6 | 6 | |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | { |
22 | 22 | Assert::that($fromClass->getName())->same($toClass->getName()); |
23 | 23 | |
24 | - if ($fromClass->isInterface() || ! $toClass->isInterface()) { |
|
24 | + if ($fromClass->isInterface() || !$toClass->isInterface()) { |
|
25 | 25 | // checking whether a class became an interface is done in `InterfaceBecameClass` |
26 | 26 | return Changes::new(); |
27 | 27 | } |