@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | |
| 208 | 208 | /** |
| 209 | 209 | * @param $model |
| 210 | - * @param null $custom_attribute |
|
| 210 | + * @param string $custom_attribute |
|
| 211 | 211 | * |
| 212 | 212 | * @return \Illuminate\Http\JsonResponse |
| 213 | 213 | * |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | |
| 225 | 225 | /** |
| 226 | 226 | * @param $model |
| 227 | - * @param null $custom_attribute |
|
| 227 | + * @param string[] $custom_attribute |
|
| 228 | 228 | * |
| 229 | 229 | * @return \Illuminate\Http\JsonResponse |
| 230 | 230 | * |
@@ -199,7 +199,7 @@ |
||
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | /** |
| 202 | - * @param bool|true $paginate |
|
| 202 | + * @param boolean $paginate |
|
| 203 | 203 | * @param string $sort |
| 204 | 204 | * @param string $direction |
| 205 | 205 | * |
@@ -375,7 +375,7 @@ |
||
| 375 | 375 | |
| 376 | 376 | /** |
| 377 | 377 | * @param $navigation |
| 378 | - * @param $pim |
|
| 378 | + * @param boolean $pim |
|
| 379 | 379 | * |
| 380 | 380 | * @return array |
| 381 | 381 | * |
@@ -406,7 +406,7 @@ discard block |
||
| 406 | 406 | { |
| 407 | 407 | $parent_links = self::where('parent_id', 0)->get(); |
| 408 | 408 | |
| 409 | - $parent_links->each(function ($item) { |
|
| 409 | + $parent_links->each(function($item) { |
|
| 410 | 410 | $item->route = str_replace('/', '-', $item->href); |
| 411 | 411 | })->toArray(); |
| 412 | 412 | |
@@ -428,7 +428,7 @@ discard block |
||
| 428 | 428 | foreach ($children as $k => $child) { |
| 429 | 429 | $grand_children = self::where('parent_id', $child['id'])->get(); |
| 430 | 430 | |
| 431 | - $grand_children->each(function ($item) { |
|
| 431 | + $grand_children->each(function($item) { |
|
| 432 | 432 | $item->route = str_replace('/', '-', $item->href); |
| 433 | 433 | })->toArray(); |
| 434 | 434 | |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | */ |
| 451 | 451 | private static function filterPermission($user, $links) |
| 452 | 452 | { |
| 453 | - return $links->filter(function (Navlink $item) use ($user) { |
|
| 453 | + return $links->filter(function(Navlink $item) use ($user) { |
|
| 454 | 454 | $permission = str_replace('/', '.', $item->href); |
| 455 | 455 | |
| 456 | 456 | return $user->hasAccess($permission.'.view'); |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | - * @return mixed |
|
| 68 | + * @return \Illuminate\Http\Response |
|
| 69 | 69 | * |
| 70 | 70 | * @author Bertrand Kintanar <[email protected]> |
| 71 | 71 | */ |
@@ -194,7 +194,7 @@ |
||
| 194 | 194 | * |
| 195 | 195 | * @param Employee $employee |
| 196 | 196 | * |
| 197 | - * @return \League\Fractal\Resource\Collection |
|
| 197 | + * @return \League\Fractal\Resource\Item |
|
| 198 | 198 | * |
| 199 | 199 | * @author Bertrand Kintanar <[email protected]> |
| 200 | 200 | */ |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | /** |
| 64 | 64 | * Include Role. |
| 65 | 65 | * |
| 66 | - * @param Role $user |
|
| 66 | + * @param User $user |
|
| 67 | 67 | * |
| 68 | 68 | * @return \League\Fractal\Resource\Collection |
| 69 | 69 | * |
@@ -353,7 +353,7 @@ |
||
| 353 | 353 | |
| 354 | 354 | $custom_field_sections = $this->custom_field_section->with('customFields.options')->whereScreenId($screen_id)->get(); |
| 355 | 355 | |
| 356 | - $custom_field_sections->each(function ($custom_field_section) { |
|
| 356 | + $custom_field_sections->each(function($custom_field_section) { |
|
| 357 | 357 | $custom_fields = $custom_field_section->customFields; |
| 358 | 358 | |
| 359 | 359 | $custom_field_section->fields = array_chunk($custom_fields->toArray(), 2); |
@@ -213,7 +213,7 @@ |
||
| 213 | 213 | /** |
| 214 | 214 | * Setup table for custom field section. |
| 215 | 215 | * |
| 216 | - * @param $custom_field_sections |
|
| 216 | + * @param \Illuminate\Pagination\LengthAwarePaginator $custom_field_sections |
|
| 217 | 217 | * |
| 218 | 218 | * @return array |
| 219 | 219 | * |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public function map(Router $router) |
| 40 | 40 | { |
| 41 | - $router->group(['namespace' => $this->namespace], function ($router) { |
|
| 41 | + $router->group(['namespace' => $this->namespace], function($router) { |
|
| 42 | 42 | require app_path('Http/routes.php'); |
| 43 | 43 | }); |
| 44 | 44 | } |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | - * @return mixed |
|
| 68 | + * @return \Illuminate\Http\Response |
|
| 69 | 69 | * |
| 70 | 70 | * @author Bertrand Kintanar <[email protected]> |
| 71 | 71 | */ |