Passed
Pull Request — master (#38)
by Marco
02:19
created
src/Comparator/BackwardsCompatibility/ClassBased/ClassBecameTrait.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
         Assert::that($fromClass->getName())->same($toClass->getName());
23 23
 
24
-        if ($fromClass->isTrait() || ! $toClass->isTrait()) {
24
+        if ($fromClass->isTrait() || !$toClass->isTrait()) {
25 25
             return Changes::new();
26 26
         }
27 27
 
Please login to merge, or discard this patch.
src/Comparator/BackwardsCompatibility/ClassBased/ClassBecameInterface.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
         Assert::that($fromClass->getName())->same($toClass->getName());
23 23
 
24
-        if ($fromClass->isInterface() || ! $toClass->isInterface()) {
24
+        if ($fromClass->isInterface() || !$toClass->isInterface()) {
25 25
             // checking whether a class became an interface is done in `InterfaceBecameClass`
26 26
             return Changes::new();
27 27
         }
Please login to merge, or discard this patch.
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.
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.
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.