@@ -60,7 +60,7 @@ |
||
| 60 | 60 | protected function setLuminancePixels():void{ |
| 61 | 61 | |
| 62 | 62 | if($this->options->readerGrayscale){ |
| 63 | - imagefilter($this->gdImage, IMG_FILTER_GRAYSCALE); |
|
| 63 | + imagefilter($this->gdImage, IMG_FILTER_GRAYSCALE); |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | if($this->options->readerIncreaseContrast){ |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | * @return string|\Imagick |
| 71 | 71 | */ |
| 72 | 72 | public function dump(string $file = null){ |
| 73 | - $file ??= $this->options->cachefile; |
|
| 73 | + $file ??= $this->options->cachefile; |
|
| 74 | 74 | $this->imagick = new Imagick; |
| 75 | 75 | |
| 76 | 76 | $this->imagick->newImage( |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * @inheritDoc |
| 48 | 48 | */ |
| 49 | 49 | public function dump(string $file = null){ |
| 50 | - $file ??= $this->options->cachefile; |
|
| 50 | + $file ??= $this->options->cachefile; |
|
| 51 | 51 | $saveToFile = $file !== null; |
| 52 | 52 | |
| 53 | 53 | switch($this->options->outputType){ |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | |
| 188 | 188 | $cssClass = implode(' ', [ |
| 189 | 189 | 'qr-'.$M_TYPE, |
| 190 | - ($M_TYPE & QRMatrix::IS_DARK) === QRMatrix::IS_DARK ? 'dark' : 'light', |
|
| 190 | + ($M_TYPE&QRMatrix::IS_DARK) === QRMatrix::IS_DARK ? 'dark' : 'light', |
|
| 191 | 191 | $this->options->cssClass, |
| 192 | 192 | ]); |
| 193 | 193 | |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | |
| 130 | 130 | // scale down to the expected size |
| 131 | 131 | if($this->options->drawCircularModules && $this->options->scale <= 20){ |
| 132 | - $this->image = imagescale($this->image, $this->length/10, $this->length/10, IMG_BICUBIC); |
|
| 132 | + $this->image = imagescale($this->image, $this->length / 10, $this->length / 10, IMG_BICUBIC); |
|
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | if($this->options->returnResource){ |