Kaynağa Gözat

:lipstick: removed "public" and "examples" namespaces

smiley 2 yıl önce
ebeveyn
işleme
11d696ee39

+ 1 - 3
composer.json

@@ -47,9 +47,7 @@
 	},
 	"autoload-dev": {
 		"psr-4": {
-			"chillerlan\\QRCodePublic\\": "public/",
-			"chillerlan\\QRCodeTest\\": "tests/",
-			"chillerlan\\QRCodeExamples\\": "examples/"
+			"chillerlan\\QRCodeTest\\": "tests/"
 		}
 	},
 	"scripts": {

+ 0 - 2
examples/MyCustomOutput.php

@@ -10,8 +10,6 @@
  * @license      MIT
  */
 
-namespace chillerlan\QRCodeExamples;
-
 use chillerlan\QRCode\Output\QROutputAbstract;
 
 class MyCustomOutput extends QROutputAbstract{

+ 0 - 5
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{
 
 	/**

+ 0 - 2
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,

+ 0 - 2
examples/custom_output.php

@@ -8,8 +8,6 @@
  * @license      MIT
  */
 
-namespace chillerlan\QRCodeExamples;
-
 use chillerlan\QRCode\{QRCode, QROptions};
 
 require_once __DIR__.'/../vendor/autoload.php';

+ 0 - 2
examples/fpdf.php

@@ -1,7 +1,5 @@
 <?php
 
-namespace chillerlan\QRCodeExamples;
-
 use chillerlan\QRCode\{QRCode, QROptions};
 
 require_once __DIR__ . '/../vendor/autoload.php';

+ 0 - 2
examples/html.php

@@ -8,8 +8,6 @@
  * @license      MIT
  */
 
-namespace chillerlan\QRCodeExamples;
-
 use chillerlan\QRCode\{QRCode, QROptions};
 
 require_once '../vendor/autoload.php';

+ 0 - 2
examples/image.php

@@ -8,8 +8,6 @@
  * @license      MIT
  */
 
-namespace chillerlan\QRCodeExamples;
-
 use chillerlan\QRCode\{QRCode, QROptions};
 
 require_once __DIR__.'/../vendor/autoload.php';

+ 1 - 4
examples/imageWithLogo.php

@@ -8,18 +8,15 @@
  * @license      MIT
  */
 
-namespace chillerlan\QRCodeExamples;
-
 use chillerlan\QRCode\{QRCode, QROptions};
 
 require_once __DIR__.'/../vendor/autoload.php';
 
 $data = 'https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s';
+
 /**
  * @property int $logoSpaceWidth
  * @property int $logoSpaceHeight
- *
- * @noinspection PhpIllegalPsrClassPathInspection
  */
 class LogoOptions extends QROptions{
 	// size in QR modules, multiply with QROptions::$scale for pixel size

+ 0 - 2
examples/imageWithText.php

@@ -10,8 +10,6 @@
  * @license      MIT
  */
 
-namespace chillerlan\QRCodeExamples;
-
 use chillerlan\QRCode\{QRCode, QROptions};
 
 require_once __DIR__.'/../vendor/autoload.php';

+ 0 - 2
examples/imagick.php

@@ -8,8 +8,6 @@
  * @license      MIT
  */
 
-namespace chillerlan\QRCodeExamples;
-
 use chillerlan\QRCode\{QRCode, QROptions};
 
 require_once __DIR__.'/../vendor/autoload.php';

+ 2 - 2
public/index.html → examples/index.html

@@ -156,8 +156,8 @@
 			});
 
 		});
-	})('qrcode-settings', 'qrcode-output', './qrcode.php');
+	})('qrcode-settings', 'qrcode-output', './qrcode-interactive.php');
 </script >
 
 </body >
-</html >
+</html >

+ 2 - 2
public/qrcode.php → examples/qrcode-interactive.php

@@ -5,10 +5,10 @@
  * @author       Smiley <smiley@chillerlan.net>
  * @copyright    2017 Smiley
  * @license      MIT
+ *
+ * @noinspection PhpComposerExtensionStubsInspection
  */
 
-namespace chillerlan\QRCodePublic;
-
 use chillerlan\QRCode\QRCode;
 use chillerlan\QRCode\QROptions;
 

+ 0 - 2
examples/svg.php

@@ -8,8 +8,6 @@
  * @license      MIT
  */
 
-namespace chillerlan\QRCodeExamples;
-
 use chillerlan\QRCode\{QRCode, QROptions};
 
 require_once __DIR__.'/../vendor/autoload.php';

+ 0 - 2
examples/text.php

@@ -8,8 +8,6 @@
  * @license      MIT
  */
 
-namespace chillerlan\QRCodeExamples;
-
 use chillerlan\QRCode\{QRCode, QROptions};
 
 require_once __DIR__.'/../vendor/autoload.php';