Completed
Pull Request — master (#38)
by Marco
03:08
created
src/Comparator/BackwardsCompatibility/InterfaceBased/MethodAdded.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\InterfaceBased;
6 6
 
@@ -17,11 +17,11 @@  discard block
 block discarded – undo
17 17
         $toMethods   = $this->methods($toInterface);
18 18
         $newMethods  = array_diff_key($toMethods, $fromMethods);
19 19
 
20
-        if (! $newMethods) {
20
+        if (!$newMethods) {
21 21
             return Changes::new();
22 22
         }
23 23
 
24
-        return Changes::fromArray(array_values(array_map(function (ReflectionMethod $method) use (
24
+        return Changes::fromArray(array_values(array_map(function(ReflectionMethod $method) use (
25 25
             $fromInterface
26 26
         ) : Change {
27 27
             return Change::added(
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         $methods = $interface->getMethods();
42 42
 
43 43
         return array_combine(
44
-            array_map(function (ReflectionMethod $method) : string {
44
+            array_map(function(ReflectionMethod $method) : string {
45 45
                 return strtolower($method->getName());
46 46
             }, $methods),
47 47
             $methods
Please login to merge, or discard this patch.
src/Comparator/BackwardsCompatibility/InterfaceBased/InterfaceBased.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\InterfaceBased;
6 6
 
Please login to merge, or discard this patch.
BackwardsCompatibility/PropertyBased/PropertyVisibilityReduced.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/PropertyBased/MultiPropertyBased.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\PropertyBased;
6 6
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     {
22 22
         return array_reduce(
23 23
             $this->checks,
24
-            function (Changes $changes, PropertyBased $check) use ($fromProperty, $toProperty) : Changes {
24
+            function(Changes $changes, PropertyBased $check) use ($fromProperty, $toProperty) : Changes {
25 25
                 return $changes->mergeWith($check->compare($fromProperty, $toProperty));
26 26
             },
27 27
             Changes::new()
Please login to merge, or discard this patch.
src/Comparator/BackwardsCompatibility/ClassBased/ClassBecameFinal.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
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
             return Changes::new();
21 21
         }
22 22
 
23
-        if (! $toClass->isFinal()) {
23
+        if (!$toClass->isFinal()) {
24 24
             return Changes::new();
25 25
         }
26 26
 
Please login to merge, or discard this patch.
src/Comparator/BackwardsCompatibility/MethodBased/MethodScopeChanged.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.
src/Comparator/BackwardsCompatibility/MethodBased/MultiMethodBased.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\MethodBased;
6 6
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
         return array_reduce(
24 24
             $this->checks,
25
-            function (Changes $changes, MethodBased $check) use ($fromMethod, $toMethod) : Changes {
25
+            function(Changes $changes, MethodBased $check) use ($fromMethod, $toMethod) : Changes {
26 26
                 return $changes->mergeWith($check->compare($fromMethod, $toMethod));
27 27
             },
28 28
             Changes::new()
Please login to merge, or discard this patch.
BackwardsCompatibility/PropertyBased/PropertyDefaultValueChanged.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.
Comparator/BackwardsCompatibility/PropertyBased/PropertyScopeChanged.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.