jaroslavtyc/drd-plus-properties-by-levels

View on GitHub
DrdPlus/PropertiesByLevels/PropertiesByLevels.php

Summary

Maintainability
B
6 hrs
Test Coverage

PropertiesByLevels has 29 functions (exceeds 20 allowed). Consider refactoring.
Open

class PropertiesByLevels extends StrictObject implements BaseProperties
{

    /** @var FirstLevelProperties */
    private $firstLevelProperties;
Severity: Minor
Found in DrdPlus/PropertiesByLevels/PropertiesByLevels.php - About 3 hrs to fix

    Method __construct has 60 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function __construct(
            Race $race,
            GenderCode $genderCode,
            PropertiesByFate $propertiesByFate,
            ProfessionLevels $professionLevels,
    Severity: Major
    Found in DrdPlus/PropertiesByLevels/PropertiesByLevels.php - About 2 hrs to fix

      Method __construct has 8 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              Race $race,
              GenderCode $genderCode,
              PropertiesByFate $propertiesByFate,
              ProfessionLevels $professionLevels,
              BodyWeightInKg $weightInKgAdjustment,
      Severity: Major
      Found in DrdPlus/PropertiesByLevels/PropertiesByLevels.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status