From 7641c2deb01a9011e1eb2bec69b365af35ea3731 Mon Sep 17 00:00:00 2001 From: nasrulhazim Date: Sun, 3 Dec 2023 07:40:55 +0000 Subject: [PATCH] Fix styling --- src/Http/Controllers/MediaController.php | 3 --- src/LaravelMediaSecure.php | 12 ++++++------ src/Policies/MediaPolicy.php | 4 ---- tests/LaravelMediaSecureTest.php | 1 + 4 files changed, 7 insertions(+), 13 deletions(-) diff --git a/src/Http/Controllers/MediaController.php b/src/Http/Controllers/MediaController.php index 026d083..cf95292 100644 --- a/src/Http/Controllers/MediaController.php +++ b/src/Http/Controllers/MediaController.php @@ -10,9 +10,6 @@ class MediaController extends Controller /** * Handle the incoming request. * - * @param \Illuminate\Http\Request $request - * @param string $type - * @param string $uuid * @return \Illuminate\Http\Response */ public function __invoke(Request $request, string $type, string $uuid) diff --git a/src/LaravelMediaSecure.php b/src/LaravelMediaSecure.php index 0aee85a..469bc10 100755 --- a/src/LaravelMediaSecure.php +++ b/src/LaravelMediaSecure.php @@ -12,11 +12,11 @@ public static function routes() config('laravel-media-secure.prefix').'/{type}/{uuid}', config('laravel-media-secure.controller') ) - ->name( - config('laravel-media-secure.route_name') - ) - ->middleware( - config('laravel-media-secure.middleware', ['auth', 'verified']) - ); + ->name( + config('laravel-media-secure.route_name') + ) + ->middleware( + config('laravel-media-secure.middleware', ['auth', 'verified']) + ); } } diff --git a/src/Policies/MediaPolicy.php b/src/Policies/MediaPolicy.php index 9a36d24..1df3eba 100644 --- a/src/Policies/MediaPolicy.php +++ b/src/Policies/MediaPolicy.php @@ -14,8 +14,6 @@ class MediaPolicy /** * Determine whether the user can view the model. * - * @param \Illuminate\Foundation\Auth\User $user - * @param \Spatie\MediaLibrary\MediaCollections\Models\Media $media * @return \Illuminate\Auth\Access\Response|bool */ public function view(User $user, Media $media) @@ -38,8 +36,6 @@ public function view(User $user, Media $media) /** * Determine whether the user can view the model. * - * @param \Illuminate\Foundation\Auth\User $user - * @param \Spatie\MediaLibrary\MediaCollections\Models\Media $media * @return \Illuminate\Auth\Access\Response|bool */ public function download(User $user, Media $media) diff --git a/tests/LaravelMediaSecureTest.php b/tests/LaravelMediaSecureTest.php index fc239de..7b5845f 100644 --- a/tests/LaravelMediaSecureTest.php +++ b/tests/LaravelMediaSecureTest.php @@ -6,6 +6,7 @@ use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Schema; + use function Pest\Laravel\get; use function PHPUnit\Framework\assertTrue;