| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 75% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | trait CanCache |
||
| 14 | { |
||
| 15 | use \Nip\Cache\Cacheable\CanCache; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return mixed |
||
| 19 | */ |
||
| 20 | protected function generateCacheData() |
||
| 21 | { |
||
| 22 | return $this->repository->generateCache(); |
||
| 23 | } |
||
| 24 | |||
| 25 | 1 | protected function initFromCache() |
|
| 29 | 1 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritDoc |
||
| 33 | */ |
||
| 34 | 1 | protected function dataCacheKey($key= null) |
|
| 37 | } |
||
| 38 | } |
||
| 39 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.