Passed
Pull Request — master (#38)
by Marco
02:19
created
Comparator/BackwardsCompatibility/TraitBased/TraitBecameInterfaceTest.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.
BackwardsCompatibility/TraitBased/UseClassBasedChecksOnATraitTest.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.
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.
Comparator/BackwardsCompatibility/InterfaceBased/InterfaceBecameClass.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\InterfaceBased;
6 6
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     {
21 21
         Assert::that($fromClass->getName())->same($toClass->getName());
22 22
 
23
-        if (! $this->isClass($toClass) || ! $fromClass->isInterface()) {
23
+        if (!$this->isClass($toClass) || !$fromClass->isInterface()) {
24 24
             // checking whether a class became an interface is done in `ClassBecameInterface`
25 25
             return Changes::new();
26 26
         }
@@ -37,6 +37,6 @@  discard block
 block discarded – undo
37 37
      */
38 38
     private function isClass(ReflectionClass $class) : bool
39 39
     {
40
-        return ! ($class->isTrait() || $class->isInterface());
40
+        return !($class->isTrait() || $class->isInterface());
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
Comparator/BackwardsCompatibility/InterfaceBased/InterfaceBecameTrait.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\InterfaceBased;
6 6
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     {
21 21
         Assert::that($fromClass->getName())->same($toClass->getName());
22 22
 
23
-        if (! $toClass->isTrait() || ! $fromClass->isInterface()) {
23
+        if (!$toClass->isTrait() || !$fromClass->isInterface()) {
24 24
             // checking whether an interface became an class is done in `InterfaceBecameClass`
25 25
             return Changes::new();
26 26
         }
Please login to merge, or discard this patch.
BackwardsCompatibility/InterfaceBased/UseClassBasedChecksOnAnInterface.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\InterfaceBased;
6 6
 
Please login to merge, or discard this patch.
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.