mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-03 00:40:12 -05:00
update: type hints
This commit is contained in:
@@ -25,7 +25,7 @@ class ImageController extends Controller
|
||||
/**
|
||||
* Show Image Create Form.
|
||||
*/
|
||||
public function create(Album $id): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
public function create(int $id): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
{
|
||||
$album = Album::find($id);
|
||||
|
||||
@@ -76,7 +76,7 @@ class ImageController extends Controller
|
||||
/**
|
||||
* Download A Image.
|
||||
*/
|
||||
public function download(Image $id): \Illuminate\Http\RedirectResponse|\Symfony\Component\HttpFoundation\BinaryFileResponse
|
||||
public function download(int $id): \Illuminate\Http\RedirectResponse|\Symfony\Component\HttpFoundation\BinaryFileResponse
|
||||
{
|
||||
$image = Image::findOrFail($id);
|
||||
$filename = $image->image;
|
||||
@@ -95,10 +95,9 @@ class ImageController extends Controller
|
||||
/**
|
||||
* Delete A Image.
|
||||
*
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function destroy(Request $request, Image $id): \Illuminate\Http\RedirectResponse
|
||||
public function destroy(Request $request, int $id): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
$user = $request->user();
|
||||
$image = Image::findOrFail($id);
|
||||
|
||||
Reference in New Issue
Block a user