@@ -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) |
@@ -4,8 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Auth\AuthManager; |
6 | 6 | use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; |
7 | -use Longman\Platfourm\Auth\RemoteUserProvider; |
|
8 | -use Longman\Platfourm\Auth\Repositories\RemoteUserRepository; |
|
9 | 7 | |
10 | 8 | class AuthServiceProvider extends ServiceProvider |
11 | 9 | { |
@@ -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); |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use App\Repositories\Identity\UserRepository; |
8 | 8 | use App\Repositories\Repository; |
9 | 9 | use App\Services\EntityService; |
10 | -use App\Services\ServiceDispatcher; |
|
11 | 10 | |
12 | 11 | class CheckMailService extends EntityService |
13 | 12 | { |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use App\Repositories\Identity\UserRepository; |
8 | 8 | use App\Repositories\Repository; |
9 | 9 | use App\Services\EntityService; |
10 | -use App\Services\ServiceDispatcher; |
|
11 | 10 | |
12 | 11 | class UpdateProfileService extends EntityService |
13 | 12 | { |
@@ -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 |
@@ -175,7 +175,6 @@ discard block |
||
175 | 175 | /** |
176 | 176 | * Retrieve count of records. |
177 | 177 | * |
178 | - * @param array $columns |
|
179 | 178 | * @return mixed |
180 | 179 | */ |
181 | 180 | public function count() |
@@ -296,6 +295,9 @@ discard block |
||
296 | 295 | return $this->parserResult($results); |
297 | 296 | } |
298 | 297 | |
298 | + /** |
|
299 | + * @param string $columns |
|
300 | + */ |
|
299 | 301 | protected function parseColumns($columns) |
300 | 302 | { |
301 | 303 | if ($columns == '*') { |
@@ -305,6 +307,9 @@ discard block |
||
305 | 307 | return explode(',', $columns); |
306 | 308 | } |
307 | 309 | |
310 | + /** |
|
311 | + * @param Model $model |
|
312 | + */ |
|
308 | 313 | protected function setWheres($model, array $options = null) |
309 | 314 | { |
310 | 315 | |
@@ -401,6 +406,9 @@ discard block |
||
401 | 406 | return $this->parserResult($results); |
402 | 407 | } |
403 | 408 | |
409 | + /** |
|
410 | + * @param string $sortBy |
|
411 | + */ |
|
404 | 412 | protected function parseSortByString($sortBy) |
405 | 413 | { |
406 | 414 | $sortBy = explode(',', $sortBy); |
@@ -18,8 +18,8 @@ |
||
18 | 18 | protected static $keys = null; |
19 | 19 | |
20 | 20 | /** |
21 | - * @param $group |
|
22 | - * @param $key |
|
21 | + * @param string $group |
|
22 | + * @param string $key |
|
23 | 23 | * |
24 | 24 | * @return void |
25 | 25 | */ |