jaroslavtyc/drd-plus-properties-by-levels

View on GitHub
DrdPlus/PropertiesByLevels/FirstLevelProperties.php

Summary

Maintainability
C
1 day
Test Coverage

FirstLevelProperties has 28 functions (exceeds 20 allowed). Consider refactoring.
Open

class FirstLevelProperties extends StrictObject
{
    const INITIAL_PROPERTY_INCREASE_LIMIT = 3;

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

    File FirstLevelProperties.php has 256 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php declare(strict_types=1);
    
    namespace DrdPlus\PropertiesByLevels;
    
    use DrdPlus\Codes\GenderCode;
    Severity: Minor
    Found in DrdPlus/PropertiesByLevels/FirstLevelProperties.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/FirstLevelProperties.php - About 1 hr to fix

        Method calculateFirstLevelBaseProperty has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                PropertyCode $propertyCode,
                Race $race,
                GenderCode $genderCode,
                Tables $tables,
                PropertiesByFate $propertiesByFate,
        Severity: Minor
        Found in DrdPlus/PropertiesByLevels/FirstLevelProperties.php - About 45 mins to fix

          Method setUpBaseProperties has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  Race $race,
                  GenderCode $genderCode,
                  PropertiesByFate $propertiesByFate,
                  ProfessionLevels $professionLevels,
                  Tables $tables
          Severity: Minor
          Found in DrdPlus/PropertiesByLevels/FirstLevelProperties.php - About 35 mins to fix

            Method createFirstLevelSize has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                    Race $race,
                    GenderCode $genderCode,
                    Tables $tables,
                    PropertiesByFate $propertiesByFate,
                    ProfessionLevels $professionLevels
            Severity: Minor
            Found in DrdPlus/PropertiesByLevels/FirstLevelProperties.php - About 35 mins to fix

              There are no issues that match your filters.

              Category
              Status