PHPSocialNetwork/phpfastcache

View on GitHub
lib/Phpfastcache/Config/ConfigurationOption.php

Summary

Maintainability
A
3 hrs
Test Coverage

Showing 2 of 2 total issues

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

class ConfigurationOption extends AbstractConfigurationOption implements ConfigurationOptionInterface
{
protected bool $itemDetailedDate = false;
 
protected bool $autoTmpFallback = false;
Severity: Minor
Found in lib/Phpfastcache/Config/ConfigurationOption.php - About 2 hrs to fix

    Function __construct has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    public function __construct(array $parameters = [])
    {
    foreach ($parameters as $configKey => $configVal) {
    try {
    if (\property_exists($this, $configKey)) {
    Severity: Minor
    Found in lib/Phpfastcache/Config/ConfigurationOption.php - About 25 mins to fix

    There are no issues that match your filters.

    Category
    Status