Skip to content

Commit 00800ef

Browse files
committed
🛀 clean-up (again)
1 parent 2d2a00f commit 00800ef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+93
-114
lines changed

examples/authenticator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010

1111
use chillerlan\Authenticator\{Authenticator, AuthenticatorOptionsTrait};
1212
use chillerlan\Authenticator\Authenticators\AuthenticatorInterface;
13-
use chillerlan\Settings\SettingsContainerAbstract;
1413
use chillerlan\QRCode\{QRCode, QROptionsTrait};
1514
use chillerlan\QRCode\Data\QRMatrix;
15+
use chillerlan\QRCode\Output\QRMarkupSVG;
16+
use chillerlan\Settings\SettingsContainerAbstract;
1617

1718
require_once __DIR__.'/../vendor/autoload.php';
1819

@@ -35,6 +36,7 @@
3536
*/
3637
$options->version = 7;
3738
$options->addQuietzone = false;
39+
$options->outputInterface = QRMarkupSVG::class;
3840
$options->outputBase64 = false;
3941
$options->svgAddXmlHeader = false;
4042
$options->cssClass = 'my-qrcode';

examples/custom_output.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected function prepareModuleValue(mixed $value):mixed{
4040
/**
4141
* @inheritDoc
4242
*/
43-
protected function getDefaultModuleValue(bool $isDark){
43+
protected function getDefaultModuleValue(bool $isDark):mixed{
4444
// TODO: Implement getDefaultModuleValue() method. (abstract)
4545
return null;
4646
}

examples/imageWithRoundedShapes.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
* @noinspection PhpComposerExtensionStubsInspection
1414
*/
1515

16+
use chillerlan\QRCode\{QRCode, QROptions};
1617
use chillerlan\QRCode\Common\EccLevel;
1718
use chillerlan\QRCode\Data\QRMatrix;
1819
use chillerlan\QRCode\Output\QRGdImagePNG;
19-
use chillerlan\QRCode\QRCode;
20-
use chillerlan\QRCode\QROptions;
2120
use chillerlan\Settings\SettingsContainerInterface;
2221

2322
require_once __DIR__ . '/../vendor/autoload.php';

examples/imagickConvertSVGtoPNG.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@
1616
* @license MIT
1717
*/
1818

19+
use chillerlan\QRCode\{QRCode, QROptions};
1920
use chillerlan\QRCode\Data\QRMatrix;
2021
use chillerlan\QRCode\Output\QRMarkupSVG;
21-
use chillerlan\QRCode\QRCode;
22-
use chillerlan\QRCode\QROptions;
2322

2423
require_once __DIR__.'/../vendor/autoload.php';
2524

examples/imagickImageAsBackground.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
* @license MIT
99
*/
1010

11+
use chillerlan\QRCode\{QRCode, QRCodeException, QROptions};
1112
use chillerlan\QRCode\Common\EccLevel;
1213
use chillerlan\QRCode\Output\QRImagick;
13-
use chillerlan\QRCode\QRCode;
14-
use chillerlan\QRCode\QRCodeException;
15-
use chillerlan\QRCode\QROptions;
1614

1715
require_once __DIR__.'/../vendor/autoload.php';
1816

examples/multimode.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
* @license MIT
99
*/
1010

11-
use chillerlan\QRCode\QRCode;
12-
use chillerlan\QRCode\QROptions;
11+
use chillerlan\QRCode\{QRCode, QROptions};
1312

1413
require_once __DIR__.'/../vendor/autoload.php';
1514

examples/qrcode-interactive.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
* @noinspection PhpComposerExtensionStubsInspection
99
*/
1010

11+
use chillerlan\QRCode\{QRCode, QROptions};
1112
use chillerlan\QRCode\Data\QRMatrix;
12-
use chillerlan\QRCode\QRCode;
13-
use chillerlan\QRCode\QROptions;
1413

1514
require_once '../vendor/autoload.php';
1615

examples/reflectance.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
* @license MIT
99
*/
1010

11+
use chillerlan\QRCode\{QRCode, QROptions};
1112
use chillerlan\QRCode\Common\EccLevel;
1213
use chillerlan\QRCode\Data\QRMatrix;
1314
use chillerlan\QRCode\Output\QRMarkupSVG;
14-
use chillerlan\QRCode\QRCode;
15-
use chillerlan\QRCode\QROptions;
1615

1716
require_once __DIR__.'/../vendor/autoload.php';
1817

examples/svgConvertViaCanvas.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
* @license MIT
99
*/
1010

11-
11+
use chillerlan\QRCode\{QRCode, QROptions};
1212
use chillerlan\QRCode\Data\QRMatrix;
1313
use chillerlan\QRCode\Output\QRMarkupSVG;
14-
use chillerlan\QRCode\QRCode;
15-
use chillerlan\QRCode\QROptions;
1614

1715
require_once __DIR__.'/../vendor/autoload.php';
1816

examples/svgRoundQuietzone.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
* @noinspection PhpIllegalPsrClassPathInspection
1313
*/
1414

15+
use chillerlan\QRCode\{QRCode, QRCodeException, QROptions};
1516
use chillerlan\QRCode\Common\EccLevel;
1617
use chillerlan\QRCode\Data\QRMatrix;
1718
use chillerlan\QRCode\Output\QRMarkupSVG;
18-
use chillerlan\QRCode\{QRCode, QRCodeException, QROptions};
1919

2020
require_once __DIR__.'/../vendor/autoload.php';
2121

0 commit comments

Comments
 (0)