@@ -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 |  { | 
                                                        
@@ -62,7 +62,7 @@ discard block  | 
                                                    ||
| 62 | 62 | /**  | 
                                                        
| 63 | 63 | * Display the specified resource.  | 
                                                        
| 64 | 64 | *  | 
                                                        
| 65 | - * @param \App\Article $article  | 
                                                        |
| 65 | + * @param Article $article  | 
                                                        |
| 66 | 66 | * @return \Illuminate\Http\Response  | 
                                                        
| 67 | 67 | */  | 
                                                        
| 68 | 68 | public function show(ShowArticle $request, Article $article)  | 
                                                        
@@ -75,7 +75,6 @@ discard block  | 
                                                    ||
| 75 | 75 | /**  | 
                                                        
| 76 | 76 | * Display the specified resource.  | 
                                                        
| 77 | 77 | *  | 
                                                        
| 78 | - * @param \App\Article $article  | 
                                                        |
| 79 | 78 | * @return \Illuminate\Http\Response  | 
                                                        
| 80 | 79 | */  | 
                                                        
| 81 | 80 | public function show1($id)  | 
                                                        
@@ -98,7 +97,7 @@ discard block  | 
                                                    ||
| 98 | 97 | /**  | 
                                                        
| 99 | 98 | * Show the form for editing the specified resource.  | 
                                                        
| 100 | 99 | *  | 
                                                        
| 101 | - * @param \App\Article $article  | 
                                                        |
| 100 | + * @param Article $article  | 
                                                        |
| 102 | 101 | * @return \Illuminate\Http\Response  | 
                                                        
| 103 | 102 | */  | 
                                                        
| 104 | 103 | public function edit(Article $article)  | 
                                                        
@@ -112,7 +111,7 @@ discard block  | 
                                                    ||
| 112 | 111 | * Update the specified resource in storage.  | 
                                                        
| 113 | 112 | *  | 
                                                        
| 114 | 113 | * @param \Illuminate\Http\Request $request  | 
                                                        
| 115 | - * @param \App\Article $article  | 
                                                        |
| 114 | + * @param Article $article  | 
                                                        |
| 116 | 115 | * @return \Illuminate\Http\Response  | 
                                                        
| 117 | 116 | */  | 
                                                        
| 118 | 117 | public function update(UpdateArticle $request, Article $article)  | 
                                                        
@@ -126,7 +125,7 @@ discard block  | 
                                                    ||
| 126 | 125 | /**  | 
                                                        
| 127 | 126 | * Remove the specified resource from storage.  | 
                                                        
| 128 | 127 | *  | 
                                                        
| 129 | - * @param \App\Article $article  | 
                                                        |
| 128 | + * @param Article $article  | 
                                                        |
| 130 | 129 | * @return \Illuminate\Http\Response  | 
                                                        
| 131 | 130 | */  | 
                                                        
| 132 | 131 | public function destroy(DestroyArticle $request, Article $article)  |