@@ -5,7 +5,6 @@ |
||
5 | 5 | use ArrayAccess; |
6 | 6 | use Illuminate\Contracts\Support\Arrayable; |
7 | 7 | use Illuminate\Contracts\Support\Jsonable; |
8 | -use Illuminate\Support\Arr; |
|
9 | 8 | use JsonSerializable; |
10 | 9 | |
11 | 10 | /** |
@@ -239,6 +239,10 @@ |
||
239 | 239 | return $this->route->uri(); |
240 | 240 | } |
241 | 241 | |
242 | + /** |
|
243 | + * @param string $type |
|
244 | + * @param string $text |
|
245 | + */ |
|
242 | 246 | protected function setError($type, $text, $params = []) |
243 | 247 | { |
244 | 248 | $this->errors[$type] = trans($text, $params); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
35 | - * @return mixed |
|
35 | + * @return \Symfony\Component\HttpFoundation\Response |
|
36 | 36 | */ |
37 | 37 | public function index() |
38 | 38 | { |
@@ -7,9 +7,6 @@ |
||
7 | 7 | use Loadsman\LaravelPlugin\Modules\Rule\RuleRepository; |
8 | 8 | use Loadsman\LaravelPlugin\Modules\Rule\RuleServiceProvider; |
9 | 9 | use Loadsman\LaravelPlugin\Providers\MacroServiceProvider; |
10 | -use Loadsman\LaravelPlugin\Providers\RepositoryServiceProvider; |
|
11 | -use Loadsman\LaravelPlugin\Providers\RouteServiceProvider; |
|
12 | -use Illuminate\Routing\Router; |
|
13 | 10 | |
14 | 11 | class LoadsmanServiceProvider extends \Illuminate\Support\ServiceProvider |
15 | 12 | { |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Loadsman\LaravelPlugin\Providers; |
4 | 4 | |
5 | -use Loadsman\LaravelPlugin\Http\Middleware\DebugState; |
|
6 | 5 | use Loadsman\LaravelPlugin\Http\Middleware\DetectRoute; |
7 | 6 | use Loadsman\LaravelPlugin\Http\Middleware\PreventRedirect; |
8 | 7 | use Illuminate\Contracts\Http\Kernel; |