Passed
Pull Request — master (#38)
by Marco
02:48
created
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.
unit/Comparator/BackwardsCompatibility/ClassBased/MethodChangedTest.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\Comparator\BackwardsCompatibility\ClassBased;
6 6
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
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()));
Please login to merge, or discard this patch.
unit/Comparator/BackwardsCompatibility/ClassBased/PropertyChangedTest.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\Comparator\BackwardsCompatibility\ClassBased;
6 6
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
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());
Please login to merge, or discard this patch.
unit/Comparator/BackwardsCompatibility/ClassBased/ConstantChangedTest.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\Comparator\BackwardsCompatibility\ClassBased;
6 6
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
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());
Please login to merge, or discard this patch.