@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | |
216 | 216 | // allow forcing the data mode |
217 | 217 | // see https://github.com/chillerlan/php-qrcode/issues/39 |
218 | - $interface = $this::DATA_INTERFACES[strtolower((string) $this->options->dataModeOverride)] ?? null; |
|
218 | + $interface = $this::DATA_INTERFACES[strtolower((string)$this->options->dataModeOverride)] ?? null; |
|
219 | 219 | |
220 | 220 | if($interface !== null){ |
221 | 221 | return new $interface($this->options, $data); |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | $len = strlen($string); |
292 | 292 | |
293 | 293 | while($i + 1 < $len){ |
294 | - $c = ((0xff & ord($string[$i])) << 8) | (0xff & ord($string[$i + 1])); |
|
294 | + $c = ((0xff&ord($string[$i])) << 8)|(0xff&ord($string[$i + 1])); |
|
295 | 295 | |
296 | 296 | if(!($c >= 0x8140 && $c <= 0x9FFC) && !($c >= 0xE040 && $c <= 0xEBBF)){ |
297 | 297 | return false; |