From: Vincent Vanwaelscappel Date: Wed, 7 Dec 2022 17:43:44 +0000 (+0100) Subject: wip #5468 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=117d804491baa23a945d23a01bfb28654934914b;p=fluidbook_tools.git wip #5468 @0.5 --- diff --git a/src/Links/Link.php b/src/Links/Link.php index 4dcb6b2..9e271e1 100644 --- a/src/Links/Link.php +++ b/src/Links/Link.php @@ -16,7 +16,7 @@ use stdClass; class Link { - protected static string|false $_linksKey; + protected static string|false|null $_linksKey=null; public $left; public $top; public $width; @@ -624,6 +624,13 @@ class Link { return $res; } + public static function _getLinkKey() { + if (self::$_linksKey === null) { + self::$_linksKey = base64_decode('o2p2yYGI8yMEHf+Y5/e6NdTINbbXg3NIo8BODgdhPxI='); + } + return self::$_linksKey; + } + /** * @throws \SodiumException */ @@ -660,11 +667,6 @@ class Link { return $res; } - public static function _getLinkKey() { - if (self::$_linksKey === null) { - self::$_linksKey = base64_decode('o2p2yYGI8yMEHf+Y5/e6NdTINbbXg3NIo8BODgdhPxI='); - } - return self::$_linksKey; - } + }