Sorry, data for that comparison is no longer available.

laravel/framework

View on GitHub
src/Illuminate/Cache/DatabaseStore.php

Summary

Maintainability
B
4 hrs
Test Coverage

DatabaseStore has 25 functions (exceeds 20 allowed). Consider refactoring.
Open

class DatabaseStore implements LockProvider, Store
{
    use InteractsWithTime;

    /**
Severity: Minor
Found in src/Illuminate/Cache/DatabaseStore.php - About 2 hrs to fix

    Method __construct has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public function __construct(ConnectionInterface $connection,
                                                        $table,
                                                        $prefix = '',
                                                        $lockTable = 'cache_locks',
                                                        $lockLottery = [2, 100],
    Severity: Minor
    Found in src/Illuminate/Cache/DatabaseStore.php - About 45 mins to fix

      Avoid too many return statements within this method.
      Open

              return Arr::map($results, function ($value, $key) use ($values) {
                  if ($cache = $values->firstWhere('key', $this->prefix.$key)) {
                      return $this->unserialize($cache->value);
                  }
      
      
      Severity: Major
      Found in src/Illuminate/Cache/DatabaseStore.php - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status