@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $regexBase = '/(is|set)(%s)/m'; |
37 | 37 | $regexFull = sprintf($regexBase, implode('|', array_keys($array))); |
38 | 38 | preg_match($regexFull, $name, $match); |
39 | - if (count($match)>0 && $match[0] === $name) { |
|
39 | + if (count($match) > 0 && $match[0] === $name) { |
|
40 | 40 | return $this->{$match[1] . 'Flag'}($array[$match[2]], $arguments[0] ?? true); |
41 | 41 | } |
42 | 42 | throw new BadMethodCallException(sprintf('Enum %s not found on %s', $name, get_class($this))); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | public function getKey() |
75 | 75 | { |
76 | 76 | $value = $this->value; |
77 | - $f = array_filter(static::toArray(), function () use (&$value) { |
|
77 | + $f = array_filter(static::toArray(), function() use (&$value) { |
|
78 | 78 | $isSet = $value & 1; |
79 | 79 | $value = $value >> 1; |
80 | 80 | return $isSet; |