@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | |
165 | 165 | if($x <= $this->moduleCount - 7){ |
166 | 166 | if( |
167 | - $this->matrix->check($x , $y) |
|
167 | + $this->matrix->check($x , $y) |
|
168 | 168 | && !$this->matrix->check($x + 1, $y) |
169 | 169 | && $this->matrix->check($x + 2, $y) |
170 | 170 | && $this->matrix->check($x + 3, $y) |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | |
179 | 179 | if($y <= $this->moduleCount - 7){ |
180 | 180 | if( |
181 | - $this->matrix->check($x, $y) |
|
181 | + $this->matrix->check($x, $y) |
|
182 | 182 | && !$this->matrix->check($x, $y + 1) |
183 | 183 | && $this->matrix->check($x, $y + 2) |
184 | 184 | && $this->matrix->check($x, $y + 3) |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * @return float |
54 | 54 | */ |
55 | 55 | public function testPattern():float{ |
56 | - $penalty = 0; |
|
56 | + $penalty = 0; |
|
57 | 57 | |
58 | 58 | for($level = 1; $level <= 4; $level++){ |
59 | 59 | $penalty += call_user_func([$this, 'testLevel'.$level]); |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | |
165 | 165 | if($x <= $this->moduleCount - 7){ |
166 | 166 | if( |
167 | - $this->matrix->check($x , $y) |
|
167 | + $this->matrix->check($x, $y) |
|
168 | 168 | && !$this->matrix->check($x + 1, $y) |
169 | 169 | && $this->matrix->check($x + 2, $y) |
170 | 170 | && $this->matrix->check($x + 3, $y) |
@@ -28,7 +28,7 @@ |
||
28 | 28 | $image = imagecreatetruecolor($length, $length); |
29 | 29 | $background = imagecolorallocate($image, ...$this->options->imageTransparencyBG); |
30 | 30 | |
31 | - if((bool)$this->options->imageTransparent && in_array($this->options->outputType, [QRCode::OUTPUT_IMAGE_PNG, QRCode::OUTPUT_IMAGE_GIF,], true)){ |
|
31 | + if((bool)$this->options->imageTransparent && in_array($this->options->outputType, [QRCode::OUTPUT_IMAGE_PNG, QRCode::OUTPUT_IMAGE_GIF, ], true)){ |
|
32 | 32 | imagecolortransparent($image, $background); |
33 | 33 | } |
34 | 34 |
@@ -47,7 +47,7 @@ |
||
47 | 47 | if(preg_match('/[a-f\d]{6}/i', $v) === 1){ |
48 | 48 | return in_array($_POST['output_type'], ['png', 'jpg', 'gif']) |
49 | 49 | ? array_map('hexdec', str_split($v, 2)) |
50 | - : '#'.$v ; |
|
50 | + : '#'.$v; |
|
51 | 51 | } |
52 | 52 | return null; |
53 | 53 | }, $moduleValues); |