From cf0fd81c19a47489d345a11e97a30b2e117fcdf1 Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 8 Sep 2020 21:08:52 +0300 Subject: [PATCH] refactor(shortcode): update code according to coding doctrine coding standard --- src/flextype/Support/Parsers/Shortcode.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/flextype/Support/Parsers/Shortcode.php b/src/flextype/Support/Parsers/Shortcode.php index 858da19a..b4fec226 100644 --- a/src/flextype/Support/Parsers/Shortcode.php +++ b/src/flextype/Support/Parsers/Shortcode.php @@ -10,6 +10,7 @@ declare(strict_types=1); namespace Flextype\Support\Parsers; use function md5; +use Flextype\Component\Strings\Strings; class Shortcode { @@ -113,6 +114,6 @@ class Shortcode */ public function getCacheID(string $input) : string { - return md5('shortcode' . $input); + Strings::hash('shortcode' . $input); } }