Completed
Push — master ( ef42ef...514bca )
by smiley
06:10
created
src/Data/MaskPatternTester.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 	 * @see \chillerlan\QRCode\QRCode::getBestMaskPattern()
46 46
 	 */
47 47
 	public function testPattern():int{
48
-		$penalty  = 0;
48
+		$penalty = 0;
49 49
 
50 50
 		for($level = 1; $level <= 4; $level++){
51 51
 			$penalty += call_user_func([$this, 'testLevel'.$level]);
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 
151 151
 				if($x <= $this->moduleCount - 7){
152 152
 					if(
153
-						    $this->matrix->check($x    , $y)
153
+						    $this->matrix->check($x, $y)
154 154
 						&& !$this->matrix->check($x + 1, $y)
155 155
 						&&  $this->matrix->check($x + 2, $y)
156 156
 						&&  $this->matrix->check($x + 3, $y)
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
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
 	public function dump(string $file = null){
116 116
 		// call the built-in output method
117 117
 		$data = call_user_func([$this, $this->outputMode ?? $this->defaultMode]);
118
-		$file ??= $this->options->cachefile;
118
+		$file ?? = $this->options->cachefile;
119 119
 
120 120
 		if($file !== null){
121 121
 			$this->saveToFile($data, $file);
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
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 	 * @inheritDoc
48 48
 	 */
49 49
 	public function dump(string $file = null):string{
50
-		$file ??= $this->options->cachefile;
50
+		$file ?? = $this->options->cachefile;
51 51
 		$imagick = new Imagick;
52 52
 
53 53
 		$imagick->newImage(
Please login to merge, or discard this patch.
src/Output/QRImage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 		// avoid: Indirect modification of overloaded property $imageTransparencyBG has no effect
70 70
 		// https://stackoverflow.com/a/10455217
71 71
 		$tbg = $this->options->imageTransparencyBG;
72
-		$background  = imagecolorallocate($this->image, ...$tbg);
72
+		$background = imagecolorallocate($this->image, ...$tbg);
73 73
 
74 74
 		if((bool)$this->options->imageTransparent && in_array($this->options->outputType, $this::TRANSPARENCY_TYPES, true)){
75 75
 			imagecolortransparent($this->image, $background);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 	 * @throws \chillerlan\QRCode\Output\QRCodeOutputException
115 115
 	 */
116 116
 	protected function dumpImage(string $file = null):string{
117
-		$file ??= $this->options->cachefile;
117
+		$file ?? = $this->options->cachefile;
118 118
 
119 119
 		ob_start();
120 120
 
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
@@ -193,7 +193,7 @@
 block discarded – undo
193 193
 	 *   HTML, IMAGICK: #ABCDEF, cssname, rgb(), rgba()...
194 194
 	 *   IMAGE: [63, 127, 255] // R, G, B
195 195
 	 */
196
-	protected ?array $moduleValues = null;
196
+	protected ? array $moduleValues = null;
197 197
 
198 198
 	/**
199 199
 	 * clamp min/max version number
Please login to merge, or discard this patch.