Passed
Pull Request — master (#38)
by Marco
02:23
created
src/Comparator/BackwardsCompatibility/TraitBased/MultipleChecksOnATrait.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\TraitBased;
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, TraitBased $check) use ($fromTrait, $toTrait) : Changes {
25
+            function(Changes $changes, TraitBased $check) use ($fromTrait, $toTrait) : Changes {
26 26
                 return $changes->mergeWith($check->compare($fromTrait, $toTrait));
27 27
             },
28 28
             Changes::new()
Please login to merge, or discard this patch.
src/Comparator/BackwardsCompatibility/TraitBased/TraitBased.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\TraitBased;
6 6
 
Please login to merge, or discard this patch.
src/Comparator/BackwardsCompatibility/TraitBased/TraitBecameClass.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\TraitBased;
6 6
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     {
21 21
         Assert::that($fromTrait->getName())->same($toTrait->getName());
22 22
 
23
-        if ($this->isClass($fromTrait) || ! $this->isClass($toTrait)) {
23
+        if ($this->isClass($fromTrait) || !$this->isClass($toTrait)) {
24 24
             return Changes::new();
25 25
         }
26 26
 
@@ -36,6 +36,6 @@  discard block
 block discarded – undo
36 36
      */
37 37
     private function isClass(ReflectionClass $class) : bool
38 38
     {
39
-        return ! ($class->isTrait() || $class->isInterface());
39
+        return !($class->isTrait() || $class->isInterface());
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
src/Comparator/BackwardsCompatibility/TraitBased/TraitBecameInterface.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\TraitBased;
6 6
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     {
21 21
         Assert::that($fromTrait->getName())->same($toTrait->getName());
22 22
 
23
-        if ($toTrait->isTrait() || ! $toTrait->isInterface() || ! $fromTrait->isTrait()) {
23
+        if ($toTrait->isTrait() || !$toTrait->isInterface() || !$fromTrait->isTrait()) {
24 24
             return Changes::new();
25 25
         }
26 26
 
Please login to merge, or discard this patch.
src/Support/ArrayHelpers.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\Support;
6 6
 
Please login to merge, or discard this patch.
Comparator/BackwardsCompatibility/TraitBased/MultipleChecksOnATraitTest.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\TraitBased;
6 6
 
Please login to merge, or discard this patch.
unit/Comparator/BackwardsCompatibility/TraitBased/TraitBecameClassTest.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\TraitBased;
6 6
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         self::assertSame(
38 38
             $expectedMessages,
39
-            array_map(function (Change $change) : string {
39
+            array_map(function(Change $change) : string {
40 40
                 return $change->__toString();
41 41
             }, iterator_to_array($changes))
42 42
         );
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             ,
62 62
             $locator
63 63
         ));
64
-        $toReflector   = new ClassReflector(new StringSourceLocator(
64
+        $toReflector = new ClassReflector(new StringSourceLocator(
65 65
             <<<'PHP'
66 66
 <?php
67 67
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         return array_combine(
91 91
             array_keys($classes),
92 92
             array_map(
93
-                function (string $className, array $errors) use ($fromReflector, $toReflector) : array {
93
+                function(string $className, array $errors) use ($fromReflector, $toReflector) : array {
94 94
                     return [
95 95
                         $fromReflector->reflect($className),
96 96
                         $toReflector->reflect($className),
Please login to merge, or discard this patch.
test/unit/Support/ArrayHelpersTest.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\Support;
6 6
 
Please login to merge, or discard this patch.
BackwardsCompatibility/TraitBased/UseClassBasedChecksOnATrait.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\TraitBased;
6 6
 
Please login to merge, or discard this patch.