Passed
Pull Request — master (#38)
by Marco
02:19
created
Comparator/BackwardsCompatibility/ClassBased/ClassBecameAbstractTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
         self::assertSame(
32 32
             $expectedMessages,
33
-            array_map(function (Change $change) : string {
33
+            array_map(function(Change $change) : string {
34 34
                 return $change->__toString();
35 35
             }, iterator_to_array($changes))
36 36
         );
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             ,
58 58
             $locator
59 59
         ));
60
-        $toReflector   = new ClassReflector(new StringSourceLocator(
60
+        $toReflector = new ClassReflector(new StringSourceLocator(
61 61
             <<<'PHP'
62 62
 <?php
63 63
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
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),
Please login to merge, or discard this patch.
test/unit/Formatter/ReflectionPropertyNameTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace RoaveTest\ApiCompare\Formatter;
6 6
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         return array_combine(
61 61
             array_keys($properties),
62 62
             array_map(
63
-                function (string $expectedMessage, ReflectionProperty $property) : array {
63
+                function(string $expectedMessage, ReflectionProperty $property) : array {
64 64
                     return [$property, $expectedMessage];
65 65
                 },
66 66
                 array_keys($properties),
Please login to merge, or discard this patch.
test/unit/Formatter/ReflectionFunctionAbstractNameTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace RoaveTest\ApiCompare\Formatter;
5 5
 
Please login to merge, or discard this patch.
src/Comparator/BackwardsCompatibility/ClassBased/MethodRemoved.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Formatter/ReflectionPropertyName.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Formatter/ReflectionFunctionAbstractName.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
BackwardsCompatibility/MethodBased/AccessibleMethodChangeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
BackwardsCompatibility/MethodBased/MethodFunctionDefinitionChangedTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
BackwardsCompatibility/PropertyBased/AccessiblePropertyChangedTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.