]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/Base64Url.php
lint: apply phpcbf to application/
[github/shaarli/Shaarli.git] / application / Base64Url.php
index 61590e43769f5830fd7111c121147f73ad853a96..54d0fcd52accef3639e94fde87d52b5b32678399 100644 (file)
@@ -2,7 +2,6 @@
 
 namespace Shaarli;
 
-
 /**
  * URL-safe Base64 operations
  *
@@ -17,7 +16,8 @@ class Base64Url
      *
      * @return string Base64Url-encoded data
      */
-    public static function encode($data) {
+    public static function encode($data)
+    {
         return rtrim(strtr(base64_encode($data), '+/', '-_'), '=');
     }
 
@@ -28,7 +28,8 @@ class Base64Url
      *
      * @return string Decoded data
      */
-    public static function decode($data) {
+    public static function decode($data)
+    {
         return base64_decode(str_pad(strtr($data, '-_', '+/'), strlen($data) % 4, '=', STR_PAD_RIGHT));
     }
 }