Skip to content

Commit 8838eec

Browse files
committed
🚿
1 parent dcf125a commit 8838eec

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

examples/fpdf.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
'outputType' => QRCode::OUTPUT_FPDF,
1414
'eccLevel' => QRCode::ECC_L,
1515
'scale' => 5,
16+
'imageBase64' => false,
1617
'moduleValues' => [
1718
// finder
1819
1536 => [0, 63, 255], // dark (true)

examples/imagick.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
'outputType' => QRCode::OUTPUT_IMAGICK,
2222
'eccLevel' => QRCode::ECC_L,
2323
'scale' => 5,
24-
'imageBase64' => false,
2524
'moduleValues' => [
2625
// finder
2726
1536 => '#A71111', // dark (true)

src/Output/QRImage.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* @author Smiley <[email protected]>
99
* @copyright 2015 Smiley
1010
* @license MIT
11+
*
12+
* @noinspection PhpComposerExtensionStubsInspection
1113
*/
1214

1315
namespace chillerlan\QRCode\Output;
@@ -110,7 +112,7 @@ public function dump(string $file = null){
110112

111113
$imageData = $this->dumpImage($file);
112114

113-
if((bool)$this->options->imageBase64){
115+
if($this->options->imageBase64){
114116
$imageData = sprintf('data:image/%s;base64,%s', $this->options->outputType, base64_encode($imageData));
115117
}
116118

src/Output/QRImagick.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* @author smiley <[email protected]>
99
* @copyright 2018 smiley
1010
* @license MIT
11+
*
12+
* @noinspection PhpComposerExtensionStubsInspection
1113
*/
1214

1315
namespace chillerlan\QRCode\Output;

tests/Output/QRImagickTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* @author smiley <[email protected]>
99
* @copyright 2018 smiley
1010
* @license MIT
11+
*
12+
* @noinspection PhpComposerExtensionStubsInspection
1113
*/
1214

1315
namespace chillerlan\QRCodeTest\Output;

0 commit comments

Comments
 (0)