mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 07:41:04 +03:30
feat: install phpstan and resolving reported errors in PHPStan
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
namespace App\Services\Media\UrlGenerator;
|
||||
|
||||
use DateTimeInterface;
|
||||
use Spatie\MediaLibrary\UrlGenerator\BaseUrlGenerator;
|
||||
use Spatie\MediaLibrary\Support\UrlGenerator\BaseUrlGenerator;
|
||||
|
||||
class S3UrlGenerator extends BaseUrlGenerator
|
||||
{
|
||||
@@ -14,7 +14,7 @@ class S3UrlGenerator extends BaseUrlGenerator
|
||||
*/
|
||||
public function getUrl(): string
|
||||
{
|
||||
return config( 'media-library.s3.domain' ) . '/' . $this->getPathRelativeToRoot();
|
||||
return config('media-library.s3.domain') . '/' . $this->getPathRelativeToRoot();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ class S3UrlGenerator extends BaseUrlGenerator
|
||||
* @return string
|
||||
*
|
||||
*/
|
||||
public function getTemporaryUrl( DateTimeInterface $expiration , array $options = [] ): string
|
||||
public function getTemporaryUrl(DateTimeInterface $expiration, array $options = []): string
|
||||
{
|
||||
|
||||
return 'done';
|
||||
@@ -48,6 +48,6 @@ class S3UrlGenerator extends BaseUrlGenerator
|
||||
*/
|
||||
public function getResponsiveImagesDirectoryUrl(): string
|
||||
{
|
||||
return config( 'media-library.s3.domain' ) . '/' . $this->pathGenerator->getPathForResponsiveImages( $this->media );
|
||||
return config('media-library.s3.domain') . '/' . $this->pathGenerator->getPathForResponsiveImages($this->media);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user