From 11d696ee3908ee593a48b5acc044c2108615659d Mon Sep 17 00:00:00 2001 From: smiley Date: Sat, 11 Mar 2023 23:34:33 +0100 Subject: [PATCH] :lipstick: removed "public" and "examples" namespaces --- composer.json | 4 +--- examples/MyCustomOutput.php | 2 -- examples/QRImageWithLogo.php | 5 ----- examples/QRImageWithText.php | 2 -- examples/custom_output.php | 2 -- examples/fpdf.php | 2 -- examples/html.php | 2 -- examples/image.php | 2 -- examples/imageWithLogo.php | 5 +---- examples/imageWithText.php | 2 -- examples/imagick.php | 2 -- {public => examples}/index.html | 4 ++-- public/qrcode.php => examples/qrcode-interactive.php | 4 ++-- examples/svg.php | 2 -- examples/text.php | 2 -- 15 files changed, 6 insertions(+), 36 deletions(-) rename {public => examples}/index.html (98%) rename public/qrcode.php => examples/qrcode-interactive.php (97%) diff --git a/composer.json b/composer.json index d99f46edb..94fa05229 100644 --- a/composer.json +++ b/composer.json @@ -47,9 +47,7 @@ }, "autoload-dev": { "psr-4": { - "chillerlan\\QRCodePublic\\": "public/", - "chillerlan\\QRCodeTest\\": "tests/", - "chillerlan\\QRCodeExamples\\": "examples/" + "chillerlan\\QRCodeTest\\": "tests/" } }, "scripts": { diff --git a/examples/MyCustomOutput.php b/examples/MyCustomOutput.php index 3664989b8..75835b0e9 100644 --- a/examples/MyCustomOutput.php +++ b/examples/MyCustomOutput.php @@ -10,8 +10,6 @@ * @license MIT */ -namespace chillerlan\QRCodeExamples; - use chillerlan\QRCode\Output\QROutputAbstract; class MyCustomOutput extends QROutputAbstract{ diff --git a/examples/QRImageWithLogo.php b/examples/QRImageWithLogo.php index 76aa5ced7..fd84800ac 100644 --- a/examples/QRImageWithLogo.php +++ b/examples/QRImageWithLogo.php @@ -12,15 +12,10 @@ * @noinspection PhpComposerExtensionStubsInspection */ -namespace chillerlan\QRCodeExamples; - use chillerlan\QRCode\Output\{QRCodeOutputException, QRImage}; use function imagecopyresampled, imagecreatefrompng, imagesx, imagesy, is_file, is_readable; -/** - * @property \chillerlan\QRCodeExamples\LogoOptions $options - */ class QRImageWithLogo extends QRImage{ /** diff --git a/examples/QRImageWithText.php b/examples/QRImageWithText.php index fe6b962a9..120fbf01a 100644 --- a/examples/QRImageWithText.php +++ b/examples/QRImageWithText.php @@ -16,8 +16,6 @@ * @noinspection PhpComposerExtensionStubsInspection */ -namespace chillerlan\QRCodeExamples; - use chillerlan\QRCode\Output\QRImage; use function base64_encode, imagechar, imagecolorallocate, imagecolortransparent, imagecopymerge, imagecreatetruecolor, diff --git a/examples/custom_output.php b/examples/custom_output.php index 71ea62682..86f45c99b 100644 --- a/examples/custom_output.php +++ b/examples/custom_output.php @@ -8,8 +8,6 @@ * @license MIT */ -namespace chillerlan\QRCodeExamples; - use chillerlan\QRCode\{QRCode, QROptions}; require_once __DIR__.'/../vendor/autoload.php'; diff --git a/examples/fpdf.php b/examples/fpdf.php index 9c690a7f7..0b42c3e6c 100644 --- a/examples/fpdf.php +++ b/examples/fpdf.php @@ -1,7 +1,5 @@ - \ No newline at end of file + diff --git a/public/qrcode.php b/examples/qrcode-interactive.php similarity index 97% rename from public/qrcode.php rename to examples/qrcode-interactive.php index 1f8427c7e..6f105cbfc 100644 --- a/public/qrcode.php +++ b/examples/qrcode-interactive.php @@ -5,10 +5,10 @@ * @author Smiley * @copyright 2017 Smiley * @license MIT + * + * @noinspection PhpComposerExtensionStubsInspection */ -namespace chillerlan\QRCodePublic; - use chillerlan\QRCode\QRCode; use chillerlan\QRCode\QROptions; diff --git a/examples/svg.php b/examples/svg.php index d171cbe07..d823bcf8a 100644 --- a/examples/svg.php +++ b/examples/svg.php @@ -8,8 +8,6 @@ * @license MIT */ -namespace chillerlan\QRCodeExamples; - use chillerlan\QRCode\{QRCode, QROptions}; require_once __DIR__.'/../vendor/autoload.php'; diff --git a/examples/text.php b/examples/text.php index 9bdf154f0..950d02d24 100644 --- a/examples/text.php +++ b/examples/text.php @@ -8,8 +8,6 @@ * @license MIT */ -namespace chillerlan\QRCodeExamples; - use chillerlan\QRCode\{QRCode, QROptions}; require_once __DIR__.'/../vendor/autoload.php';