Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | 4 | public function update(RoleModel $oldRole, RoleModel $newRole) |
|
38 | { |
||
39 | 4 | $this->cache->forget(RoleCache::class . '@count'); |
|
40 | 4 | $this->cache->forget(RoleCache::class . '@getById:' . $newRole->id()); |
|
41 | 4 | $this->cache->forget(RoleCache::class . '@getByDataProviderId:' . $oldRole->dataProviderId()); |
|
42 | 4 | $this->cache->forget(RoleCache::class . '@getByDataProviderId:' . $newRole->dataProviderId()); |
|
43 | 4 | $this->cache->forget(RoleCache::class . '@allThroughPosition:' . $oldRole->positionId()); |
|
44 | 4 | $this->cache->forget(RoleCache::class . '@allThroughPosition:' . $newRole->positionId()); |
|
45 | 4 | $this->cache->forget(RoleCache::class . '@allThroughGroup:' . $oldRole->groupId()); |
|
46 | 4 | $this->cache->forget(RoleCache::class . '@allThroughGroup:' . $newRole->groupId()); |
|
47 | 4 | } |
|
49 | } |