@@ -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 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | array_change_key_case($this->accessibleMethods($toClass), CASE_UPPER) |
39 | 39 | ); |
40 | 40 | |
41 | - return Changes::fromArray(array_values(array_map(function (ReflectionMethod $method) : Change { |
|
41 | + return Changes::fromArray(array_values(array_map(function(ReflectionMethod $method) : Change { |
|
42 | 42 | return Change::removed( |
43 | 43 | sprintf('Method %s was removed', $this->formatFunction->__invoke($method)), |
44 | 44 | true |
@@ -49,12 +49,12 @@ discard block |
||
49 | 49 | /** @return ReflectionMethod[] */ |
50 | 50 | private function accessibleMethods(ReflectionClass $class) : array |
51 | 51 | { |
52 | - $methods = array_filter($class->getMethods(), function (ReflectionMethod $method) : bool { |
|
52 | + $methods = array_filter($class->getMethods(), function(ReflectionMethod $method) : bool { |
|
53 | 53 | return $method->isPublic() || $method->isProtected(); |
54 | 54 | }); |
55 | 55 | |
56 | 56 | return array_combine( |
57 | - array_map(function (ReflectionMethod $method) : string { |
|
57 | + array_map(function(ReflectionMethod $method) : string { |
|
58 | 58 | return $method->getName(); |
59 | 59 | }, $methods), |
60 | 60 | $methods |
@@ -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\Formatter; |
6 | 6 | |
@@ -11,9 +11,9 @@ discard block |
||
11 | 11 | public function __invoke(ReflectionProperty $property) : string |
12 | 12 | { |
13 | 13 | if ($property->isStatic()) { |
14 | - return $property->getDeclaringClass()->getName() . '::$' . $property->getName(); |
|
14 | + return $property->getDeclaringClass()->getName().'::$'.$property->getName(); |
|
15 | 15 | } |
16 | 16 | |
17 | - return $property->getDeclaringClass()->getName() . '#$' . $property->getName(); |
|
17 | + return $property->getDeclaringClass()->getName().'#$'.$property->getName(); |
|
18 | 18 | } |
19 | 19 | } |
@@ -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\Formatter; |
6 | 6 | |
@@ -13,12 +13,12 @@ discard block |
||
13 | 13 | { |
14 | 14 | if ($function instanceof ReflectionMethod) { |
15 | 15 | if ($function->isStatic()) { |
16 | - return $function->getDeclaringClass()->getName() . '::' . $function->getName() . '()'; |
|
16 | + return $function->getDeclaringClass()->getName().'::'.$function->getName().'()'; |
|
17 | 17 | } |
18 | 18 | |
19 | - return $function->getDeclaringClass()->getName() . '#' . $function->getName() . '()'; |
|
19 | + return $function->getDeclaringClass()->getName().'#'.$function->getName().'()'; |
|
20 | 20 | } |
21 | 21 | |
22 | - return $function->getName() . '()'; |
|
22 | + return $function->getName().'()'; |
|
23 | 23 | } |
24 | 24 | } |
@@ -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\MethodBased; |
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\MethodBased; |
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\PropertyBased; |
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\ClassBased; |
6 | 6 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $comparator |
61 | 61 | ->expects(self::exactly(3)) |
62 | 62 | ->method('compare') |
63 | - ->willReturnCallback(function (ReflectionMethod $from, ReflectionMethod $to) : Changes { |
|
63 | + ->willReturnCallback(function(ReflectionMethod $from, ReflectionMethod $to) : Changes { |
|
64 | 64 | $methodName = $from->getName(); |
65 | 65 | |
66 | 66 | self::assertSame(strtolower($methodName), strtolower($to->getName())); |
@@ -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\ClassBased; |
6 | 6 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $comparator |
61 | 61 | ->expects(self::exactly(2)) |
62 | 62 | ->method('compare') |
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()); |
@@ -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\ClassBased; |
6 | 6 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $comparator |
61 | 61 | ->expects(self::exactly(2)) |
62 | 62 | ->method('compare') |
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()); |