Completed
Push — master ( 7ea7b3...88f800 )
by smiley
01:49
created
src/Data/MaskPatternTester.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
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
@@ -28,7 +28,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
public/qrcode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.