PluginProbe ʕ •ᴥ•ʔ
WP 2FA – Two-factor authentication for WordPress / 2.9.1
WP 2FA – Two-factor authentication for WordPress v2.9.1
4.0.0 1.7.1 2.0.0 2.0.1 2.1.0 2.2.0 2.2.1 2.3.0 2.4.0 2.4.1 2.4.2 2.5.0 2.6.0 2.6.1 2.6.2 2.6.3 2.6.4 2.7.0 2.8.0 2.9.0 2.9.1 2.9.2 2.9.3 3.0.0 3.0.1 3.1.0 3.1.1 3.1.1.2 trunk 1.2.0 1.3.0 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.6.0 1.6.1 1.6.2 1.7.0
wp-2fa / includes / classes / bacon / bacon-qr-code / src / Renderer / Eye / SquareEye.php
wp-2fa / includes / classes / bacon / bacon-qr-code / src / Renderer / Eye Last commit date
CompositeEye.php 11 months ago EyeInterface.php 11 months ago ModuleEye.php 11 months ago SimpleCircleEye.php 11 months ago SquareEye.php 11 months ago
SquareEye.php
32 lines
1 <?php
2
3 declare (strict_types=1);
4 namespace WP2FA_Vendor\BaconQrCode\Renderer\Eye;
5
6 use WP2FA_Vendor\BaconQrCode\Renderer\Path\Path;
7 /**
8 * Renders the eyes in their default square shape.
9 */
10 final class SquareEye implements EyeInterface
11 {
12 /**
13 * @var self|null
14 */
15 private static $instance;
16 private function __construct()
17 {
18 }
19 public static function instance() : self
20 {
21 return self::$instance ?: (self::$instance = new self());
22 }
23 public function getExternalPath() : Path
24 {
25 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();
26 }
27 public function getInternalPath() : Path
28 {
29 return (new Path())->move(-1.5, -1.5)->line(1.5, -1.5)->line(1.5, 1.5)->line(-1.5, 1.5)->close();
30 }
31 }
32