@@ -127,6 +127,10 @@ |
||
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | if (!function_exists('e')) { |
| 130 | + |
|
| 131 | + /** |
|
| 132 | + * @param string $value |
|
| 133 | + */ |
|
| 130 | 134 | function e($value) |
| 131 | 135 | { |
| 132 | 136 | return htmlspecialchars($value); |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | /** |
| 14 | 14 | * Register any application authentication / authorization services. |
| 15 | 15 | * |
| 16 | - * @param \Illuminate\Contracts\Auth\Access\Gate $gate |
|
| 17 | 16 | * @return void |
| 18 | 17 | */ |
| 19 | 18 | public function boot(AuthManager $auth) |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * Create a new filter instance. |
| 20 | 20 | * |
| 21 | - * @param Guard $auth |
|
| 22 | 21 | * @return void |
| 23 | 22 | */ |
| 24 | 23 | public function __construct(AuthUserServiceContract $authService) |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * Create a new filter instance. |
| 19 | 19 | * |
| 20 | - * @param Guard $auth |
|
| 21 | 20 | * @return void |
| 22 | 21 | */ |
| 23 | 22 | public function __construct(AuthUserServiceContract $authService) |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * Create a new filter instance. |
| 19 | 19 | * |
| 20 | - * @param Guard $auth |
|
| 21 | 20 | * @return void |
| 22 | 21 | */ |
| 23 | 22 | public function __construct(AuthUserServiceContract $authService) |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * Create a new filter instance. |
| 19 | 19 | * |
| 20 | - * @param Guard $auth |
|
| 21 | 20 | * @return void |
| 22 | 21 | */ |
| 23 | 22 | public function __construct(AuthUserServiceContract $authService) |
@@ -155,6 +155,9 @@ |
||
| 155 | 155 | } |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | + /** |
|
| 159 | + * @param string $perm |
|
| 160 | + */ |
|
| 158 | 161 | public function can($perm) |
| 159 | 162 | { |
| 160 | 163 | return $this->getUser()->can($perm); |
@@ -23,7 +23,6 @@ |
||
| 23 | 23 | /** |
| 24 | 24 | * Update a entity in repository by id. |
| 25 | 25 | * |
| 26 | - * @param array $attributes |
|
| 27 | 26 | * @param $id |
| 28 | 27 | * @return mixed |
| 29 | 28 | */ |
@@ -93,6 +93,9 @@ discard block |
||
| 93 | 93 | return parent::render($request, $e); |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | + /** |
|
| 97 | + * @param \Illuminate\Http\Request $request |
|
| 98 | + */ |
|
| 96 | 99 | protected function shouldRenderAsJson($request, Exception $e) |
| 97 | 100 | { |
| 98 | 101 | if ($e instanceof ValidationException) { |
@@ -102,6 +105,9 @@ discard block |
||
| 102 | 105 | return $request->wantsJson(); |
| 103 | 106 | } |
| 104 | 107 | |
| 108 | + /** |
|
| 109 | + * @param \Illuminate\Http\Request $request |
|
| 110 | + */ |
|
| 105 | 111 | protected function renderAsJson($request, Exception $e) |
| 106 | 112 | { |
| 107 | 113 | // Define the response |