From eeb68e043811e373530a5554aca40a9a8bdb56a8 Mon Sep 17 00:00:00 2001 From: mahdi purHosseini Date: Mon, 11 Dec 2023 09:57:38 +0330 Subject: [PATCH] delete invertion package --- .../Media/UrlGenerator/FtpUrlGenerator.php | 10 ++++---- .../Media/UrlGenerator/S3UrlGenerator.php | 12 +++++----- composer.json | 1 - composer.lock | 24 +++++++++---------- 4 files changed, 23 insertions(+), 24 deletions(-) diff --git a/app/Services/Media/UrlGenerator/FtpUrlGenerator.php b/app/Services/Media/UrlGenerator/FtpUrlGenerator.php index 74b8c48f..9840782d 100644 --- a/app/Services/Media/UrlGenerator/FtpUrlGenerator.php +++ b/app/Services/Media/UrlGenerator/FtpUrlGenerator.php @@ -13,20 +13,20 @@ class FtpUrlGenerator extends BaseUrlGenerator * * @return string */ - public function getUrl() : string + public function getUrl(): string { - return config('media-library.wm-cdn').'/'.$this->getPathRelativeToRoot(); + return config( 'media-library.wm-cdn' ) . '/' . $this->getPathRelativeToRoot(); } /** * @param \DateTimeInterface $expiration - * @param array $options + * @param array $options * * @return string * * @throws UrlCannotBeDetermined */ - public function getTemporaryUrl(DateTimeInterface $expiration, array $options = []): string + public function getTemporaryUrl( DateTimeInterface $expiration , array $options = [] ): string { throw UrlCannotBeDetermined::filesystemDoesNotSupportTemporaryUrls(); return 'done'; @@ -50,6 +50,6 @@ class FtpUrlGenerator extends BaseUrlGenerator */ public function getResponsiveImagesDirectoryUrl(): string { - return config('media-library.wm-cdn').'/'.$this->pathGenerator->getPathForResponsiveImages($this->media); + return config( 'media-library.wm-cdn' ) . '/' . $this->pathGenerator->getPathForResponsiveImages( $this->media ); } } diff --git a/app/Services/Media/UrlGenerator/S3UrlGenerator.php b/app/Services/Media/UrlGenerator/S3UrlGenerator.php index b2316848..f9817f48 100644 --- a/app/Services/Media/UrlGenerator/S3UrlGenerator.php +++ b/app/Services/Media/UrlGenerator/S3UrlGenerator.php @@ -5,26 +5,26 @@ namespace App\Services\Media\UrlGenerator; use DateTimeInterface; use Spatie\MediaLibrary\UrlGenerator\BaseUrlGenerator; - class S3UrlGenerator extends BaseUrlGenerator +class S3UrlGenerator extends BaseUrlGenerator { /** * Get the url for the profile of a media item. * * @return string */ - public function getUrl() : string + public function getUrl(): string { - return config('media-library.s3.domain').'/'.$this->getPathRelativeToRoot(); + return config( 'media-library.s3.domain' ) . '/' . $this->getPathRelativeToRoot(); } /** * @param \DateTimeInterface $expiration - * @param array $options + * @param array $options * * @return string * */ - public function getTemporaryUrl(DateTimeInterface $expiration, array $options = []): string + public function getTemporaryUrl( DateTimeInterface $expiration , array $options = [] ): string { return 'done'; @@ -48,6 +48,6 @@ use Spatie\MediaLibrary\UrlGenerator\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 ); } } diff --git a/composer.json b/composer.json index 137cf581..fa1ccf28 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,6 @@ "php": "^7.1.3", "coraxster/flysystem-aws-s3-v3-minio": "^1.0", "fideloper/proxy": "^4.0", - "intervention/image": "^2.5", "spatie/laravel-medialibrary": "^7.0", "kalnoy/nestedset": "^5.0", "laravel/framework": "5.8.*", diff --git a/composer.lock b/composer.lock index 18cebfe0..bbc5dd5c 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "d6e9993640e958efaccbd6c16695e927", + "content-hash": "09a34a136095f8d7b0266b74b8705b29", "packages": [ { "name": "aws/aws-crt-php", @@ -2990,16 +2990,16 @@ }, { "name": "nesbot/carbon", - "version": "2.72.0", + "version": "2.72.1", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "a6885fcbad2ec4360b0e200ee0da7d9b7c90786b" + "reference": "2b3b3db0a2d0556a177392ff1a3bf5608fa09f78" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/a6885fcbad2ec4360b0e200ee0da7d9b7c90786b", - "reference": "a6885fcbad2ec4360b0e200ee0da7d9b7c90786b", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/2b3b3db0a2d0556a177392ff1a3bf5608fa09f78", + "reference": "2b3b3db0a2d0556a177392ff1a3bf5608fa09f78", "shasum": "" }, "require": { @@ -3093,20 +3093,20 @@ "type": "tidelift" } ], - "time": "2023-11-28T10:13:25+00:00" + "time": "2023-12-08T23:47:49+00:00" }, { "name": "nikic/php-parser", - "version": "v4.17.1", + "version": "v4.18.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d" + "reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", - "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/1bcbb2179f97633e98bbbc87044ee2611c7d7999", + "reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999", "shasum": "" }, "require": { @@ -3147,9 +3147,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.17.1" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.18.0" }, - "time": "2023-08-13T19:53:39+00:00" + "time": "2023-12-10T21:03:43+00:00" }, { "name": "nyholm/psr7",