| @@ -73,10 +73,10 @@ discard block | ||
| 73 | 73 | $bitBuffer->put($this->encoding, 8); | 
| 74 | 74 | } | 
| 75 | 75 |  		elseif($this->encoding < 16384){ | 
| 76 | - $bitBuffer->put(($this->encoding | 0x8000), 16); | |
| 76 | + $bitBuffer->put(($this->encoding|0x8000), 16); | |
| 77 | 77 | } | 
| 78 | 78 |  		elseif($this->encoding < 1000000){ | 
| 79 | - $bitBuffer->put(($this->encoding | 0xC00000), 24); | |
| 79 | + $bitBuffer->put(($this->encoding|0xC00000), 24); | |
| 80 | 80 | } | 
| 81 | 81 | |
| 82 | 82 | return $this; | 
| @@ -96,11 +96,11 @@ discard block | ||
| 96 | 96 | } | 
| 97 | 97 | // two bytes | 
| 98 | 98 |  		elseif(($firstByte & 0b11000000) === 0b10000000){ | 
| 99 | - $id = ((($firstByte & 0b00111111) << 8) | $bitBuffer->read(8)); | |
| 99 | + $id = ((($firstByte & 0b00111111) << 8)|$bitBuffer->read(8)); | |
| 100 | 100 | } | 
| 101 | 101 | // three bytes | 
| 102 | 102 |  		elseif(($firstByte & 0b11100000) === 0b11000000){ | 
| 103 | - $id = ((($firstByte & 0b00011111) << 16) | $bitBuffer->read(16)); | |
| 103 | + $id = ((($firstByte & 0b00011111) << 16)|$bitBuffer->read(16)); | |
| 104 | 104 | } | 
| 105 | 105 |  		else{ | 
| 106 | 106 |  			throw new QRCodeDataException(sprintf('error decoding ECI value first byte: %08b', $firstByte)); // @codeCoverageIgnore | 
| @@ -19,16 +19,16 @@ discard block | ||
| 19 | 19 | */ | 
| 20 | 20 |  final class ECICharset{ | 
| 21 | 21 | |
| 22 | - public const CP437 = 0; // Code page 437, DOS Latin US | |
| 23 | - public const ISO_IEC_8859_1_GLI = 1; // GLI encoding with characters 0 to 127 identical to ISO/IEC 646 and characters 128 to 255 identical to ISO 8859-1 | |
| 24 | - public const CP437_WO_GLI = 2; // An equivalent code table to CP437, without the return-to-GLI 0 logic | |
| 25 | - public const ISO_IEC_8859_1 = 3; // Latin-1 (Default) | |
| 26 | - public const ISO_IEC_8859_2 = 4; // Latin-2 | |
| 27 | - public const ISO_IEC_8859_3 = 5; // Latin-3 | |
| 28 | - public const ISO_IEC_8859_4 = 6; // Latin-4 | |
| 29 | - public const ISO_IEC_8859_5 = 7; // Latin/Cyrillic | |
| 30 | - public const ISO_IEC_8859_6 = 8; // Latin/Arabic | |
| 31 | - public const ISO_IEC_8859_7 = 9; // Latin/Greek | |
| 22 | + public const CP437 = 0; // Code page 437, DOS Latin US | |
| 23 | + public const ISO_IEC_8859_1_GLI = 1; // GLI encoding with characters 0 to 127 identical to ISO/IEC 646 and characters 128 to 255 identical to ISO 8859-1 | |
| 24 | + public const CP437_WO_GLI = 2; // An equivalent code table to CP437, without the return-to-GLI 0 logic | |
| 25 | + public const ISO_IEC_8859_1 = 3; // Latin-1 (Default) | |
| 26 | + public const ISO_IEC_8859_2 = 4; // Latin-2 | |
| 27 | + public const ISO_IEC_8859_3 = 5; // Latin-3 | |
| 28 | + public const ISO_IEC_8859_4 = 6; // Latin-4 | |
| 29 | + public const ISO_IEC_8859_5 = 7; // Latin/Cyrillic | |
| 30 | + public const ISO_IEC_8859_6 = 8; // Latin/Arabic | |
| 31 | + public const ISO_IEC_8859_7 = 9; // Latin/Greek | |
| 32 | 32 | public const ISO_IEC_8859_8 = 10; // Latin/Hebrew | 
| 33 | 33 | public const ISO_IEC_8859_9 = 11; // Latin-5 | 
| 34 | 34 | public const ISO_IEC_8859_10 = 12; // Latin-6 | 
| @@ -118,7 +118,7 @@ discard block | ||
| 118 | 118 | * @see \mb_convert_encoding() | 
| 119 | 119 | * @see \iconv() | 
| 120 | 120 | */ | 
| 121 | -	public function getName():?string{ | |
| 121 | +	public function getName(): ?string{ | |
| 122 | 122 | return (self::MB_ENCODINGS[$this->charsetID] ?? null); | 
| 123 | 123 | } | 
| 124 | 124 | |
| @@ -48,11 +48,11 @@ | ||
| 48 | 48 | */ | 
| 49 | 49 | public const LENGTH_BITS = [ | 
| 50 | 50 | self::NUMBER => [10, 12, 14], | 
| 51 | - self::ALPHANUM => [ 9, 11, 13], | |
| 52 | - self::BYTE => [ 8, 16, 16], | |
| 53 | - self::KANJI => [ 8, 10, 12], | |
| 54 | - self::HANZI => [ 8, 10, 12], | |
| 55 | - self::ECI => [ 0, 0, 0], | |
| 51 | + self::ALPHANUM => [9, 11, 13], | |
| 52 | + self::BYTE => [8, 16, 16], | |
| 53 | + self::KANJI => [8, 10, 12], | |
| 54 | + self::HANZI => [8, 10, 12], | |
| 55 | + self::ECI => [0, 0, 0], | |
| 56 | 56 | ]; | 
| 57 | 57 | |
| 58 | 58 | /** |