Passed
Push — main ( 0538d1...ccad9c )
by smiley
01:52
created
src/Data/Hanzi.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.