Passed
Pull Request — master (#27)
by Christopher
01:20
created
src/BitMask.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,10 +63,10 @@  discard block
 block discarded – undo
63 63
     public static function toArray(): array
64 64
     {
65 65
         $firstTime = !isset(static::$cache[static::class]);
66
-        $array = array_filter(parent::toArray(), static function ($value): bool {
66
+        $array = array_filter(parent::toArray(), static function($value): bool {
67 67
             return is_scalar($value);
68 68
         });
69
-        $firstTime && array_walk($array, static function ($item): void {
69
+        $firstTime && array_walk($array, static function($item): void {
70 70
             if (!is_int($item)) {
71 71
                 throw new UnexpectedValueException(
72 72
                     sprintf('All defined Const on Enum %s should be integers', static::class)
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public static function getKeyArray(mixed $value): array
94 94
     {
95
-        $f = array_filter(static::toArray(), static function ($key) use (&$value) {
95
+        $f = array_filter(static::toArray(), static function($key) use (&$value) {
96 96
             return $value & $key;
97 97
         });
98 98
 
Please login to merge, or discard this patch.