@@ -63,8 +63,8 @@ |
||
63 | 63 | * @return array<string, mixed> |
64 | 64 | */ |
65 | 65 | public function __debugInfo(): array { |
66 | - $dbg = (array)$this; |
|
67 | - $dbg["\0" . self::class . "\0__pairs"] = array_map(function ($k, $v) { |
|
66 | + $dbg = (array) $this; |
|
67 | + $dbg["\0".self::class."\0__pairs"] = array_map(function($k, $v) { |
|
68 | 68 | return [$k, $v]; |
69 | 69 | }, $this->getKeys(), $this->getValues()); |
70 | 70 | return $dbg; |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | // we will switch this into a binary bitset |
87 | 87 | if ($this->enumerationCount > \PHP_INT_SIZE * 8) { |
88 | 88 | // init binary bitset with zeros |
89 | - $this->bitset = $this->emptyBitset = \str_repeat("\0", (int)\ceil($this->enumerationCount / 8)); |
|
89 | + $this->bitset = $this->emptyBitset = \str_repeat("\0", (int) \ceil($this->enumerationCount / 8)); |
|
90 | 90 | |
91 | 91 | // switch internal binary bitset functions |
92 | 92 | $this->fnDoGetIterator = 'doGetIteratorBin'; |
@@ -116,8 +116,8 @@ discard block |
||
116 | 116 | * @return array<string, mixed> |
117 | 117 | */ |
118 | 118 | public function __debugInfo() { |
119 | - $dbg = (array)$this; |
|
120 | - $dbg["\0" . self::class . "\0__enumerators"] = $this->getValues(); |
|
119 | + $dbg = (array) $this; |
|
120 | + $dbg["\0".self::class."\0__enumerators"] = $this->getValues(); |
|
121 | 121 | return $dbg; |
122 | 122 | } |
123 | 123 | |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | throw new InvalidArgumentException('out-of-range bits detected'); |
348 | 348 | } |
349 | 349 | |
350 | - $this->bitset = \substr($bitset, 0, -1) . $lastByteExpected; |
|
350 | + $this->bitset = \substr($bitset, 0, -1).$lastByteExpected; |
|
351 | 351 | } |
352 | 352 | |
353 | 353 | $this->bitset = $bitset; |
@@ -1069,7 +1069,7 @@ discard block |
||
1069 | 1069 | private function doGetBinaryBitsetLeInt() |
1070 | 1070 | { |
1071 | 1071 | $bin = \pack(\PHP_INT_SIZE === 8 ? 'P' : 'V', $this->bitset); |
1072 | - return \substr($bin, 0, (int)\ceil($this->enumerationCount / 8)); |
|
1072 | + return \substr($bin, 0, (int) \ceil($this->enumerationCount / 8)); |
|
1073 | 1073 | } |
1074 | 1074 | |
1075 | 1075 | /** |
@@ -1127,6 +1127,6 @@ discard block |
||
1127 | 1127 | */ |
1128 | 1128 | private function doGetBitInt($ordinal) |
1129 | 1129 | { |
1130 | - return (bool)($this->bitset & (1 << $ordinal)); |
|
1130 | + return (bool) ($this->bitset & (1 << $ordinal)); |
|
1131 | 1131 | } |
1132 | 1132 | } |