Passed
Pull Request — master (#38)
by Marco
02:19
created
BackwardsCompatibility/FunctionBased/ReturnTypeCovarianceChanged.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\FunctionBased;
6 6
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
     private function typeToString(?ReflectionType $type) : string
80 80
     {
81
-        if (! $type) {
81
+        if (!$type) {
82 82
             return 'no type';
83 83
         }
84 84
 
Please login to merge, or discard this patch.
BackwardsCompatibility/FunctionBased/ParameterByReferenceChanged.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\FunctionBased;
6 6
 
Please login to merge, or discard this patch.
BackwardsCompatibility/FunctionBased/ReturnTypeByReferenceChanged.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\FunctionBased;
6 6
 
Please login to merge, or discard this patch.
src/Comparator/BackwardsCompatibility/MethodBased/MethodBased.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/MethodVisibilityReduced.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/PropertyVisibilityReducedTest.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\PropertyBased;
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
         );
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         return array_combine(
145 145
             array_keys($properties),
146 146
             array_map(
147
-                function (string $property, array $errorMessages) use ($fromClass, $toClass) : array {
147
+                function(string $property, array $errorMessages) use ($fromClass, $toClass) : array {
148 148
                     return [
149 149
                         $fromClass->getProperty($property),
150 150
                         $toClass->getProperty($property),
Please login to merge, or discard this patch.
BackwardsCompatibility/PropertyBased/PropertyScopeChangedTest.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\PropertyBased;
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
         );
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         return array_combine(
145 145
             array_keys($properties),
146 146
             array_map(
147
-                function (string $property, array $errorMessages) use ($fromClass, $toClass) : array {
147
+                function(string $property, array $errorMessages) use ($fromClass, $toClass) : array {
148 148
                     return [
149 149
                         $fromClass->getProperty($property),
150 150
                         $toClass->getProperty($property),
Please login to merge, or discard this patch.
BackwardsCompatibility/PropertyBased/PropertyDocumentedTypeChangedTest.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\PropertyBased;
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
         );
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         return array_combine(
145 145
             array_keys($properties),
146 146
             array_map(
147
-                function (string $property, array $errorMessages) use ($fromClass, $toClass) : array {
147
+                function(string $property, array $errorMessages) use ($fromClass, $toClass) : array {
148 148
                     return [
149 149
                         $fromClass->getProperty($property),
150 150
                         $toClass->getProperty($property),
Please login to merge, or discard this patch.
FunctionBased/ParameterTypeContravarianceChangedTest.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\FunctionBased;
6 6
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
         self::assertSame(
37 37
             $expectedMessages,
38
-            array_map(function (Change $change) : string {
38
+            array_map(function(Change $change) : string {
39 39
                 return $change->__toString();
40 40
             }, iterator_to_array($changes))
41 41
         );
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             array_combine(
117 117
                 array_keys($functions),
118 118
                 array_map(
119
-                    function (string $function, array $errorMessages) use ($fromReflector, $toReflector) : array {
119
+                    function(string $function, array $errorMessages) use ($fromReflector, $toReflector) : array {
120 120
                         return [
121 121
                             $fromReflector->reflect($function),
122 122
                             $toReflector->reflect($function),
Please login to merge, or discard this patch.