@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $len = strlen($this->data); |
132 | 132 | |
133 | 133 | for($i = 0; $i + 1 < $len; $i += 2){ |
134 | - $c = ((0xff & ord($this->data[$i])) << 8) | (0xff & ord($this->data[$i + 1])); |
|
134 | + $c = ((0xff & ord($this->data[$i])) << 8)|(0xff & ord($this->data[$i + 1])); |
|
135 | 135 | |
136 | 136 | if($c >= 0xa1a1 && $c <= 0xaafe){ |
137 | 137 | $c -= 0x0a1a1; |
@@ -171,15 +171,15 @@ discard block |
||
171 | 171 | while($length > 0){ |
172 | 172 | // Each 13 bits encodes a 2-byte character |
173 | 173 | $twoBytes = $bitBuffer->read(13); |
174 | - $assembledTwoBytes = (((int)($twoBytes / 0x060)) << 8) | ($twoBytes % 0x060); |
|
174 | + $assembledTwoBytes = (((int)($twoBytes / 0x060)) << 8)|($twoBytes % 0x060); |
|
175 | 175 | |
176 | 176 | $assembledTwoBytes += ($assembledTwoBytes < 0x00a00) // 0x003BF |
177 | 177 | ? 0x0a1a1 // In the 0xA1A1 to 0xAAFE range |
178 | 178 | : 0x0a6a1; // In the 0xB0A1 to 0xFAFE range |
179 | 179 | |
180 | 180 | $buffer[$offset] = chr(0xff & ($assembledTwoBytes >> 8)); |
181 | - $buffer[$offset + 1] = chr(0xff & $assembledTwoBytes); |
|
182 | - $offset += 2; |
|
181 | + $buffer[$offset + 1] = chr(0xff&$assembledTwoBytes); |
|
182 | + $offset += 2; |
|
183 | 183 | $length--; |
184 | 184 | } |
185 | 185 |