aboutsummaryrefslogtreecommitdiff
path: root/srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-07-27 10:05:23 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-07-27 10:05:23 +0200
commit5bf66662a9bdd62c5bccab15e607cd95cfb8fcab (patch)
tree39a1a4629749056191c05dfd899f931701b7acf3 /srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye
parent5afd237bbd22028b85532b8c0b3fcead49a00764 (diff)
downloadft_server-5bf66662a9bdd62c5bccab15e607cd95cfb8fcab.tar.gz
ft_server-5bf66662a9bdd62c5bccab15e607cd95cfb8fcab.tar.bz2
ft_server-5bf66662a9bdd62c5bccab15e607cd95cfb8fcab.zip
Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my famillyHEADmaster
Diffstat (limited to 'srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye')
-rw-r--r--srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/CompositeEye.php38
-rw-r--r--srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/EyeInterface.php26
-rw-r--r--srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/ModuleEye.php54
-rw-r--r--srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/SimpleCircleEye.php54
-rw-r--r--srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/SquareEye.php53
5 files changed, 0 insertions, 225 deletions
diff --git a/srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/CompositeEye.php b/srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/CompositeEye.php
deleted file mode 100644
index a3e1909..0000000
--- a/srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/CompositeEye.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-declare(strict_types = 1);
-
-namespace BaconQrCode\Renderer\Eye;
-
-use BaconQrCode\Renderer\Path\Path;
-
-/**
- * Combines the style of two different eyes.
- */
-final class CompositeEye implements EyeInterface
-{
- /**
- * @var EyeInterface
- */
- private $externalEye;
-
- /**
- * @var EyeInterface
- */
- private $internalEye;
-
- public function __construct(EyeInterface $externalEye, EyeInterface $internalEye)
- {
- $this->externalEye = $externalEye;
- $this->internalEye = $internalEye;
- }
-
- public function getExternalPath() : Path
- {
- return $this->externalEye->getExternalPath();
- }
-
- public function getInternalPath() : Path
- {
- return $this->externalEye->getInternalPath();
- }
-}
diff --git a/srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/EyeInterface.php b/srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/EyeInterface.php
deleted file mode 100644
index ab68f3c..0000000
--- a/srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/EyeInterface.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-declare(strict_types = 1);
-
-namespace BaconQrCode\Renderer\Eye;
-
-use BaconQrCode\Renderer\Path\Path;
-
-/**
- * Interface for describing the look of an eye.
- */
-interface EyeInterface
-{
- /**
- * Returns the path of the external eye element.
- *
- * The path origin point (0, 0) must be anchored at the middle of the path.
- */
- public function getExternalPath() : Path;
-
- /**
- * Returns the path of the internal eye element.
- *
- * The path origin point (0, 0) must be anchored at the middle of the path.
- */
- public function getInternalPath() : Path;
-}
diff --git a/srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/ModuleEye.php b/srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/ModuleEye.php
deleted file mode 100644
index 84f7d12..0000000
--- a/srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/ModuleEye.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-declare(strict_types = 1);
-
-namespace BaconQrCode\Renderer\Eye;
-
-use BaconQrCode\Encoder\ByteMatrix;
-use BaconQrCode\Renderer\Module\ModuleInterface;
-use BaconQrCode\Renderer\Path\Path;
-
-/**
- * Renders an eye based on a module renderer.
- */
-final class ModuleEye implements EyeInterface
-{
- /**
- * @var ModuleInterface
- */
- private $module;
-
- public function __construct(ModuleInterface $module)
- {
- $this->module = $module;
- }
-
- public function getExternalPath() : Path
- {
- $matrix = new ByteMatrix(7, 7);
-
- for ($x = 0; $x < 7; ++$x) {
- $matrix->set($x, 0, 1);
- $matrix->set($x, 6, 1);
- }
-
- for ($y = 1; $y < 6; ++$y) {
- $matrix->set(0, $y, 1);
- $matrix->set(6, $y, 1);
- }
-
- return $this->module->createPath($matrix)->translate(-3.5, -3.5);
- }
-
- public function getInternalPath() : Path
- {
- $matrix = new ByteMatrix(3, 3);
-
- for ($x = 0; $x < 3; ++$x) {
- for ($y = 0; $y < 3; ++$y) {
- $matrix->set($x, $y, 1);
- }
- }
-
- return $this->module->createPath($matrix)->translate(-1.5, -1.5);
- }
-}
diff --git a/srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/SimpleCircleEye.php b/srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/SimpleCircleEye.php
deleted file mode 100644
index 64d54ee..0000000
--- a/srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/SimpleCircleEye.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-declare(strict_types = 1);
-
-namespace BaconQrCode\Renderer\Eye;
-
-use BaconQrCode\Renderer\Path\Path;
-
-/**
- * Renders the inner eye as a circle.
- */
-final class SimpleCircleEye implements EyeInterface
-{
- /**
- * @var self|null
- */
- private static $instance;
-
- private function __construct()
- {
- }
-
- public static function instance() : self
- {
- return self::$instance ?: self::$instance = new self();
- }
-
- public function getExternalPath() : Path
- {
- return (new Path())
- ->move(-3.5, -3.5)
- ->line(3.5, -3.5)
- ->line(3.5, 3.5)
- ->line(-3.5, 3.5)
- ->close()
- ->move(-2.5, -2.5)
- ->line(-2.5, 2.5)
- ->line(2.5, 2.5)
- ->line(2.5, -2.5)
- ->close()
- ;
- }
-
- public function getInternalPath() : Path
- {
- return (new Path())
- ->move(1.5, 0)
- ->ellipticArc(1.5, 1.5, 0., false, true, 0., 1.5)
- ->ellipticArc(1.5, 1.5, 0., false, true, -1.5, 0.)
- ->ellipticArc(1.5, 1.5, 0., false, true, 0., -1.5)
- ->ellipticArc(1.5, 1.5, 0., false, true, 1.5, 0.)
- ->close()
- ;
- }
-}
diff --git a/srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/SquareEye.php b/srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/SquareEye.php
deleted file mode 100644
index a3892b4..0000000
--- a/srcs/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/SquareEye.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-declare(strict_types = 1);
-
-namespace BaconQrCode\Renderer\Eye;
-
-use BaconQrCode\Renderer\Path\Path;
-
-/**
- * Renders the eyes in their default square shape.
- */
-final class SquareEye implements EyeInterface
-{
- /**
- * @var self|null
- */
- private static $instance;
-
- private function __construct()
- {
- }
-
- public static function instance() : self
- {
- return self::$instance ?: self::$instance = new self();
- }
-
- public function getExternalPath() : Path
- {
- return (new Path())
- ->move(-3.5, -3.5)
- ->line(3.5, -3.5)
- ->line(3.5, 3.5)
- ->line(-3.5, 3.5)
- ->close()
- ->move(-2.5, -2.5)
- ->line(-2.5, 2.5)
- ->line(2.5, 2.5)
- ->line(2.5, -2.5)
- ->close()
- ;
- }
-
- public function getInternalPath() : Path
- {
- return (new Path())
- ->move(-1.5, -1.5)
- ->line(1.5, -1.5)
- ->line(1.5, 1.5)
- ->line(-1.5, 1.5)
- ->close()
- ;
- }
-}