Passed
Pull Request — master (#38)
by Marco
02:19
created
src/Comparator/BackwardsCompatibility/ClassBased/PropertyRemoved.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
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             array_keys($this->accessibleProperties($toClass))
38 38
         );
39 39
 
40
-        return Changes::fromArray(array_values(array_map(function (string $property) use ($fromProperties) : Change {
40
+        return Changes::fromArray(array_values(array_map(function(string $property) use ($fromProperties) : Change {
41 41
             return Change::removed(
42 42
                 sprintf('Property %s was removed', $this->formatProperty->__invoke($fromProperties[$property])),
43 43
                 true
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     /** @return ReflectionProperty[] */
49 49
     private function accessibleProperties(ReflectionClass $class) : array
50 50
     {
51
-        return array_filter($class->getProperties(), function (ReflectionProperty $property) : bool {
51
+        return array_filter($class->getProperties(), function(ReflectionProperty $property) : bool {
52 52
             return $property->isPublic() || $property->isProtected();
53 53
         });
54 54
     }
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
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
         return array_reduce(
31 31
             array_keys($commonProperties),
32
-            function (Changes $accumulator, string $propertyName) use ($propertiesFrom, $propertiesTo) : Changes {
32
+            function(Changes $accumulator, string $propertyName) use ($propertiesFrom, $propertiesTo) : Changes {
33 33
                 return $accumulator->mergeWith($this->checkProperty->compare(
34 34
                     $propertiesFrom[$propertyName],
35 35
                     $propertiesTo[$propertyName]
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
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
         return array_reduce(
31 31
             array_keys($commonConstants),
32
-            function (Changes $accumulator, string $constantName) use ($constantsFrom, $constantsTo) : Changes {
32
+            function(Changes $accumulator, string $constantName) use ($constantsFrom, $constantsTo) : Changes {
33 33
                 return $accumulator->mergeWith($this->checkConstant->compare(
34 34
                     $constantsFrom[$constantName],
35 35
                     $constantsTo[$constantName]
Please login to merge, or discard this patch.
BackwardsCompatibility/MethodBased/OnlyProtectedMethodChangedTest.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/MultipleChecksOnAMethodTest.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/OnlyPublicMethodChangedTest.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/MultipleChecksOnAPropertyTest.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.
BackwardsCompatibility/PropertyBased/OnlyProtectedPropertyChangedTest.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.
BackwardsCompatibility/PropertyBased/OnlyPublicPropertyChangedTest.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.