lib/Phpfastcache/Drivers/Sqlite/Driver.php
Showing 4 of 4 total issues
Method getDbIndex
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getDbIndex(string $keyword) { if (!isset($this->indexing)) { $tableCreated = false; if (!file_exists($this->sqliteDir . '/indexing')) {
Function getDbIndex
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
Open
public function getDbIndex(string $keyword) { if (!isset($this->indexing)) { $tableCreated = false; if (!file_exists($this->sqliteDir . '/indexing')) {
- Read upRead up
Method driverRead
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function driverRead(ExtendedCacheItemInterface $item): ?array { try { $stm = $this->getDb($item->getEncodedKey()) ->prepare("SELECT * FROM `caching` WHERE `keyword`=:keyword LIMIT 1");
Function getDb
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
public function getDb(string $keyword, bool $reset = false): PDO { /** * Default is phpfastcache */
- Read upRead up