src/Traits/Cacheable.php
Showing 2 of 2 total issues
Function forgetCache
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
public function forgetCache() { if ($this->getCacheLifetime()) { // Flush cache tags if (method_exists($this->getContainer('cache')->getStore(), 'tags')) {
- Read upRead up
- Create a ticketCreate a ticket
Avoid assigning values to variables in if clauses and the like (line '211', column '13'). Open
Open
protected function cacheCallback($class, $method, $args, Closure $closure) { $repositoryId = $this->getRepositoryId(); $lifetime = $this->getCacheLifetime(); $hash = $this->generateCacheHash($args);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks