Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | 1 | public function delete(RoleModel $role) |
|
29 | { |
||
30 | 1 | $this->cache->forget(RoleCache::class . '@count'); |
|
31 | 1 | $this->cache->forget(RoleCache::class . '@getById:' . $role->id()); |
|
32 | 1 | $this->cache->forget(RoleCache::class . '@getByDataProviderId:' . $role->dataProviderId()); |
|
33 | 1 | $this->cache->forget(RoleCache::class . '@allThroughGroup:' . $role->groupId()); |
|
34 | 1 | $this->cache->forget(RoleCache::class . '@allThroughPosition:' . $role->positionId()); |
|
35 | 1 | } |
|
49 | } |