Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
35 | 1 | public function update(PositionModel $oldPosition, PositionModel $newPosition) |
|
36 | { |
||
37 | 1 | $this->cache->forget(PositionCache::class . '@count'); |
|
38 | 1 | $this->cache->forget(PositionCache::class . '@getById:' . $newPosition->id()); |
|
39 | 1 | $this->cache->forget(PositionCache::class . '@getByDataProviderId:' . $oldPosition->dataProviderId()); |
|
40 | 1 | $this->cache->forget(PositionCache::class . '@getByDataProviderId:' . $newPosition->dataProviderId()); |
|
41 | 1 | } |
|
43 | } |