@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | /** |
51 | 51 | * Display the specified resource. |
52 | 52 | * |
53 | - * @param \App\Article $article |
|
53 | + * @param Article $article |
|
54 | 54 | * @return \Illuminate\Http\Response |
55 | 55 | */ |
56 | 56 | public function show(Article $article) |
@@ -63,7 +63,6 @@ discard block |
||
63 | 63 | /** |
64 | 64 | * Display the specified resource. |
65 | 65 | * |
66 | - * @param \App\Article $article |
|
67 | 66 | * @return \Illuminate\Http\Response |
68 | 67 | */ |
69 | 68 | public function show1($id) |
@@ -86,7 +85,7 @@ discard block |
||
86 | 85 | /** |
87 | 86 | * Show the form for editing the specified resource. |
88 | 87 | * |
89 | - * @param \App\Article $article |
|
88 | + * @param Article $article |
|
90 | 89 | * @return \Illuminate\Http\Response |
91 | 90 | */ |
92 | 91 | public function edit(Article $article) |
@@ -98,7 +97,7 @@ discard block |
||
98 | 97 | * Update the specified resource in storage. |
99 | 98 | * |
100 | 99 | * @param \Illuminate\Http\Request $request |
101 | - * @param \App\Article $article |
|
100 | + * @param Article $article |
|
102 | 101 | * @return \Illuminate\Http\Response |
103 | 102 | */ |
104 | 103 | public function update(Request $request, Article $article) |
@@ -112,7 +111,7 @@ discard block |
||
112 | 111 | /** |
113 | 112 | * Remove the specified resource from storage. |
114 | 113 | * |
115 | - * @param \App\Article $article |
|
114 | + * @param Article $article |
|
116 | 115 | * @return \Illuminate\Http\Response |
117 | 116 | */ |
118 | 117 | public function destroy(Article $article) |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use Ergare17\Articles\Console\Commands\Traits\AsksForArticles; |
6 | 6 | use Ergare17\Articles\Models\Article; |
7 | -use http\Exception; |
|
8 | 7 | use Illuminate\Console\Command; |
8 | +use http\Exception; |
|
9 | 9 | |
10 | 10 | class DeleteArticleCommand extends Command |
11 | 11 | { |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use App\User; |
6 | 6 | use Ergare17\Articles\Models\Article; |
7 | -use http\Exception; |
|
8 | 7 | use Illuminate\Console\Command; |
8 | +use http\Exception; |
|
9 | 9 | |
10 | 10 | class ListArticlesCommand extends Command |
11 | 11 | { |
@@ -5,6 +5,10 @@ |
||
5 | 5 | use Spatie\Permission\Models\Role; |
6 | 6 | |
7 | 7 | if (!function_exists('assignPermission')) { |
8 | + |
|
9 | + /** |
|
10 | + * @param string $permission |
|
11 | + */ |
|
8 | 12 | function assignPermission($role, $permission) |
9 | 13 | { |
10 | 14 | if (! $role->hasPermissionTo($permission)) { |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Ergare17\Articles\Console\Commands; |
4 | 4 | |
5 | +use Ergare17\Articles\Console\Commands\Traits\AsksForUsers; |
|
5 | 6 | use Ergare17\Articles\Models\Article; |
6 | 7 | use Illuminate\Console\Command; |
7 | 8 | use Mockery\Exception; |
8 | -use Ergare17\Articles\Console\Commands\Traits\AsksForUsers; |
|
9 | 9 | |
10 | 10 | class CreateArticleCommand extends Command |
11 | 11 | { |