Passed
Pull Request — master (#38)
by Marco
02:19
created
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.
unit/Comparator/BackwardsCompatibility/ClassBased/ClassBecameTraitTest.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\ClassBased;
6 6
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
         self::assertSame(
32 32
             $expectedMessages,
33
-            array_map(function (Change $change) : string {
33
+            array_map(function(Change $change) : string {
34 34
                 return $change->__toString();
35 35
             }, iterator_to_array($changes))
36 36
         );
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             ,
58 58
             $locator
59 59
         ));
60
-        $toReflector   = new ClassReflector(new StringSourceLocator(
60
+        $toReflector = new ClassReflector(new StringSourceLocator(
61 61
             <<<'PHP'
62 62
 <?php
63 63
 
@@ -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/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.