Skip to content

Commit

Permalink
🚿
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Nov 18, 2020
1 parent dcf125a commit 8838eec
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/fpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
'outputType' => QRCode::OUTPUT_FPDF,
'eccLevel' => QRCode::ECC_L,
'scale' => 5,
'imageBase64' => false,
'moduleValues' => [
// finder
1536 => [0, 63, 255], // dark (true)
Expand Down
1 change: 0 additions & 1 deletion examples/imagick.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
'outputType' => QRCode::OUTPUT_IMAGICK,
'eccLevel' => QRCode::ECC_L,
'scale' => 5,
'imageBase64' => false,
'moduleValues' => [
// finder
1536 => '#A71111', // dark (true)
Expand Down
4 changes: 3 additions & 1 deletion src/Output/QRImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* @author Smiley <smiley@chillerlan.net>
* @copyright 2015 Smiley
* @license MIT
*
* @noinspection PhpComposerExtensionStubsInspection
*/

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

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

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

Expand Down
2 changes: 2 additions & 0 deletions src/Output/QRImagick.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* @author smiley <smiley@chillerlan.net>
* @copyright 2018 smiley
* @license MIT
*
* @noinspection PhpComposerExtensionStubsInspection
*/

namespace chillerlan\QRCode\Output;
Expand Down
2 changes: 2 additions & 0 deletions tests/Output/QRImagickTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* @author smiley <smiley@chillerlan.net>
* @copyright 2018 smiley
* @license MIT
*
* @noinspection PhpComposerExtensionStubsInspection
*/

namespace chillerlan\QRCodeTest\Output;
Expand Down

0 comments on commit 8838eec

Please sign in to comment.