From 6a2e8739d1144aabba3f9fbb0eac21c42d5b0d9b Mon Sep 17 00:00:00 2001 From: Art4 Date: Sat, 14 Dec 2024 14:53:56 +0000 Subject: [PATCH] Rename variable --- src/Content/Post/Entity/PostMedia.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Content/Post/Entity/PostMedia.php b/src/Content/Post/Entity/PostMedia.php index 0dbbc54d2e..4b4268b750 100644 --- a/src/Content/Post/Entity/PostMedia.php +++ b/src/Content/Post/Entity/PostMedia.php @@ -164,17 +164,17 @@ class PostMedia extends BaseEntity /** * Get preview path for given media id relative to the base URL * - * @param string $size One of the Proxy::SIZE_* constants - * @param bool $blurred If "true", the preview will be blurred + * @param string $size One of the Proxy::SIZE_* constants + * @param bool $blur If "true", the preview will be blurred * @return string preview link */ - public function getPreviewPath(string $size = '', bool $blurred = false): string + public function getPreviewPath(string $size = '', bool $blur = false): string { $path = '/photo/preview/' . (Proxy::getPixelsFromSize($size) ? Proxy::getPixelsFromSize($size) . '/' : '') . $this->id; - if ($blurred) { + if ($blur) { $path .= '?' . http_build_query(['blur' => true]); } return $path;