Passed
Push — master ( 88f800...5334bf )
by smiley
02:00
created
src/Data/Kanji.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 		$len = strlen($data);
47 47
 
48 48
 		for($i = 0; $i + 1 < $len; $i += 2){
49
-			$c = ((0xff & ord($data[$i])) << 8) | (0xff & ord($data[$i + 1]));
49
+			$c = ((0xff&ord($data[$i])) << 8)|(0xff&ord($data[$i + 1]));
50 50
 
51 51
 			if(0x8140 <= $c && $c <= 0x9FFC){
52 52
 				$c -= 0x8140;
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 				throw new QRCodeDataException('illegal char at '.($i + 1).' ['.$c.']');
59 59
 			}
60 60
 
61
-			$this->bitBuffer->put((($c >> 8) & 0xff) * 0xC0 + ($c & 0xff), 13);
61
+			$this->bitBuffer->put((($c >> 8)&0xff) * 0xC0 + ($c&0xff), 13);
62 62
 
63 63
 		}
64 64
 
Please login to merge, or discard this patch.
src/Data/MaskPatternTester.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 	 * @return int
58 58
 	 */
59 59
 	public function testPattern():int{
60
-		$penalty  = 0;
60
+		$penalty = 0;
61 61
 
62 62
 		for($level = 1; $level <= 4; $level++){
63 63
 			$penalty += call_user_func([$this, 'testLevel'.$level]);
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 
169 169
 				if($x <= $this->moduleCount - 7){
170 170
 					if(
171
-						    $this->matrix->check($x    , $y)
171
+						    $this->matrix->check($x, $y)
172 172
 						&& !$this->matrix->check($x + 1, $y)
173 173
 						&&  $this->matrix->check($x + 2, $y)
174 174
 						&&  $this->matrix->check($x + 3, $y)
Please login to merge, or discard this patch.
src/Output/QRImage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 			? $this->options->moduleValues // @codeCoverageIgnore
55 55
 			: $this->moduleValues;
56 56
 
57
-		if((bool)$this->options->imageTransparent && in_array($this->options->outputType, [QRCode::OUTPUT_IMAGE_PNG, QRCode::OUTPUT_IMAGE_GIF,], true)){
57
+		if((bool)$this->options->imageTransparent && in_array($this->options->outputType, [QRCode::OUTPUT_IMAGE_PNG, QRCode::OUTPUT_IMAGE_GIF, ], true)){
58 58
 			imagecolortransparent($image, $background);
59 59
 		}
60 60
 
Please login to merge, or discard this patch.