Passed
Push — master ( 552d15...d4c1db )
by smiley
02:51
created
src/Data/QRDataAbstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -245,7 +245,7 @@
 block discarded – undo
245 245
 			$this->dcdata[$key] = array_fill(0, $dcCount, null);
246 246
 
247 247
 			foreach($this->dcdata[$key] as $a => $_z){
248
-				$this->dcdata[$key][$a] = 0xff & $bitBuffer[$a + $offset];
248
+				$this->dcdata[$key][$a] = 0xff&$bitBuffer[$a + $offset];
249 249
 			}
250 250
 
251 251
 			[$num, $add] = $this->poly($key, $ecCount);
Please login to merge, or discard this patch.
src/Data/MaskPatternTester.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 
169 169
 				if($x <= $size - 7){
170 170
 					if(
171
-						    $m->check($x    , $y)
171
+							$m->check($x    , $y)
172 172
 						&& !$m->check($x + 1, $y)
173 173
 						&&  $m->check($x + 2, $y)
174 174
 						&&  $m->check($x + 3, $y)
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 
183 183
 				if($y <= $size - 7){
184 184
 					if(
185
-						    $m->check($x, $y)
185
+							$m->check($x, $y)
186 186
 						&& !$m->check($x, $y + 1)
187 187
 						&&  $m->check($x, $y + 2)
188 188
 						&&  $m->check($x, $y + 3)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
 
169 169
 				if($x <= $size - 7){
170 170
 					if(
171
-						    $m->check($x    , $y)
171
+						    $m->check($x, $y)
172 172
 						&& !$m->check($x + 1, $y)
173 173
 						&&  $m->check($x + 2, $y)
174 174
 						&&  $m->check($x + 3, $y)
Please login to merge, or discard this patch.
src/Data/Kanji.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 		$len = strlen($data);
45 45
 
46 46
 		for($i = 0; $i + 1 < $len; $i += 2){
47
-			$c = ((0xff & ord($data[$i])) << 8) | (0xff & ord($data[$i + 1]));
47
+			$c = ((0xff&ord($data[$i])) << 8)|(0xff&ord($data[$i + 1]));
48 48
 
49 49
 			if($c >= 0x8140 && $c <= 0x9FFC){
50 50
 				$c -= 0x8140;
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 				throw new QRCodeDataException(sprintf('illegal char at %d [%d]', $i + 1, $c));
57 57
 			}
58 58
 
59
-			$this->bitBuffer->put(((($c >> 8) & 0xff) * 0xC0) + ($c & 0xff), 13);
59
+			$this->bitBuffer->put(((($c >> 8)&0xff) * 0xC0) + ($c&0xff), 13);
60 60
 
61 61
 		}
62 62
 
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
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
 	 * @inheritDoc
89 89
 	 */
90 90
 	public function dump(string $file = null):string{
91
-		$file ??= $this->options->cachefile;
91
+		$file ?? = $this->options->cachefile;
92 92
 
93 93
 		$this->image = imagecreatetruecolor($this->length, $this->length);
94 94
 
Please login to merge, or discard this patch.
src/Output/QRMarkup.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	 * @see \sprintf()
28 28
 	 */
29 29
 	protected string $svgHeader = '<svg xmlns="http://www.w3.org/2000/svg" class="qr-svg %1$s" '.
30
-	                              'style="width: 100%%; height: auto;" viewBox="0 0 %2$d %2$d">';
30
+								  'style="width: 100%%; height: auto;" viewBox="0 0 %2$d %2$d">';
31 31
 
32 32
 	/**
33 33
 	 * @inheritDoc
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
 
76 76
 		if($file !== null){
77 77
 			return '<!DOCTYPE html>'.
78
-			       '<head><meta charset="UTF-8"><title>QR Code</title></head>'.
79
-			       '<body>'.$this->options->eol.$html.'</body>';
78
+				   '<head><meta charset="UTF-8"><title>QR Code</title></head>'.
79
+				   '<body>'.$this->options->eol.$html.'</body>';
80 80
 		}
81 81
 
82 82
 		return $html;
@@ -91,9 +91,9 @@  discard block
 block discarded – undo
91 91
 		$matrix = $this->matrix->matrix();
92 92
 
93 93
 		$svg = sprintf($this->svgHeader, $this->options->cssClass, $this->options->svgViewBoxSize ?? $this->moduleCount)
94
-		       .$this->options->eol
95
-		       .'<defs>'.$this->options->svgDefs.'</defs>'
96
-		       .$this->options->eol;
94
+			   .$this->options->eol
95
+			   .'<defs>'.$this->options->svgDefs.'</defs>'
96
+			   .$this->options->eol;
97 97
 
98 98
 		foreach($this->moduleValues as $M_TYPE => $value){
99 99
 			$path = '';
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 		// if saving to file, append the correct headers
148 148
 		if($file !== null){
149 149
 			return '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'.
150
-			       $this->options->eol.$svg;
150
+				   $this->options->eol.$svg;
151 151
 		}
152 152
 
153 153
 		return $svg;
Please login to merge, or discard this patch.
src/Output/QROutputAbstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
 	 * @inheritDoc
114 114
 	 */
115 115
 	public function dump(string $file = null){
116
-		$file ??= $this->options->cachefile;
116
+		$file ?? = $this->options->cachefile;
117 117
 
118 118
 		// call the built-in output method with the optional file path as parameter
119 119
 		// to make the called method aware if a cache file was given
Please login to merge, or discard this patch.
src/QROptionsTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@
 block discarded – undo
203 203
 	 *   - HTML, IMAGICK: #ABCDEF, cssname, rgb(), rgba()...
204 204
 	 *   - IMAGE: [63, 127, 255] // R, G, B
205 205
 	 */
206
-	protected ?array $moduleValues = null;
206
+	protected ? array $moduleValues = null;
207 207
 
208 208
 	/**
209 209
 	 * clamp min/max version number
Please login to merge, or discard this patch.