@@ -289,7 +289,7 @@ |
||
289 | 289 | $len = strlen($string); |
290 | 290 | |
291 | 291 | while($i + 1 < $len){ |
292 | - $c = ((0xff & ord($string[$i])) << 8) | (0xff & ord($string[$i + 1])); |
|
292 | + $c = ((0xff&ord($string[$i])) << 8)|(0xff&ord($string[$i + 1])); |
|
293 | 293 | |
294 | 294 | if(!($c >= 0x8140 && $c <= 0x9FFC) && !($c >= 0xE040 && $c <= 0xEBBF)){ |
295 | 295 | return false; |
@@ -45,7 +45,7 @@ |
||
45 | 45 | public function put(int $num, int $length):BitBuffer{ |
46 | 46 | |
47 | 47 | for($i = 0; $i < $length; $i++){ |
48 | - $this->putBit((($num >> ($length - $i - 1)) & 1) === 1); |
|
48 | + $this->putBit((($num >> ($length - $i - 1))&1) === 1); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | return $this; |
@@ -115,7 +115,7 @@ |
||
115 | 115 | public function dump(string $file = null){ |
116 | 116 | // call the built-in output method |
117 | 117 | $data = call_user_func([$this, $this->outputMode ?? $this->defaultMode]); |
118 | - $file ??= $this->options->cachefile; |
|
118 | + $file ?? = $this->options->cachefile; |
|
119 | 119 | |
120 | 120 | if($file !== null){ |
121 | 121 | $this->saveToFile($data, $file); |
@@ -47,7 +47,7 @@ |
||
47 | 47 | * @inheritDoc |
48 | 48 | */ |
49 | 49 | public function dump(string $file = null):string{ |
50 | - $file ??= $this->options->cachefile; |
|
50 | + $file ?? = $this->options->cachefile; |
|
51 | 51 | $imagick = new Imagick; |
52 | 52 | |
53 | 53 | $imagick->newImage( |
@@ -193,7 +193,7 @@ |
||
193 | 193 | * HTML, IMAGICK: #ABCDEF, cssname, rgb(), rgba()... |
194 | 194 | * IMAGE: [63, 127, 255] // R, G, B |
195 | 195 | */ |
196 | - protected ?array $moduleValues = null; |
|
196 | + protected ? array $moduleValues = null; |
|
197 | 197 | |
198 | 198 | /** |
199 | 199 | * clamp min/max version number |