Passed
Push — master ( e0f847...33ac99 )
by smiley
01:44
created
src/QRCode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -289,7 +289,7 @@
 block discarded – undo
289 289
 		$len = strlen($string);
290 290
 
291 291
 		while($i + 1 < $len){
292
-			$c = ((0xff & ord($string[$i])) << 8) | (0xff & ord($string[$i + 1]));
292
+			$c = ((0xff&ord($string[$i])) << 8)|(0xff&ord($string[$i + 1]));
293 293
 
294 294
 			if(!($c >= 0x8140 && $c <= 0x9FFC) && !($c >= 0xE040 && $c <= 0xEBBF)){
295 295
 				return false;
Please login to merge, or discard this patch.
src/Helpers/BitBuffer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 	public function put(int $num, int $length):BitBuffer{
46 46
 
47 47
 		for($i = 0; $i < $length; $i++){
48
-			$this->putBit((($num >> ($length - $i - 1)) & 1) === 1);
48
+			$this->putBit((($num >> ($length - $i - 1))&1) === 1);
49 49
 		}
50 50
 
51 51
 		return $this;
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/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.