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
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(
Method Malus_is_not_increased_on_new_heal_by_worse_roll
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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));
Method I_can_use_it
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function I_can_use_it(): Wound
{
$wound = $this->createWound(
$health = $this->createHealth(),
new WoundSize($woundSizeValue = 3),
Method createForRegeneration
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
RaceCode $raceCode,
SubRaceCode $subRaceCode,
Toughness $toughness,
ActivityAffectingHealingCode $activityAffectingHealingCode,
ConditionsAffectingHealingCode $conditionsAffectingHealingCode,