mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-22 01:38:49 -05:00
chore: apply the laravel code style linter
This commit is contained in:
@@ -25,7 +25,7 @@ class ImageController extends Controller
|
||||
/**
|
||||
* Show Image Create Form.
|
||||
*/
|
||||
public function create(\App\Models\Album $id): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
public function create(Album $id): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
{
|
||||
$album = Album::find($id);
|
||||
|
||||
@@ -75,10 +75,8 @@ class ImageController extends Controller
|
||||
|
||||
/**
|
||||
* Download A Image.
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function download(\App\Models\Image $id): \Illuminate\Http\RedirectResponse|\Symfony\Component\HttpFoundation\BinaryFileResponse
|
||||
public function download(Image $id): \Illuminate\Http\RedirectResponse|\Symfony\Component\HttpFoundation\BinaryFileResponse
|
||||
{
|
||||
$image = Image::findOrFail($id);
|
||||
$filename = $image->image;
|
||||
@@ -99,9 +97,8 @@ class ImageController extends Controller
|
||||
*
|
||||
*
|
||||
* @throws \Exception
|
||||
*
|
||||
*/
|
||||
public function destroy(Request $request, \App\Models\Image $id): \Illuminate\Http\RedirectResponse
|
||||
public function destroy(Request $request, Image $id): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
$user = $request->user();
|
||||
$image = Image::findOrFail($id);
|
||||
|
||||
Reference in New Issue
Block a user