@@ -60,7 +60,7 @@ |
||
60 | 60 | $comparator |
61 | 61 | ->expects(self::exactly(2)) |
62 | 62 | ->method('__invoke') |
63 | - ->willReturnCallback(function (ReflectionClassConstant $from, ReflectionClassConstant $to) : Changes { |
|
63 | + ->willReturnCallback(function(ReflectionClassConstant $from, ReflectionClassConstant $to) : Changes { |
|
64 | 64 | $propertyName = $from->getName(); |
65 | 65 | |
66 | 66 | self::assertSame($propertyName, $to->getName()); |
@@ -60,7 +60,7 @@ |
||
60 | 60 | $comparator |
61 | 61 | ->expects(self::exactly(2)) |
62 | 62 | ->method('__invoke') |
63 | - ->willReturnCallback(function (ReflectionProperty $from, ReflectionProperty $to) : Changes { |
|
63 | + ->willReturnCallback(function(ReflectionProperty $from, ReflectionProperty $to) : Changes { |
|
64 | 64 | $propertyName = $from->getName(); |
65 | 65 | |
66 | 66 | self::assertSame($propertyName, $to->getName()); |
@@ -61,7 +61,7 @@ |
||
61 | 61 | $comparator |
62 | 62 | ->expects(self::exactly(3)) |
63 | 63 | ->method('__invoke') |
64 | - ->willReturnCallback(function (ReflectionMethod $from, ReflectionMethod $to) : Changes { |
|
64 | + ->willReturnCallback(function(ReflectionMethod $from, ReflectionMethod $to) : Changes { |
|
65 | 65 | $methodName = $from->getName(); |
66 | 66 | |
67 | 67 | self::assertSame(strtolower($methodName), strtolower($to->getName())); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | public function __invoke(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes |
19 | 19 | { |
20 | - if ($fromMethod->isAbstract() || ! $toMethod->isAbstract()) { |
|
20 | + if ($fromMethod->isAbstract() || !$toMethod->isAbstract()) { |
|
21 | 21 | return Changes::empty(); |
22 | 22 | } |
23 | 23 |
@@ -22,7 +22,7 @@ |
||
22 | 22 | |
23 | 23 | public function __invoke(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes |
24 | 24 | { |
25 | - if (! $fromMethod->isProtected()) { |
|
25 | + if (!$fromMethod->isProtected()) { |
|
26 | 26 | return Changes::empty(); |
27 | 27 | } |
28 | 28 |
@@ -22,7 +22,7 @@ |
||
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->__invoke($fromMethod, $toMethod)); |
27 | 27 | }, |
28 | 28 | Changes::empty() |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | public function __invoke(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes |
19 | 19 | { |
20 | - if ($fromMethod->isFinal() || ! $toMethod->isFinal()) { |
|
20 | + if ($fromMethod->isFinal() || !$toMethod->isFinal()) { |
|
21 | 21 | return Changes::empty(); |
22 | 22 | } |
23 | 23 |
@@ -22,7 +22,7 @@ |
||
22 | 22 | |
23 | 23 | public function __invoke(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes |
24 | 24 | { |
25 | - if (! $fromMethod->isPublic()) { |
|
25 | + if (!$fromMethod->isPublic()) { |
|
26 | 26 | return Changes::empty(); |
27 | 27 | } |
28 | 28 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | public function __invoke(ReflectionClass $fromClass, ReflectionClass $toClass) : Changes |
19 | 19 | { |
20 | - if (! $toClass->isTrait() || ! $fromClass->isInterface()) { |
|
20 | + if (!$toClass->isTrait() || !$fromClass->isInterface()) { |
|
21 | 21 | // checking whether an interface became an class is done in `InterfaceBecameClass` |
22 | 22 | return Changes::empty(); |
23 | 23 | } |