Completed
Pull Request — master (#19)
by Alejandro
01:41
created
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/Enum/WithCastingMethods.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/Enum/WithIntegerValues.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/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
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
         // Check if the value is valid for this enumeration
64 64
         $isValid = \call_user_func([$this->enumClass, 'isValid'], $value);
65
-        if (! $isValid) {
65
+        if (!$isValid) {
66 66
             throw new InvalidArgumentException(\sprintf(
67 67
                 'The value "%s" is not valid for the enum "%s". Expected one of ["%s"]',
68 68
                 $value,
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         $typeName = $typeNameOrEnumClass;
101 101
         $enumClass = $enumClass ?: $typeNameOrEnumClass;
102 102
 
103
-        if (! \is_subclass_of($enumClass, Enum::class)) {
103
+        if (!\is_subclass_of($enumClass, Enum::class)) {
104 104
             throw new InvalidArgumentException(\sprintf(
105 105
                 'Provided enum class "%s" is not valid. Enums must extend "%s"',
106 106
                 $enumClass,
Please login to merge, or discard this patch.