pheature-flags/mezzio-toggle

View on GitHub
src/ToggleConfigProvider.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method __invoke has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function __invoke(): array
    {
        $pheatureFlagsConfig = $this->pheatureFlagsConfig();

        /** @var array<array<string, string>> $strategyTypes */
Severity: Minor
Found in src/ToggleConfigProvider.php - About 1 hr to fix

    Method pheatureFlagsConfig has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function pheatureFlagsConfig(): array
        {
            return [
                'api_enabled' => false,
                'api_prefix' => '',
    Severity: Minor
    Found in src/ToggleConfigProvider.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status