Rename variable

pull/14584/head
Art4 2024-12-14 14:53:56 +00:00
rodzic 8178f87e61
commit 6a2e8739d1
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -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;