| Conditions | 4 |
| Paths | 5 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Arcanesoft\Auth\Seeds; |
||
| 45 | protected function prepareRoles(array $roles) |
||
| 46 | { |
||
| 47 | $now = Carbon::now(); |
||
| 48 | |||
| 49 | foreach ($roles as $key => $role) { |
||
| 50 | $roles[$key]['slug'] = str_slug($role['name']); |
||
| 51 | $roles[$key]['is_active'] = isset($role['is_active']) ? $role['is_active'] : true; |
||
| 52 | $roles[$key]['is_locked'] = isset($role['is_locked']) ? $role['is_locked'] : true; |
||
| 53 | $roles[$key]['created_at'] = $now; |
||
| 54 | $roles[$key]['updated_at'] = $now; |
||
| 55 | } |
||
| 56 | |||
| 57 | return $roles; |
||
| 58 | } |
||
| 59 | |||
| 72 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.