Passed
Push — main ( 14b6f8...43e166 )
by smiley
01:56
created
src/Decoder/GDLuminanceSource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 	protected function setLuminancePixels():void{
61 61
 
62 62
 		if($this->options->readerGrayscale){
63
-			imagefilter($this->gdImage,  IMG_FILTER_GRAYSCALE);
63
+			imagefilter($this->gdImage, IMG_FILTER_GRAYSCALE);
64 64
 		}
65 65
 
66 66
 		if($this->options->readerIncreaseContrast){
Please login to merge, or discard this patch.
src/Output/QRImagick.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 	 * @return string|\Imagick
71 71
 	 */
72 72
 	public function dump(string $file = null){
73
-		$file          ??= $this->options->cachefile;
73
+		$file ??= $this->options->cachefile;
74 74
 		$this->imagick = new Imagick;
75 75
 
76 76
 		$this->imagick->newImage(
Please login to merge, or discard this patch.
src/Output/QRMarkup.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	 * @inheritDoc
48 48
 	 */
49 49
 	public function dump(string $file = null){
50
-		$file       ??= $this->options->cachefile;
50
+		$file ??= $this->options->cachefile;
51 51
 		$saveToFile   = $file !== null;
52 52
 
53 53
 		switch($this->options->outputType){
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 
188 188
 			$cssClass = implode(' ', [
189 189
 				'qr-'.$M_TYPE,
190
-				($M_TYPE & QRMatrix::IS_DARK) === QRMatrix::IS_DARK ? 'dark' : 'light',
190
+				($M_TYPE&QRMatrix::IS_DARK) === QRMatrix::IS_DARK ? 'dark' : 'light',
191 191
 				$this->options->cssClass,
192 192
 			]);
193 193
 
Please login to merge, or discard this patch.
src/Output/QRGdImage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
 
130 130
 		// scale down to the expected size
131 131
 		if($this->options->drawCircularModules && $this->options->scale <= 20){
132
-			$this->image = imagescale($this->image, $this->length/10, $this->length/10, IMG_BICUBIC);
132
+			$this->image = imagescale($this->image, $this->length / 10, $this->length / 10, IMG_BICUBIC);
133 133
 		}
134 134
 
135 135
 		if($this->options->returnResource){
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
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 		}
63 63
 
64 64
 		while($i + 1 < $len){
65
-			$c = ((0xff & ord($string[$i])) << 8) | (0xff & ord($string[$i + 1]));
65
+			$c = ((0xff&ord($string[$i])) << 8)|(0xff&ord($string[$i + 1]));
66 66
 
67 67
 			if(!($c >= 0x8140 && $c <= 0x9ffc) && !($c >= 0xe040 && $c <= 0xebbf)){
68 68
 				return false;
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 		$len = strlen($this->data);
90 90
 
91 91
 		for($i = 0; $i + 1 < $len; $i += 2){
92
-			$c = ((0xff & ord($this->data[$i])) << 8) | (0xff & ord($this->data[$i + 1]));
92
+			$c = ((0xff&ord($this->data[$i])) << 8)|(0xff&ord($this->data[$i + 1]));
93 93
 
94 94
 			if($c >= 0x8140 && $c <= 0x9ffC){
95 95
 				$c -= 0x8140;
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 				throw new QRCodeDataException(sprintf('illegal char at %d [%d]', $i + 1, $c));
102 102
 			}
103 103
 
104
-			$bitBuffer->put(((($c >> 8) & 0xff) * 0xc0) + ($c & 0xff), 13);
104
+			$bitBuffer->put(((($c >> 8)&0xff) * 0xc0) + ($c&0xff), 13);
105 105
 		}
106 106
 
107 107
 		if($i < $len){
@@ -128,15 +128,15 @@  discard block
 block discarded – undo
128 128
 		while($length > 0){
129 129
 			// Each 13 bits encodes a 2-byte character
130 130
 			$twoBytes          = $bitBuffer->read(13);
131
-			$assembledTwoBytes = ((int)($twoBytes / 0x0c0) << 8) | ($twoBytes % 0x0c0);
131
+			$assembledTwoBytes = ((int)($twoBytes / 0x0c0) << 8)|($twoBytes % 0x0c0);
132 132
 
133 133
 			$assembledTwoBytes += ($assembledTwoBytes < 0x01f00)
134 134
 				? 0x08140  // In the 0x8140 to 0x9FFC range
135 135
 				: 0x0c140; // In the 0xE040 to 0xEBBF range
136 136
 
137
-			$buffer[$offset]     = chr(0xff & ($assembledTwoBytes >> 8));
138
-			$buffer[$offset + 1] = chr(0xff & $assembledTwoBytes);
139
-			$offset              += 2;
137
+			$buffer[$offset]     = chr(0xff&($assembledTwoBytes >> 8));
138
+			$buffer[$offset + 1] = chr(0xff&$assembledTwoBytes);
139
+			$offset += 2;
140 140
 			$length--;
141 141
 		}
142 142
 
Please login to merge, or discard this patch.