| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php namespace Arcanesoft\Auth\Seeds; |
||
| 25 | public function seed(array $seeds) |
||
| 26 | { |
||
| 27 | foreach ($seeds as $seed) { |
||
| 28 | /** @var \Arcanesoft\Auth\Models\PermissionsGroup $group */ |
||
| 29 | $group = PermissionsGroup::create($seed['group']); |
||
|
|
|||
| 30 | $permissions = array_map(function ($permission) { |
||
| 31 | return new Permission($permission); |
||
| 32 | }, $seed['permissions']); |
||
| 33 | |||
| 34 | $group->permissions()->saveMany($permissions); |
||
| 35 | } |
||
| 36 | } |
||
| 37 | } |
||
| 38 |
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.