Passed
Pull Request — master (#38)
by Marco
02:19
created
Comparator/BackwardsCompatibility/ClassConstantBased/ClassConstantBased.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\ClassConstantBased;
6 6
 
Please login to merge, or discard this patch.
ClassConstantBased/ClassConstantVisibilityReduced.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\ClassConstantBased;
6 6
 
Please login to merge, or discard this patch.
ClassConstantBased/OnlyPublicClassConstantChanged.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\ClassConstantBased;
6 6
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
     public function compare(ReflectionClassConstant $fromConstant, ReflectionClassConstant $toConstant) : Changes
23 23
     {
24
-        if (! $fromConstant->isPublic()) {
24
+        if (!$fromConstant->isPublic()) {
25 25
             return Changes::new();
26 26
         }
27 27
 
Please login to merge, or discard this patch.
BackwardsCompatibility/ClassConstantBased/ClassConstantValueChanged.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\ClassConstantBased;
6 6
 
Please login to merge, or discard this patch.
ClassConstantBased/MultipleChecksOnAClassConstant.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\ClassConstantBased;
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, ClassConstantBased $check) use ($fromConstant, $toConstant) : Changes {
25
+            function(Changes $changes, ClassConstantBased $check) use ($fromConstant, $toConstant) : Changes {
26 26
                 return $changes->mergeWith($check->compare($fromConstant, $toConstant));
27 27
             },
28 28
             Changes::new()
Please login to merge, or discard this patch.
ClassConstantBased/OnlyProtectedClassConstantChanged.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\ClassConstantBased;
6 6
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
     public function compare(ReflectionClassConstant $fromConstant, ReflectionClassConstant $toConstant) : Changes
23 23
     {
24
-        if (! $fromConstant->isProtected()) {
24
+        if (!$fromConstant->isProtected()) {
25 25
             return Changes::new();
26 26
         }
27 27
 
Please login to merge, or discard this patch.
src/Comparator/BackwardsCompatibility/ClassBased/MultipleChecksOnAClass.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
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     {
22 22
         return array_reduce(
23 23
             $this->checks,
24
-            function (Changes $changes, ClassBased $check) use ($fromClass, $toClass) : Changes {
24
+            function(Changes $changes, ClassBased $check) use ($fromClass, $toClass) : Changes {
25 25
                 return $changes->mergeWith($check->compare($fromClass, $toClass));
26 26
             },
27 27
             Changes::new()
Please login to merge, or discard this patch.
InterfaceBased/UseClassBasedChecksOnAnInterfaceTest.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.
BackwardsCompatibility/InterfaceBased/InterfaceBecameTraitTest.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 RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\InterfaceBased;
6 6
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
         self::assertSame(
31 31
             $expectedMessages,
32
-            array_map(function (Change $change) : string {
32
+            array_map(function(Change $change) : string {
33 33
                 return $change->__toString();
34 34
             }, iterator_to_array($changes))
35 35
         );
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             ,
57 57
             $locator
58 58
         ));
59
-        $toReflector   = new ClassReflector(new StringSourceLocator(
59
+        $toReflector = new ClassReflector(new StringSourceLocator(
60 60
             <<<'PHP'
61 61
 <?php
62 62
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         return array_combine(
90 90
             array_keys($classes),
91 91
             array_map(
92
-                function (string $className, array $errors) use ($fromReflector, $toReflector) : array {
92
+                function(string $className, array $errors) use ($fromReflector, $toReflector) : array {
93 93
                     return [
94 94
                         $fromReflector->reflect($className),
95 95
                         $toReflector->reflect($className),
Please login to merge, or discard this patch.