src/Illuminate/Cache/DatabaseStore.php
DatabaseStore
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class DatabaseStore implements LockProvider, Store
{
use InteractsWithTime;
/**
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function __construct(ConnectionInterface $connection,
$table,
$prefix = '',
$lockTable = 'cache_locks',
$lockLottery = [2, 100],
Avoid too many return
statements within this method. Open
Open
return Arr::map($results, function ($value, $key) use ($values) {
if ($cache = $values->firstWhere('key', $this->prefix.$key)) {
return $this->unserialize($cache->value);
}