@@ -143,7 +143,7 @@ |
||
| 143 | 143 | |
| 144 | 144 | private function serializeRequestData(array $data): array |
| 145 | 145 | { |
| 146 | - return \array_map(function ($value) { |
|
| 146 | + return \array_map(function($value) { |
|
| 147 | 147 | if (\is_object($value) && \method_exists($value, '__toString')) { |
| 148 | 148 | return (string) $value; |
| 149 | 149 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | $value = $value->getValue(); |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | - if (! \in_array($value, static::toArray(), true)) { |
|
| 28 | + if (!\in_array($value, static::toArray(), true)) { |
|
| 29 | 29 | throw new \UnexpectedValueException("Value '$value' is not part of the enum ".static::class); |
| 30 | 30 | } |
| 31 | 31 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | { |
| 37 | 37 | $class = static::class; |
| 38 | 38 | |
| 39 | - if (! isset(static::$cache[$class])) { |
|
| 39 | + if (!isset(static::$cache[$class])) { |
|
| 40 | 40 | static::$cache[$class] = (new \ReflectionClass($class))->getConstants(); |
| 41 | 41 | } |
| 42 | 42 | |