Skip to content

Commit e4cbe56

Browse files
committed
🚿
1 parent b231433 commit e4cbe56

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

benchmark/QRCodeBenchmark.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace chillerlan\QRCodeBenchmark;
1313

14-
use chillerlan\QRCode\Output\QRStringJSON;
1514
use chillerlan\QRCode\QRCode;
1615
use PhpBench\Attributes\{BeforeMethods, Subject};
1716

@@ -23,9 +22,8 @@ final class QRCodeBenchmark extends BenchmarkAbstract{
2322
public function initOptions():void{
2423

2524
$options = [
26-
'outputInterface' => QRStringJSON::class,
27-
'version' => $this->version->getVersionNumber(),
28-
'eccLevel' => $this->eccLevel->getLevel(),
25+
'version' => $this->version->getVersionNumber(),
26+
'eccLevel' => $this->eccLevel->getLevel(),
2927
];
3028

3129
$this->initQROptions($options);

examples/custom_output.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function dump(string $file = null):string{
7474
$options->version = 5;
7575
$options->eccLevel = 'L';
7676

77-
$data = 'https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s';
77+
$data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ';
7878

7979
// invoke the QROutputInterface manually
8080
// please note that an QROutputInterface invoked this way might become unusable after calling dump().

src/Output/QRInterventionImage.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ public function __construct(SettingsContainerInterface|QROptions $options, QRMat
5959
}
6060

6161
try{
62-
6362
$this->driver = match(true){
6463
extension_loaded('gd') => new GdDriver,
6564
extension_loaded('imagick') => new ImagickDriver,

src/Output/QROutputInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ interface QROutputInterface{
3333
QRGdImagePNG::class,
3434
QRGdImageWEBP::class,
3535
QRImagick::class,
36+
QRInterventionImage::class,
3637
QRMarkupHTML::class,
3738
QRMarkupSVG::class,
3839
QRMarkupXML::class,

0 commit comments

Comments
 (0)