for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nip\Records\Mapping\MappingManager;
use DateInterval;
use Nip\Cache\Stores\Repository;
use Nip\Container\Container;
/**
* Trait CanCache
* @package Nip\Records\Mapping\MappingManager
*/
trait CanCache
{
use \Nip\Cache\Cacheable\CanCache;
* @return mixed
protected function generateCacheData()
return $this->repository->generateCache();
}
protected function initFromCache()
$data = $this->getDataFromCache();
$this->repository->initFromCache($data);
* @inheritDoc
protected function dataCacheKey($key= null)
$key
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function dataCacheKey(/** @scrutinizer ignore-unused */ $key= null)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return 'orm.mapping.data';
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.