File ModifiersTable.php
has 303 lines of code (exceeds 250 allowed). Consider refactoring.
<?php
declare(strict_types = 1);
namespace DrdPlus\Theurgist\Spells;
ModifiersTable
has 27 functions (exceeds 20 allowed). Consider refactoring.
class ModifiersTable extends AbstractFileTable
{
use ToFlatArrayTrait;
/**
Method getExpectedDataHeaderNamesToTypes
has 26 lines of code (exceeds 25 allowed). Consider refactoring.
protected function getExpectedDataHeaderNamesToTypes(): array
{
return [
self::REALM => self::POSITIVE_INTEGER,
self::REALMS_AFFECTION => self::ARRAY,
The class ModifiersTable has a coupling between objects value of 28. Consider to reduce the number of dependencies under 13.
class ModifiersTable extends AbstractFileTable
{
use ToFlatArrayTrait;
/**
Avoid using static access to class '\DrdPlus\Codes\Theurgist\ModifierCode' in method 'getChildModifiers'.
return ModifierCode::getIt($modifierValue);
Avoid using static access to class '\DrdPlus\Codes\Theurgist\FormulaCode' in method 'getFormulaCodes'.
return FormulaCode::getIt($formulaValue);
Avoid using static access to class '\DrdPlus\Codes\Theurgist\FormCode' in method 'getForms'.
return FormCode::getIt($formValue);
Avoid using static access to class '\DrdPlus\Codes\Theurgist\SpellTraitCode' in method 'getSpellTraitCodes'.
return SpellTraitCode::getIt($spellTraitValue);
Avoid using static access to class '\DrdPlus\Codes\Theurgist\ProfileCode' in method 'getProfiles'.
return ProfileCode::getIt($profileValue);
Avoid using static access to class '\DrdPlus\Codes\Theurgist\ModifierCode' in method 'getParentModifierCodes'.
return ModifierCode::getIt($modifierValue);
Avoid excessively long variable names like $numberOfWaypointsValues. Keep variable name length under 20.
$numberOfWaypointsValues = $this->getValue($modifierCode, self::NUMBER_OF_WAYPOINTS);
Avoid excessively long variable names like $numberOfSituationsValue. Keep variable name length under 20.
$numberOfSituationsValue = $this->getValue($modifierCode, self::NUMBER_OF_SITUATIONS);
There are no issues that match your filters.