maestroprog/di-container

View on GitHub
src/ServicesExtractor.php

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 3 of 3 total issues

Method argumentInfoFrom has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

private function argumentInfoFrom(\ReflectionMethod $method): Argument
{
static $modifiers = [
'internal',
'decorates',
Severity: Minor
Found in src/ServicesExtractor.php - About 1 hr to fix

    Function argumentInfoFrom has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
    Open

    private function argumentInfoFrom(\ReflectionMethod $method): Argument
    {
    static $modifiers = [
    'internal',
    'decorates',
    Severity: Minor
    Found in src/ServicesExtractor.php - About 55 mins to fix

    Function extractServicesId has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
    Open

    public function extractServicesId($container): array
    {
    $list = [];
     
    $reflection = new \ReflectionClass($container);
    Severity: Minor
    Found in src/ServicesExtractor.php - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status