]> git.mxchange.org Git - friendica.git/commitdiff
Rename variable
authorArt4 <art4@wlabs.de>
Sat, 14 Dec 2024 14:53:56 +0000 (14:53 +0000)
committerArt4 <art4@wlabs.de>
Sat, 14 Dec 2024 14:53:56 +0000 (14:53 +0000)
src/Content/Post/Entity/PostMedia.php

index 0dbbc54d2edc650ec25681f9f4239b4d2f57e471..4b4268b7506a5ba0574cf623a4f4f6dd9c2f6305 100644 (file)
@@ -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;