Skip to content

Commit b407563

Browse files
committed
Add missing return type hints.
1 parent 63639cf commit b407563

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

modules/Blog/Http/Controllers/AuthorController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function edit(int $id): Response
6262
]);
6363
}
6464

65-
public function update(AuthorValidate $request, int $id)
65+
public function update(AuthorValidate $request, int $id): RedirectResponse
6666
{
6767
$author = Author::findOrFail($id);
6868

@@ -82,7 +82,7 @@ public function update(AuthorValidate $request, int $id)
8282
->with('success', 'Author updated.');
8383
}
8484

85-
public function destroy(int $id)
85+
public function destroy(int $id): RedirectResponse
8686
{
8787
Author::findOrFail($id)->delete();
8888

modules/Blog/Http/Controllers/CategoryController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function edit(int $id): Response
6262
]);
6363
}
6464

65-
public function update(CategoryValidate $request, int $id)
65+
public function update(CategoryValidate $request, int $id): RedirectResponse
6666
{
6767
$category = Category::findOrFail($id);
6868

@@ -82,7 +82,7 @@ public function update(CategoryValidate $request, int $id)
8282
->with('success', 'Category updated.');
8383
}
8484

85-
public function destroy(int $id)
85+
public function destroy(int $id): RedirectResponse
8686
{
8787
Category::findOrFail($id)->delete();
8888

modules/Blog/Http/Controllers/PostController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function store(PostValidate $request): RedirectResponse
5858
->with('success', 'Post created.');
5959
}
6060

61-
public function edit(int $id, CategoryService $categoryService, AuthorService $authorService): Response
61+
public function edit(CategoryService $categoryService, AuthorService $authorService, int $id): Response
6262
{
6363
return inertia('BlogPost/PostForm', [
6464
'post' => Post::find($id),
@@ -88,7 +88,7 @@ public function update(PostValidate $request, int $id): RedirectResponse
8888
->with('success', 'Post updated.');
8989
}
9090

91-
public function destroy(int $id)
91+
public function destroy(int $id): RedirectResponse
9292
{
9393
Post::findOrFail($id)->delete();
9494

0 commit comments

Comments
 (0)