Passed
Pull Request — master (#56)
by Brent
01:28
created
src/Enum.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     {
27 27
         $definition = static::resolveDefinition();
28 28
 
29
-        if (! isset($definition[$value])) {
29
+        if (!isset($definition[$value])) {
30 30
             $enumClass = static::class;
31 31
 
32 32
             throw new BadMethodCallException("There's no value {$value} defined for enum {$enumClass}, consider adding it in the docblock definition.");
@@ -93,6 +93,6 @@  discard block
 block discarded – undo
93 93
             $definition[$value] = $labels[$value] ?? $value;
94 94
         }
95 95
 
96
-        return static::$definitionCache[$className] ??= $definition;
96
+        return static::$definitionCache[$className] ?? = $definition;
97 97
     }
98 98
 }
Please login to merge, or discard this patch.