X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FTools%2FUtils.php;h=4561f39f08cc87741fff5394c89197e78abe14f8;hb=90c766b96b280b092d57fd35d7b9b89853a4e2a0;hp=71cbc490dd48119a218b1b829f6be4be9c08da57;hpb=7a0e6970b447b270c09e16fc7ee4098f736a7a12;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Tools/Utils.php b/src/Wallabag/CoreBundle/Tools/Utils.php index 71cbc490..4561f39f 100644 --- a/src/Wallabag/CoreBundle/Tools/Utils.php +++ b/src/Wallabag/CoreBundle/Tools/Utils.php @@ -7,7 +7,7 @@ class Utils /** * Generate a token used for RSS. * - * @param integer $length Length of the token + * @param int $length Length of the token * * @return string */ @@ -16,7 +16,7 @@ class Utils $token = substr(base64_encode(random_bytes($length)), 0, $length); // remove character which can broken the url - return str_replace(array('+', '/'), '', $token); + return str_replace(['+', '/'], '', $token); } /**