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