| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace App\Modules\Users\Repositories; |
||
| 26 | public function detachRoles($role) |
||
| 27 | { |
||
| 28 | $role = ! is_int($role) ? $role : $this->find($role); |
||
| 29 | $role->roles()->detach(); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Attach role ids to the given role. |
||
| 34 | * |
||
| 35 | * @param mixed $role |
||
| 36 | * @param array $roleIds |
||
| 37 | * @return object |
||
| 38 | */ |
||
| 39 | public function attachRoles($role, $roleIds) |
||
| 58 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.