Passed
Pull Request — master (#38)
by Marco
02:19
created
BackwardsCompatibility/InterfaceBased/MultipleChecksOnAnInterfaceTest.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\InterfaceBased;
6 6
 
Please login to merge, or discard this patch.
ClassConstantBased/OnlyPublicClassConstantChangedTest.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\ClassConstantBased;
6 6
 
Please login to merge, or discard this patch.
ClassConstantBased/OnlyProtectedClassConstantChangedTest.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\ClassConstantBased;
6 6
 
Please login to merge, or discard this patch.
ClassConstantBased/ClassConstantVisibilityReducedTest.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 RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\ClassConstantBased;
6 6
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         self::assertSame(
36 36
             $expectedMessages,
37
-            array_map(function (Change $change) : string {
37
+            array_map(function(Change $change) : string {
38 38
                 return $change->__toString();
39 39
             }, iterator_to_array($changes))
40 40
         );
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         return array_combine(
113 113
             array_keys($properties),
114 114
             array_map(
115
-                function (string $constant, array $errorMessages) use ($fromClass, $toClass) : array {
115
+                function(string $constant, array $errorMessages) use ($fromClass, $toClass) : array {
116 116
                     return [
117 117
                         $fromClass->getReflectionConstant($constant),
118 118
                         $toClass->getReflectionConstant($constant),
Please login to merge, or discard this patch.
BackwardsCompatibility/ClassConstantBased/ClassConstantValueChangedTest.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 RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\ClassConstantBased;
6 6
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         self::assertSame(
36 36
             $expectedMessages,
37
-            array_map(function (Change $change) : string {
37
+            array_map(function(Change $change) : string {
38 38
                 return $change->__toString();
39 39
             }, iterator_to_array($changes))
40 40
         );
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         return array_combine(
113 113
             array_keys($properties),
114 114
             array_map(
115
-                function (string $constant, array $errorMessages) use ($fromClass, $toClass) : array {
115
+                function(string $constant, array $errorMessages) use ($fromClass, $toClass) : array {
116 116
                     return [
117 117
                         $fromClass->getReflectionConstant($constant),
118 118
                         $toClass->getReflectionConstant($constant),
Please login to merge, or discard this patch.
ClassConstantBased/MultipleChecksOnAClassConstantTest.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\ClassConstantBased;
6 6
 
Please login to merge, or discard this patch.
Comparator/BackwardsCompatibility/MethodBased/OnlyPublicMethodChanged.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
     public function compare(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes
24 24
     {
25
-        if (! $fromMethod->isPublic()) {
25
+        if (!$fromMethod->isPublic()) {
26 26
             return Changes::new();
27 27
         }
28 28
 
Please login to merge, or discard this patch.
BackwardsCompatibility/MethodBased/OnlyProtectedMethodChanged.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
     public function compare(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes
24 24
     {
25
-        if (! $fromMethod->isProtected()) {
25
+        if (!$fromMethod->isProtected()) {
26 26
             return Changes::new();
27 27
         }
28 28
 
Please login to merge, or discard this patch.
Comparator/BackwardsCompatibility/MethodBased/MultipleChecksOnAMethod.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.