]> _ Git - fluidbook_tools.git/commitdiff
wip #5468 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 7 Dec 2022 17:43:44 +0000 (18:43 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 7 Dec 2022 17:43:44 +0000 (18:43 +0100)
src/Links/Link.php

index 4dcb6b2f822ba7b0def7f4a55435e7747a283885..9e271e1b16abfa530b488fa0c340b06a49c85d05 100644 (file)
@@ -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;
-    }
+
 
 }