jaroslavtyc/drd-plus-health

View on GitHub

Showing 24 of 669 total issues

Method I_can_not_heal_already_treated_serious_wound has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function I_can_not_heal_already_treated_serious_wound(): void
    {
        $this->expectException(\DrdPlus\Health\Exceptions\ExpectedFreshWoundToHeal::class);
        $health = $this->createHealthToTest($woundBoundary = $this->createWoundBoundary(5));
        $seriousWound = $health->addWound(
Severity: Minor
Found in tests/Health/HealthTest.php - About 1 hr to fix

    Method Malus_is_not_increased_on_new_heal_by_worse_roll has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function Malus_is_not_increased_on_new_heal_by_worse_roll(): void
        {
            $health = $this->createHealthToTest($woundBoundary = $this->createWoundBoundary(5));
            self::assertSame(0, $health->getSignificantMalusFromPains($woundBoundary));
    
    
    Severity: Minor
    Found in tests/Health/HealthTest.php - About 1 hr to fix

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

          public function I_can_use_it(): Wound
          {
              $wound = $this->createWound(
                  $health = $this->createHealth(),
                  new WoundSize($woundSizeValue = 3),
      Severity: Minor
      Found in tests/Health/WoundTest.php - About 1 hr to fix

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

                RaceCode $raceCode,
                SubRaceCode $subRaceCode,
                Toughness $toughness,
                ActivityAffectingHealingCode $activityAffectingHealingCode,
                ConditionsAffectingHealingCode $conditionsAffectingHealingCode,
        Severity: Major
        Found in Health/HealingPower.php - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language