]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Helper/CryptoProxy.php
Fix reviews
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Helper / CryptoProxy.php
index d0a9b85c83882d15d4bd4cc51308e2d54e61357f..e8b19cb9ec650667cc351edb1bf11ea4642a388c 100644 (file)
@@ -65,7 +65,7 @@ class CryptoProxy
     /**
      * Load the private key.
      *
-     * @return string
+     * @return Key
      */
     private function loadKey()
     {
@@ -81,6 +81,6 @@ class CryptoProxy
      */
     private function mask($value)
     {
-        return $value[0].'*****'.$value[strlen($value) - 1];
+        return strlen($value) > 0 ? $value[0].'*****'.$value[strlen($value) - 1] : 'Empty value';
     }
 }