PHPSocialNetwork/phpfastcache

View on GitHub
lib/Phpfastcache/Cluster/Drivers/FullReplication/Driver.php

Summary

Maintainability
B
4 hrs
Test Coverage

Showing 2 of 2 total issues

Function getItem has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

public function getItem(string $key): ExtendedCacheItemInterface
{
/** @var ExtendedCacheItemPoolInterface[] $poolsToResync */
$poolsToResync = [];
/** @var ?ExtendedCacheItemInterface $item */
Severity: Minor
Found in lib/Phpfastcache/Cluster/Drivers/FullReplication/Driver.php - About 2 hrs to fix

Method getItem has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

public function getItem(string $key): ExtendedCacheItemInterface
{
/** @var ExtendedCacheItemPoolInterface[] $poolsToResync */
$poolsToResync = [];
/** @var ?ExtendedCacheItemInterface $item */
Severity: Minor
Found in lib/Phpfastcache/Cluster/Drivers/FullReplication/Driver.php - About 1 hr to fix
    Category
    Status