Completed
Push — master ( af952a...ac5bab )
by Alejandro
10s
created
src/Type/PhpEnumType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\Doctrine\Type;
5 5
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         }
57 57
 
58 58
         $isValid = \call_user_func([$this->enumClass, 'isValid'], $value);
59
-        if (! $isValid) {
59
+        if (!$isValid) {
60 60
             throw new InvalidArgumentException(\sprintf(
61 61
                 'The value "%s" is not valid for the enum "%s". Expected one of ["%s"]',
62 62
                 $value,
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         $typeName = $typeNameOrEnumClass;
85 85
         $enumClass = $enumClass ?: $typeNameOrEnumClass;
86 86
 
87
-        if (! \is_subclass_of($enumClass, Enum::class)) {
87
+        if (!\is_subclass_of($enumClass, Enum::class)) {
88 88
             throw new InvalidArgumentException(\sprintf(
89 89
                 'Provided enum class "%s" is not valid. Enums must extend "%s"',
90 90
                 $enumClass,
Please login to merge, or discard this patch.
src/Exception/InvalidArgumentException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\Doctrine\Exception;
5 5
 
Please login to merge, or discard this patch.
test/Type/PhpEnumTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\Test\Doctrine\Type;
5 5
 
Please login to merge, or discard this patch.
test/Enum/Action.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\Test\Doctrine\Enum;
5 5
 
Please login to merge, or discard this patch.
src/Exception/ExceptionInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\Doctrine\Exception;
5 5
 
Please login to merge, or discard this patch.
test/Enum/Gender.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\Test\Doctrine\Enum;
5 5
 
Please login to merge, or discard this patch.
test/Type/MyCustomEnumType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\Test\Doctrine\Type;
5 5
 
Please login to merge, or discard this patch.
test/Type/MyType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\Test\Doctrine\Type;
5 5
 
Please login to merge, or discard this patch.