Completed
Pull Request — master (#38)
by Marco
03:32
created
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.
BackwardsCompatibility/MethodBased/MethodFunctionDefinitionChanged.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 Roave\ApiCompare\Comparator\BackwardsCompatibility\MethodBased;
6 6
 
Please login to merge, or discard this patch.
Comparator/BackwardsCompatibility/MethodBased/AccessibleMethodChange.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 Roave\ApiCompare\Comparator\BackwardsCompatibility\MethodBased;
6 6
 
Please login to merge, or discard this patch.
BackwardsCompatibility/PropertyBased/AccessiblePropertyChanged.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 Roave\ApiCompare\Comparator\BackwardsCompatibility\PropertyBased;
6 6
 
Please login to merge, or discard this patch.
src/Comparator/BackwardsCompatibility/ClassBased/ConstantChanged.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 Roave\ApiCompare\Comparator\BackwardsCompatibility\ClassBased;
6 6
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
         return array_reduce(
28 28
             array_keys($commonConstants),
29
-            function (Changes $accumulator, string $constantName) use ($constantsFrom, $constantsTo) : Changes {
29
+            function(Changes $accumulator, string $constantName) use ($constantsFrom, $constantsTo) : Changes {
30 30
                 return $accumulator->mergeWith($this->checkConstant->compare(
31 31
                     $constantsFrom[$constantName],
32 32
                     $constantsTo[$constantName])
Please login to merge, or discard this patch.
src/Comparator/BackwardsCompatibility/ClassBased/PropertyChanged.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 Roave\ApiCompare\Comparator\BackwardsCompatibility\ClassBased;
6 6
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
         return array_reduce(
30 30
             array_keys($commonProperties),
31
-            function (Changes $accumulator, string $propertyName) use ($propertiesFrom, $propertiesTo) : Changes {
31
+            function(Changes $accumulator, string $propertyName) use ($propertiesFrom, $propertiesTo) : Changes {
32 32
                 return $accumulator->mergeWith($this->checkProperty->compare(
33 33
                     $propertiesFrom[$propertyName],
34 34
                     $propertiesTo[$propertyName])
Please login to merge, or discard this patch.
src/Comparator/BackwardsCompatibility/ClassBased/MethodChanged.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\Comparator\BackwardsCompatibility\ClassBased;
6 6
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
         return array_reduce(
32 32
             array_keys($commonMethods),
33
-            function (Changes $accumulator, string $methodName) use ($methodsFrom, $methodsTo) : Changes {
33
+            function(Changes $accumulator, string $methodName) use ($methodsFrom, $methodsTo) : Changes {
34 34
                 return $accumulator->mergeWith($this->checkMethod->compare(
35 35
                     $methodsFrom[$methodName],
36 36
                     $methodsTo[$methodName])
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $methods = $class->getMethods();
47 47
 
48 48
         return array_combine(
49
-            array_map(function (ReflectionMethod $method) : string {
49
+            array_map(function(ReflectionMethod $method) : string {
50 50
                 return strtolower($method->getName());
51 51
             }, $methods),
52 52
             $methods
Please login to merge, or discard this patch.