Passed
Push — v5 ( 700af4...22f167 )
by smiley
01:39
created
src/Data/ECI.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@
 block discarded – undo
44 44
 	}
45 45
 
46 46
 		/**
47
-	 * @inheritDoc
48
-	 */
47
+		 * @inheritDoc
48
+		 */
49 49
 	public function write(BitBuffer $bitBuffer, int $versionNumber):void{
50 50
 		$bitBuffer
51 51
 			->put($this::$datamode, 4)
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,23 +59,23 @@
 block discarded – undo
59 59
 	public static function parseValue(BitBuffer $bitBuffer):int{
60 60
 		$firstByte = $bitBuffer->read(8);
61 61
 
62
-		if(($firstByte & 0x80) === 0){
62
+		if(($firstByte&0x80) === 0){
63 63
 			// just one byte
64
-			return $firstByte & 0x7f;
64
+			return $firstByte&0x7f;
65 65
 		}
66 66
 
67
-		if(($firstByte & 0xc0) === 0x80){
67
+		if(($firstByte&0xc0) === 0x80){
68 68
 			// two bytes
69 69
 			$secondByte = $bitBuffer->read(8);
70 70
 
71
-			return (($firstByte & 0x3f) << 8) | $secondByte;
71
+			return (($firstByte&0x3f) << 8)|$secondByte;
72 72
 		}
73 73
 
74
-		if(($firstByte & 0xe0) === 0xC0){
74
+		if(($firstByte&0xe0) === 0xC0){
75 75
 			// three bytes
76 76
 			$secondThirdBytes = $bitBuffer->read(16);
77 77
 
78
-			return (($firstByte & 0x1f) << 16) | $secondThirdBytes;
78
+			return (($firstByte&0x1f) << 16)|$secondThirdBytes;
79 79
 		}
80 80
 
81 81
 		throw new QRCodeDataException('error decoding ECI value');
Please login to merge, or discard this patch.
src/Data/Kanji.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 		$len = strlen($string);
56 56
 
57 57
 		while($i + 1 < $len){
58
-			$c = ((0xff & ord($string[$i])) << 8) | (0xff & ord($string[$i + 1]));
58
+			$c = ((0xff&ord($string[$i])) << 8)|(0xff&ord($string[$i + 1]));
59 59
 
60 60
 			if(!($c >= 0x8140 && $c <= 0x9ffc) && !($c >= 0xe040 && $c <= 0xebbf)){
61 61
 				return false;
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 		$len = strlen($this->data);
83 83
 
84 84
 		for($i = 0; $i + 1 < $len; $i += 2){
85
-			$c = ((0xff & ord($this->data[$i])) << 8) | (0xff & ord($this->data[$i + 1]));
85
+			$c = ((0xff&ord($this->data[$i])) << 8)|(0xff&ord($this->data[$i + 1]));
86 86
 
87 87
 			if($c >= 0x8140 && $c <= 0x9ffC){
88 88
 				$c -= 0x8140;
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 				throw new QRCodeDataException(sprintf('illegal char at %d [%d]', $i + 1, $c));
95 95
 			}
96 96
 
97
-			$bitBuffer->put(((($c >> 8) & 0xff) * 0xc0) + ($c & 0xff), 13);
97
+			$bitBuffer->put(((($c >> 8)&0xff) * 0xc0) + ($c&0xff), 13);
98 98
 		}
99 99
 
100 100
 		if($i < $len){
@@ -121,15 +121,15 @@  discard block
 block discarded – undo
121 121
 		while($length > 0){
122 122
 			// Each 13 bits encodes a 2-byte character
123 123
 			$twoBytes          = $bitBuffer->read(13);
124
-			$assembledTwoBytes = (($twoBytes / 0x0c0) << 8) | ($twoBytes % 0x0c0);
124
+			$assembledTwoBytes = (($twoBytes / 0x0c0) << 8)|($twoBytes % 0x0c0);
125 125
 
126 126
 			$assembledTwoBytes += ($assembledTwoBytes < 0x01f00)
127 127
 				? 0x08140  // In the 0x8140 to 0x9FFC range
128 128
 				: 0x0c140; // In the 0xE040 to 0xEBBF range
129 129
 
130
-			$buffer[$offset]     = chr(0xff & ($assembledTwoBytes >> 8));
131
-			$buffer[$offset + 1] = chr(0xff & $assembledTwoBytes);
132
-			$offset              += 2;
130
+			$buffer[$offset]     = chr(0xff&($assembledTwoBytes >> 8));
131
+			$buffer[$offset + 1] = chr(0xff&$assembledTwoBytes);
132
+			$offset += 2;
133 133
 			$length--;
134 134
 		}
135 135
 
Please login to merge, or discard this patch.