jaroslavtyc/drd-plus-tables

View on GitHub
tests/Tables/Theurgist/Spells/FormulasTableTest.php

Summary

Maintainability
F
6 days
Test Coverage

File FormulasTableTest.php has 311 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php declare(strict_types = 1);

namespace DrdPlus\Tests\Tables\Theurgist\Spells;

use DrdPlus\Tables\Measurements\Time\Time;
Severity: Minor
Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php - About 3 hrs to fix

    Method I_can_get_modifiers_for_formula has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function I_can_get_modifiers_for_formula(): void
        {
            $formulasTable = new FormulasTable(Tables::getIt());
            foreach (FormulaCode::getPossibleValues() as $formulaValue) {
                $modifierCodes = $formulasTable->getModifierCodes(FormulaCode::getIt($formulaValue));
    Severity: Minor
    Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php - About 1 hr to fix

      Method I_can_get_profiles_for_formula has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function I_can_get_profiles_for_formula(): void
          {
              $formulasTable = new FormulasTable(Tables::getIt());
              foreach (FormulaCode::getPossibleValues() as $formulaValue) {
                  $profileCodes = $formulasTable->getProfileCodes(FormulaCode::getIt($formulaValue));
      Severity: Minor
      Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php - About 1 hr to fix

        Function getModifierValuesFromModifiersTable has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
        Open

            private function getModifierValuesFromModifiersTable(string $formulaValue): array
            {
                $modifierValues = [];
                foreach (ModifierCode::getPossibleValues() as $modifierValue) {
                    $formulaCodes = $this->modifiersTable->getFormulaCodes(ModifierCode::getIt($modifierValue));
        Severity: Minor
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php - About 35 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function getProfilesByProfileTable has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
        Open

            private function getProfilesByProfileTable(string $formulaValue): array
            {
                $profilesTable = new ProfilesTable();
                $matchingProfiles = [];
                foreach (ProfileCode::getPossibleValues() as $profileValue) {
        Severity: Minor
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php - About 35 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        The class FormulasTableTest has a coupling between objects value of 14. Consider to reduce the number of dependencies under 13.
        Open

        class FormulasTableTest extends AbstractTheurgistTableTest
        {
        
            private \DrdPlus\Tables\Theurgist\Spells\ModifiersTable $modifiersTable;
        
        

        CouplingBetweenObjects

        Since: 1.1.0

        A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability

        Example

        class Foo {
            /**
             * @var \foo\bar\X
             */
            private $x = null;
        
            /**
             * @var \foo\bar\Y
             */
            private $y = null;
        
            /**
             * @var \foo\bar\Z
             */
            private $z = null;
        
            public function setFoo(\Foo $foo) {}
            public function setBar(\Bar $bar) {}
            public function setBaz(\Baz $baz) {}
        
            /**
             * @return \SplObjectStorage
             * @throws \OutOfRangeException
             * @throws \InvalidArgumentException
             * @throws \ErrorException
             */
            public function process(\Iterator $it) {}
        
            // ...
        }

        Source https://phpmd.org/rules/design.html#couplingbetweenobjects

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\FormCode' in method 'getExpectedFormValues'.
        Open

                return array_diff(FormCode::getPossibleValues(), $excludedFormValues);

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Tables\Tables' in method 'I_can_get_spell_trait_codes'.
        Open

                $formulasTable = new FormulasTable(Tables::getIt());

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\SpellTraitCode' in method 'I_can_get_spell_trait_codes'.
        Open

                        $expectedSpellTraits[] = new SpellTrait(SpellTraitCode::getIt($expectedTraitValue), Tables::getIt());

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\FormulaCode' in method 'I_can_get_casting_rounds'.
        Open

                foreach (FormulaCode::getPossibleValues() as $formulaValue) {

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\FormulaCode' in method 'I_can_get_spell_trait_codes'.
        Open

                foreach (FormulaCode::getPossibleValues() as $formulaValue) {

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\FormulaCode' in method 'I_can_get_modifiers_for_formula'.
        Open

                    $modifierCodes = $formulasTable->getModifierCodes(FormulaCode::getIt($formulaValue));

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\ModifierCode' in method 'getExpectedModifierValues'.
        Open

                $expectedModifierValues = array_diff(ModifierCode::getPossibleValues(), self::$impossibleModifiers[$formulaValue]);

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Tables\Tables' in method 'I_can_not_get_profiles_to_unknown_formula'.
        Open

                (new FormulasTable(Tables::getIt()))->getProfileCodes($this->createFormulaCode('Charge!'));

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\FormulaCode' in method 'I_can_get_modifiers_for_formula'.
        Open

                foreach (FormulaCode::getPossibleValues() as $formulaValue) {

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\FormulaCode' in method 'I_can_get_profiles_for_formula'.
        Open

                    $profileCodes = $formulasTable->getProfileCodes(FormulaCode::getIt($formulaValue));

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\ProfileCode' in method 'getProfilesByProfileTable'.
        Open

                    foreach ($profilesTable->getFormulaCodes(ProfileCode::getIt($profileValue)) as $formulaCode) {

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\ModifierCode' in method 'getModifierValuesFromModifiersTable'.
        Open

                foreach (ModifierCode::getPossibleValues() as $modifierValue) {

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\FormulaCode' in method 'I_can_get_profiles_for_formula'.
        Open

                foreach (FormulaCode::getPossibleValues() as $formulaValue) {

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\ProfileCode' in method 'getMarsProfiles'.
        Open

                    ProfileCode::getPossibleValues(),

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Tables\Tables' in method 'I_can_get_spell_trait_codes'.
        Open

                        $expectedSpellTraits[] = new SpellTrait(SpellTraitCode::getIt($expectedTraitValue), Tables::getIt());

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Tables\Tables' in method 'setUp'.
        Open

                $this->modifiersTable = new ModifiersTable(Tables::getIt());

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\ProfileCode' in method 'getExpectedProfilesFor'.
        Open

                    ProfileCode::getPossibleValues(),

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\FormulaCode' in method 'I_can_get_forms'.
        Open

                    $forms = $formulasTable->getFormCodes(FormulaCode::getIt($formulaValue));

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\ModifierCode' in method 'getModifierValuesFromModifiersTable'.
        Open

                    $formulaCodes = $this->modifiersTable->getFormulaCodes(ModifierCode::getIt($modifierValue));

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Tables\Tables' in method 'I_can_not_get_modifiers_to_unknown_formula'.
        Open

                (new FormulasTable(Tables::getIt()))

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Tables\Tables' in method 'I_can_get_casting_rounds'.
        Open

                $formulasTable = new FormulasTable(Tables::getIt());

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\FormulaCode' in method 'I_can_get_casting_rounds'.
        Open

                    $castingRounds = $formulasTable->getCastingRounds(FormulaCode::getIt($formulaValue));

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Tables\Tables' in method 'I_can_get_modifiers_for_formula'.
        Open

                $formulasTable = new FormulasTable(Tables::getIt());

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Tables\Tables' in method 'I_can_get_forms'.
        Open

                $formulasTable = new FormulasTable(Tables::getIt());

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\ProfileCode' in method 'getProfilesByProfileTable'.
        Open

                foreach (ProfileCode::getPossibleValues() as $profileValue) {

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\FormulaCode' in method 'I_can_get_spell_trait_codes'.
        Open

                    $spellTraits = $formulasTable->getSpellTraits(FormulaCode::getIt($formulaValue));

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Tables\Tables' in method 'I_can_get_profiles_for_formula'.
        Open

                $formulasTable = new FormulasTable(Tables::getIt());

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Tables\Tables' in method 'I_can_get_casting_rounds'.
        Open

                    self::assertEquals(new CastingRounds([1, 0], Tables::getIt()), $castingRounds);

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\FormulaCode' in method 'I_can_get_forms'.
        Open

                foreach (FormulaCode::getPossibleValues() as $formulaValue) {

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\SpellTraitCode' in method 'getExpectedSpellTraitCodeValues'.
        Open

                return array_diff(SpellTraitCode::getPossibleValues(), $excludedTraitValues);

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Avoid using static access to class '\DrdPlus\Codes\Theurgist\ProfileCode' in method 'getModifiersFromProfilesTable'.
        Open

                    foreach ($profilesTable->getModifierCodes(ProfileCode::getIt($matchingProfileValue)) as $modifierCode) {

        StaticAccess

        Since: 1.4.0

        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

        Example

        class Foo
        {
            public function bar()
            {
                Bar::baz();
            }
        }

        Source https://phpmd.org/rules/cleancode.html#staticaccess

        Similar blocks of code found in 2 locations. Consider refactoring.
        Open

            public function I_can_get_forms(): void
            {
                $formulasTable = new FormulasTable(Tables::getIt());
                foreach (FormulaCode::getPossibleValues() as $formulaValue) {
                    $forms = $formulasTable->getFormCodes(FormulaCode::getIt($formulaValue));
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 1 other location - About 4 hrs to fix
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 42..58

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 167.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 17 locations. Consider refactoring.
        Open

                FormulaCode::HIT => [SpellTraitCode::AFFECTING, SpellTraitCode::INVISIBLE, SpellTraitCode::SILENT, SpellTraitCode::ODORLESS, SpellTraitCode::CYCLIC, SpellTraitCode::MEMORY, SpellTraitCode::DEFORMATION, SpellTraitCode::UNIDIRECTIONAL, SpellTraitCode::BIDIRECTIONAL, SpellTraitCode::INACRID, SpellTraitCode::EVERY_SENSE, SpellTraitCode::SITUATIONAL, SpellTraitCode::SHAPESHIFT, SpellTraitCode::STATE_CHANGE, SpellTraitCode::NATURE_CHANGE, SpellTraitCode::NO_SMOKE, SpellTraitCode::TRANSPARENCY, SpellTraitCode::MULTIPLE_ENTRY, SpellTraitCode::OMNIPRESENT, SpellTraitCode::ACTIVE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 16 other locations - About 2 hrs to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 150..150
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 151..151
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 153..153
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 154..154
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 161..161
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 163..163
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 164..164
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 165..165
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 166..166
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 168..168
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 170..170
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 172..172
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 173..173
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 174..174
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 176..176
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 178..178

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 129.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 17 locations. Consider refactoring.
        Open

                FormulaCode::GREAT_MASSACRE => [SpellTraitCode::AFFECTING, SpellTraitCode::INVISIBLE, SpellTraitCode::SILENT, SpellTraitCode::ODORLESS, SpellTraitCode::CYCLIC, SpellTraitCode::MEMORY, SpellTraitCode::DEFORMATION, SpellTraitCode::UNIDIRECTIONAL, SpellTraitCode::BIDIRECTIONAL, SpellTraitCode::INACRID, SpellTraitCode::EVERY_SENSE, SpellTraitCode::SITUATIONAL, SpellTraitCode::SHAPESHIFT, SpellTraitCode::STATE_CHANGE, SpellTraitCode::NATURE_CHANGE, SpellTraitCode::NO_SMOKE, SpellTraitCode::TRANSPARENCY, SpellTraitCode::MULTIPLE_ENTRY, SpellTraitCode::OMNIPRESENT, SpellTraitCode::ACTIVE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 16 other locations - About 2 hrs to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 150..150
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 151..151
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 152..152
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 154..154
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 161..161
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 163..163
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 164..164
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 165..165
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 166..166
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 168..168
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 170..170
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 172..172
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 173..173
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 174..174
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 176..176
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 178..178

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 129.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 17 locations. Consider refactoring.
        Open

                FormulaCode::TSUNAMI_FROM_CLAY_AND_STONES => [SpellTraitCode::AFFECTING, SpellTraitCode::INVISIBLE, SpellTraitCode::SILENT, SpellTraitCode::ODORLESS, SpellTraitCode::CYCLIC, SpellTraitCode::MEMORY, SpellTraitCode::DEFORMATION, SpellTraitCode::UNIDIRECTIONAL, SpellTraitCode::BIDIRECTIONAL, SpellTraitCode::INACRID, SpellTraitCode::EVERY_SENSE, SpellTraitCode::SITUATIONAL, SpellTraitCode::SHAPESHIFT, SpellTraitCode::STATE_CHANGE, SpellTraitCode::NATURE_CHANGE, SpellTraitCode::NO_SMOKE, SpellTraitCode::TRANSPARENCY, SpellTraitCode::MULTIPLE_ENTRY, SpellTraitCode::OMNIPRESENT, SpellTraitCode::ACTIVE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 16 other locations - About 2 hrs to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 150..150
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 152..152
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 153..153
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 154..154
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 161..161
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 163..163
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 164..164
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 165..165
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 166..166
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 168..168
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 170..170
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 172..172
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 173..173
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 174..174
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 176..176
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 178..178

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 129.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 17 locations. Consider refactoring.
        Open

                FormulaCode::FLOW_OF_TIME => [SpellTraitCode::AFFECTING, SpellTraitCode::INVISIBLE, SpellTraitCode::SILENT, SpellTraitCode::ODORLESS, SpellTraitCode::CYCLIC, SpellTraitCode::MEMORY, SpellTraitCode::DEFORMATION, SpellTraitCode::UNIDIRECTIONAL, SpellTraitCode::BIDIRECTIONAL, SpellTraitCode::INACRID, SpellTraitCode::EVERY_SENSE, SpellTraitCode::SITUATIONAL, SpellTraitCode::SHAPESHIFT, SpellTraitCode::STATE_CHANGE, SpellTraitCode::NATURE_CHANGE, SpellTraitCode::NO_SMOKE, SpellTraitCode::TRANSPARENCY, SpellTraitCode::MULTIPLE_ENTRY, SpellTraitCode::OMNIPRESENT, SpellTraitCode::ACTIVE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 16 other locations - About 2 hrs to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 151..151
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 152..152
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 153..153
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 154..154
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 161..161
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 163..163
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 164..164
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 165..165
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 166..166
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 168..168
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 170..170
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 172..172
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 173..173
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 174..174
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 176..176
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 178..178

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 129.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 17 locations. Consider refactoring.
        Open

                FormulaCode::DISCHARGE => [SpellTraitCode::AFFECTING, SpellTraitCode::INVISIBLE, SpellTraitCode::SILENT, SpellTraitCode::ODORLESS, SpellTraitCode::CYCLIC, SpellTraitCode::MEMORY, SpellTraitCode::DEFORMATION, SpellTraitCode::UNIDIRECTIONAL, SpellTraitCode::BIDIRECTIONAL, SpellTraitCode::INACRID, SpellTraitCode::EVERY_SENSE, SpellTraitCode::SITUATIONAL, SpellTraitCode::SHAPESHIFT, SpellTraitCode::STATE_CHANGE, SpellTraitCode::NATURE_CHANGE, SpellTraitCode::NO_SMOKE, SpellTraitCode::TRANSPARENCY, SpellTraitCode::MULTIPLE_ENTRY, SpellTraitCode::OMNIPRESENT, SpellTraitCode::ACTIVE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 16 other locations - About 2 hrs to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 150..150
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 151..151
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 152..152
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 153..153
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 161..161
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 163..163
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 164..164
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 165..165
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 166..166
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 168..168
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 170..170
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 172..172
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 173..173
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 174..174
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 176..176
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 178..178

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 129.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 10 locations. Consider refactoring.
        Open

                FormulaCode::SMOKE => [SpellTraitCode::AFFECTING, SpellTraitCode::INVISIBLE, SpellTraitCode::SILENT, SpellTraitCode::ODORLESS, SpellTraitCode::CYCLIC, SpellTraitCode::MEMORY, SpellTraitCode::DEFORMATION, SpellTraitCode::UNIDIRECTIONAL, SpellTraitCode::BIDIRECTIONAL, SpellTraitCode::EVERY_SENSE, SpellTraitCode::SITUATIONAL, SpellTraitCode::SHAPESHIFT, SpellTraitCode::STATE_CHANGE, SpellTraitCode::NATURE_CHANGE, SpellTraitCode::NO_SMOKE, SpellTraitCode::TRANSPARENCY, SpellTraitCode::MULTIPLE_ENTRY, SpellTraitCode::OMNIPRESENT, SpellTraitCode::ACTIVE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 9 other locations - About 2 hrs to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 143..143
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 147..147
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 149..149
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 155..155
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 162..162
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 167..167
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 171..171
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 175..175
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 177..177

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 123.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 10 locations. Consider refactoring.
        Open

                FormulaCode::BARRIER => [SpellTraitCode::AFFECTING, SpellTraitCode::INVISIBLE, SpellTraitCode::SILENT, SpellTraitCode::ODORLESS, SpellTraitCode::CYCLIC, SpellTraitCode::MEMORY, SpellTraitCode::DEFORMATION, SpellTraitCode::BIDIRECTIONAL, SpellTraitCode::INACRID, SpellTraitCode::EVERY_SENSE, SpellTraitCode::SITUATIONAL, SpellTraitCode::SHAPESHIFT, SpellTraitCode::STATE_CHANGE, SpellTraitCode::NATURE_CHANGE, SpellTraitCode::NO_SMOKE, SpellTraitCode::TRANSPARENCY, SpellTraitCode::MULTIPLE_ENTRY, SpellTraitCode::OMNIPRESENT, SpellTraitCode::ACTIVE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 9 other locations - About 2 hrs to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 144..144
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 147..147
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 149..149
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 155..155
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 162..162
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 167..167
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 171..171
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 175..175
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 177..177

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 123.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 10 locations. Consider refactoring.
        Open

                FormulaCode::FIRE => [SpellTraitCode::AFFECTING, SpellTraitCode::INVISIBLE, SpellTraitCode::SILENT, SpellTraitCode::ODORLESS, SpellTraitCode::CYCLIC, SpellTraitCode::MEMORY, SpellTraitCode::DEFORMATION, SpellTraitCode::UNIDIRECTIONAL, SpellTraitCode::BIDIRECTIONAL, SpellTraitCode::INACRID, SpellTraitCode::EVERY_SENSE, SpellTraitCode::SITUATIONAL, SpellTraitCode::SHAPESHIFT, SpellTraitCode::STATE_CHANGE, SpellTraitCode::NATURE_CHANGE, SpellTraitCode::TRANSPARENCY, SpellTraitCode::MULTIPLE_ENTRY, SpellTraitCode::OMNIPRESENT, SpellTraitCode::ACTIVE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 9 other locations - About 2 hrs to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 143..143
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 144..144
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 149..149
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 155..155
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 162..162
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 167..167
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 171..171
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 175..175
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 177..177

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 123.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 10 locations. Consider refactoring.
        Open

                FormulaCode::LOCK => [SpellTraitCode::AFFECTING, SpellTraitCode::INVISIBLE, SpellTraitCode::SILENT, SpellTraitCode::ODORLESS, SpellTraitCode::CYCLIC, SpellTraitCode::MEMORY, SpellTraitCode::DEFORMATION, SpellTraitCode::UNIDIRECTIONAL, SpellTraitCode::BIDIRECTIONAL, SpellTraitCode::INACRID, SpellTraitCode::EVERY_SENSE, SpellTraitCode::SITUATIONAL, SpellTraitCode::SHAPESHIFT, SpellTraitCode::STATE_CHANGE, SpellTraitCode::NATURE_CHANGE, SpellTraitCode::NO_SMOKE, SpellTraitCode::TRANSPARENCY, SpellTraitCode::MULTIPLE_ENTRY, SpellTraitCode::OMNIPRESENT],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 9 other locations - About 2 hrs to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 143..143
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 144..144
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 147..147
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 149..149
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 162..162
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 167..167
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 171..171
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 175..175
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 177..177

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 123.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 10 locations. Consider refactoring.
        Open

                FormulaCode::LIGHT => [SpellTraitCode::AFFECTING, SpellTraitCode::INVISIBLE, SpellTraitCode::SILENT, SpellTraitCode::ODORLESS, SpellTraitCode::CYCLIC, SpellTraitCode::MEMORY, SpellTraitCode::DEFORMATION, SpellTraitCode::UNIDIRECTIONAL, SpellTraitCode::BIDIRECTIONAL, SpellTraitCode::INACRID, SpellTraitCode::EVERY_SENSE, SpellTraitCode::SITUATIONAL, SpellTraitCode::SHAPESHIFT, SpellTraitCode::STATE_CHANGE, SpellTraitCode::NATURE_CHANGE, SpellTraitCode::NO_SMOKE, SpellTraitCode::TRANSPARENCY, SpellTraitCode::MULTIPLE_ENTRY, SpellTraitCode::ACTIVE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 9 other locations - About 2 hrs to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 143..143
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 144..144
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 147..147
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 155..155
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 162..162
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 167..167
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 171..171
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 175..175
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 177..177

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 123.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 21 locations. Consider refactoring.
        Open

                FormulaCode::ILLUSION => [SpellTraitCode::AFFECTING, SpellTraitCode::INVISIBLE, SpellTraitCode::SILENT, SpellTraitCode::ODORLESS, SpellTraitCode::CYCLIC, SpellTraitCode::MEMORY, SpellTraitCode::DEFORMATION, SpellTraitCode::UNIDIRECTIONAL, SpellTraitCode::BIDIRECTIONAL, SpellTraitCode::INACRID, SpellTraitCode::SHAPESHIFT, SpellTraitCode::STATE_CHANGE, SpellTraitCode::NATURE_CHANGE, SpellTraitCode::NO_SMOKE, SpellTraitCode::TRANSPARENCY, SpellTraitCode::MULTIPLE_ENTRY, SpellTraitCode::OMNIPRESENT, SpellTraitCode::ACTIVE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 20 other locations - About 1 hr to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 148..148
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 174..174
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 180..180
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 182..182
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 188..188
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 190..190
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 192..192
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 196..196
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 66..66
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 67..67
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 68..68
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 69..69
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 70..70
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 71..71
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 72..72
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 73..73
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 74..74
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 75..75
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 76..76
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 77..77

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 117.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 21 locations. Consider refactoring.
        Open

                FormulaCode::PORTAL => [SpellTraitCode::AFFECTING, SpellTraitCode::INVISIBLE, SpellTraitCode::SILENT, SpellTraitCode::ODORLESS, SpellTraitCode::CYCLIC, SpellTraitCode::MEMORY, SpellTraitCode::DEFORMATION, SpellTraitCode::UNIDIRECTIONAL, SpellTraitCode::BIDIRECTIONAL, SpellTraitCode::INACRID, SpellTraitCode::EVERY_SENSE, SpellTraitCode::SITUATIONAL, SpellTraitCode::SHAPESHIFT, SpellTraitCode::STATE_CHANGE, SpellTraitCode::NATURE_CHANGE, SpellTraitCode::NO_SMOKE, SpellTraitCode::OMNIPRESENT, SpellTraitCode::ACTIVE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 20 other locations - About 1 hr to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 145..145
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 174..174
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 180..180
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 182..182
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 188..188
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 190..190
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 192..192
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 196..196
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 66..66
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 67..67
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 68..68
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 69..69
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 70..70
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 71..71
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 72..72
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 73..73
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 74..74
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 75..75
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 76..76
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 77..77

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 117.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 29 locations. Consider refactoring.
        Open

                FormulaCode::METAMORPHOSIS => [SpellTraitCode::AFFECTING, SpellTraitCode::INVISIBLE, SpellTraitCode::SILENT, SpellTraitCode::ODORLESS, SpellTraitCode::CYCLIC, SpellTraitCode::MEMORY, SpellTraitCode::DEFORMATION, SpellTraitCode::UNIDIRECTIONAL, SpellTraitCode::BIDIRECTIONAL, SpellTraitCode::INACRID, SpellTraitCode::EVERY_SENSE, SpellTraitCode::SITUATIONAL, SpellTraitCode::NO_SMOKE, SpellTraitCode::TRANSPARENCY, SpellTraitCode::MULTIPLE_ENTRY, SpellTraitCode::OMNIPRESENT, SpellTraitCode::ACTIVE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 28 other locations - About 1 hr to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 206..206
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 210..210
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 169..169
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 176..176
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 177..177
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 178..178
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 179..179
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 181..181
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 183..183
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 184..184
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 185..185
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 186..186
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 187..187
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 189..189
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 191..191
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 193..193
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 194..194
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 197..197
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 200..200
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 202..202
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 58..58
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 59..59
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 60..60
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 61..61
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 62..62
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 63..63
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 64..64
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 65..65

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 111.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 29 locations. Consider refactoring.
        Open

                FormulaCode::PORTAL => [ModifierCode::COLOR, ModifierCode::EXPLOSION, ModifierCode::FILTER, ModifierCode::WATCHER, ModifierCode::THUNDER, ModifierCode::INTERACTIVE_ILLUSION, ModifierCode::HAMMER, ModifierCode::CAMOUFLAGE, ModifierCode::INVISIBILITY, ModifierCode::MOVEMENT, ModifierCode::BREACH, ModifierCode::RECEPTOR, ModifierCode::STEP_TO_FUTURE, ModifierCode::STEP_TO_PAST, ModifierCode::TRANSPOSITION, ModifierCode::RELEASE, ModifierCode::FRAGRANCE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 28 other locations - About 1 hr to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 146..146
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 210..210
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 169..169
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 176..176
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 177..177
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 178..178
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 179..179
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 181..181
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 183..183
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 184..184
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 185..185
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 186..186
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 187..187
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 189..189
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 191..191
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 193..193
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 194..194
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 197..197
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 200..200
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 202..202
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 58..58
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 59..59
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 60..60
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 61..61
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 62..62
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 63..63
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 64..64
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 65..65

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 111.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 29 locations. Consider refactoring.
        Open

                FormulaCode::HIT => [ModifierCode::COLOR, ModifierCode::GATE, ModifierCode::EXPLOSION, ModifierCode::FILTER, ModifierCode::WATCHER, ModifierCode::THUNDER, ModifierCode::INTERACTIVE_ILLUSION, ModifierCode::HAMMER, ModifierCode::CAMOUFLAGE, ModifierCode::INVISIBILITY, ModifierCode::MOVEMENT, ModifierCode::BREACH, ModifierCode::RECEPTOR, ModifierCode::STEP_TO_FUTURE, ModifierCode::STEP_TO_PAST, ModifierCode::RELEASE, ModifierCode::FRAGRANCE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 28 other locations - About 1 hr to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 146..146
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 206..206
        tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 169..169
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 176..176
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 177..177
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 178..178
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 179..179
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 181..181
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 183..183
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 184..184
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 185..185
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 186..186
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 187..187
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 189..189
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 191..191
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 193..193
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 194..194
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 197..197
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 200..200
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 202..202
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 58..58
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 59..59
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 60..60
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 61..61
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 62..62
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 63..63
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 64..64
        tests/Tables/Theurgist/Spells/SpellTraitsTableTest.php on lines 65..65

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 111.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 6 locations. Consider refactoring.
        Open

                FormulaCode::TSUNAMI_FROM_CLAY_AND_STONES => [ModifierCode::COLOR, ModifierCode::GATE, ModifierCode::EXPLOSION, ModifierCode::FILTER, ModifierCode::WATCHER, ModifierCode::THUNDER, ModifierCode::INTERACTIVE_ILLUSION, ModifierCode::HAMMER, ModifierCode::CAMOUFLAGE, ModifierCode::INVISIBILITY, ModifierCode::MOVEMENT, ModifierCode::BREACH, ModifierCode::RECEPTOR, ModifierCode::STEP_TO_FUTURE, ModifierCode::STEP_TO_PAST, ModifierCode::FRAGRANCE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 5 other locations - About 1 hr to fix
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 173..173
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 195..195
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 198..198
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 199..199
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 201..201

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 105.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 4 locations. Consider refactoring.
        Open

                FormulaCode::METAMORPHOSIS => [ModifierCode::COLOR, ModifierCode::GATE, ModifierCode::EXPLOSION, ModifierCode::FILTER, ModifierCode::WATCHER, ModifierCode::THUNDER, ModifierCode::INTERACTIVE_ILLUSION, ModifierCode::HAMMER, ModifierCode::CAMOUFLAGE, ModifierCode::INVISIBILITY, ModifierCode::MOVEMENT, ModifierCode::STEP_TO_FUTURE, ModifierCode::STEP_TO_PAST, ModifierCode::TRANSPOSITION, ModifierCode::FRAGRANCE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 3 other locations - About 55 mins to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 203..203
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 211..211
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 213..213

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 99.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 4 locations. Consider refactoring.
        Open

                FormulaCode::GREAT_MASSACRE => [ModifierCode::COLOR, ModifierCode::GATE, ModifierCode::EXPLOSION, ModifierCode::FILTER, ModifierCode::WATCHER, ModifierCode::THUNDER, ModifierCode::INTERACTIVE_ILLUSION, ModifierCode::HAMMER, ModifierCode::CAMOUFLAGE, ModifierCode::INVISIBILITY, ModifierCode::BREACH, ModifierCode::RECEPTOR, ModifierCode::STEP_TO_FUTURE, ModifierCode::STEP_TO_PAST, ModifierCode::FRAGRANCE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 3 other locations - About 55 mins to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 203..203
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 204..204
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 213..213

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 99.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 4 locations. Consider refactoring.
        Open

                FormulaCode::ILLUSION => [ModifierCode::COLOR, ModifierCode::GATE, ModifierCode::EXPLOSION, ModifierCode::FILTER, ModifierCode::THUNDER, ModifierCode::HAMMER, ModifierCode::CAMOUFLAGE, ModifierCode::INVISIBILITY, ModifierCode::MOVEMENT, ModifierCode::BREACH, ModifierCode::STEP_TO_FUTURE, ModifierCode::STEP_TO_PAST, ModifierCode::TRANSPOSITION, ModifierCode::RELEASE, ModifierCode::FRAGRANCE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 3 other locations - About 55 mins to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 204..204
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 211..211
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 213..213

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 99.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 4 locations. Consider refactoring.
        Open

                FormulaCode::LOCK => [ModifierCode::COLOR, ModifierCode::GATE, ModifierCode::EXPLOSION, ModifierCode::FILTER, ModifierCode::THUNDER, ModifierCode::INTERACTIVE_ILLUSION, ModifierCode::HAMMER, ModifierCode::CAMOUFLAGE, ModifierCode::INVISIBILITY, ModifierCode::MOVEMENT, ModifierCode::RECEPTOR, ModifierCode::STEP_TO_FUTURE, ModifierCode::STEP_TO_PAST, ModifierCode::RELEASE, ModifierCode::FRAGRANCE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 3 other locations - About 55 mins to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 203..203
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 204..204
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 211..211

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 99.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 4 locations. Consider refactoring.
        Open

                FormulaCode::HIT => [ProfileCode::BARRIER_VENUS, ProfileCode::SPARK_VENUS, ProfileCode::RELEASE_VENUS, ProfileCode::SCENT_VENUS, ProfileCode::ILLUSION_VENUS, ProfileCode::RECEPTOR_VENUS, ProfileCode::BREACH_VENUS, ProfileCode::FIRE_VENUS, ProfileCode::GATE_VENUS, ProfileCode::MOVEMENT_VENUS, ProfileCode::DISCHARGE_VENUS, ProfileCode::WATCHER_VENUS, ProfileCode::LOOK_VENUS, ProfileCode::TIME_VENUS],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 3 other locations - About 40 mins to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 208..208
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 334..334
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 175..175

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 93.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 4 locations. Consider refactoring.
        Open

                FormulaCode::PORTAL => [ProfileCode::BARRIER_VENUS, ProfileCode::SPARK_VENUS, ProfileCode::RELEASE_VENUS, ProfileCode::SCENT_VENUS, ProfileCode::ILLUSION_VENUS, ProfileCode::RECEPTOR_VENUS, ProfileCode::BREACH_VENUS, ProfileCode::FIRE_VENUS, ProfileCode::MOVEMENT_VENUS, ProfileCode::TRANSPOSITION_VENUS, ProfileCode::DISCHARGE_VENUS, ProfileCode::WATCHER_VENUS, ProfileCode::LOOK_VENUS, ProfileCode::TIME_VENUS],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 3 other locations - About 40 mins to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 208..208
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 338..338
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 175..175

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 93.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 4 locations. Consider refactoring.
        Open

                FormulaCode::FLOW_OF_TIME => [ModifierCode::COLOR, ModifierCode::GATE, ModifierCode::EXPLOSION, ModifierCode::FILTER, ModifierCode::WATCHER, ModifierCode::THUNDER, ModifierCode::INTERACTIVE_ILLUSION, ModifierCode::HAMMER, ModifierCode::CAMOUFLAGE, ModifierCode::INVISIBILITY, ModifierCode::RECEPTOR, ModifierCode::STEP_TO_FUTURE, ModifierCode::STEP_TO_PAST, ModifierCode::FRAGRANCE],
        Severity: Major
        Found in tests/Tables/Theurgist/Spells/FormulasTableTest.php and 3 other locations - About 40 mins to fix
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 334..334
        tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 338..338
        tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 175..175

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 93.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Avoid excessively long variable names like $profilesByProfileTable. Keep variable name length under 20.
        Open

                    $profilesByProfileTable = $this->getProfilesByProfileTable($formulaValue);

        LongVariable

        Since: 0.2

        Detects when a field, formal or local variable is declared with a long name.

        Example

        class Something {
            protected $reallyLongIntName = -3; // VIOLATION - Field
            public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                $otherReallyLongName = -5; // VIOLATION - Local
                for ($interestingIntIndex = 0; // VIOLATION - For
                     $interestingIntIndex < 10;
                     $interestingIntIndex++ ) {
                }
            }
        }

        Source https://phpmd.org/rules/naming.html#longvariable

        Avoid excessively long variable names like $modifierValuesFromModifiersTable. Keep variable name length under 20.
        Open

                $modifierValuesFromModifiersTable = $this->getModifierValuesFromModifiersTable($formulaValue);

        LongVariable

        Since: 0.2

        Detects when a field, formal or local variable is declared with a long name.

        Example

        class Something {
            protected $reallyLongIntName = -3; // VIOLATION - Field
            public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                $otherReallyLongName = -5; // VIOLATION - Local
                for ($interestingIntIndex = 0; // VIOLATION - For
                     $interestingIntIndex < 10;
                     $interestingIntIndex++ ) {
                }
            }
        }

        Source https://phpmd.org/rules/naming.html#longvariable

        Avoid excessively long variable names like $possibleModifierValues. Keep variable name length under 20.
        Open

                    $possibleModifierValues = $this->getExpectedModifierValues($formulaValue);

        LongVariable

        Since: 0.2

        Detects when a field, formal or local variable is declared with a long name.

        Example

        class Something {
            protected $reallyLongIntName = -3; // VIOLATION - Field
            public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                $otherReallyLongName = -5; // VIOLATION - Local
                for ($interestingIntIndex = 0; // VIOLATION - For
                     $interestingIntIndex < 10;
                     $interestingIntIndex++ ) {
                }
            }
        }

        Source https://phpmd.org/rules/naming.html#longvariable

        Avoid excessively long variable names like $matchingModifierValues. Keep variable name length under 20.
        Open

                $matchingModifierValues = [];

        LongVariable

        Since: 0.2

        Detects when a field, formal or local variable is declared with a long name.

        Example

        class Something {
            protected $reallyLongIntName = -3; // VIOLATION - Field
            public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                $otherReallyLongName = -5; // VIOLATION - Local
                for ($interestingIntIndex = 0; // VIOLATION - For
                     $interestingIntIndex < 10;
                     $interestingIntIndex++ ) {
                }
            }
        }

        Source https://phpmd.org/rules/naming.html#longvariable

        Avoid excessively long variable names like $expectedModifierValues. Keep variable name length under 20.
        Open

                $expectedModifierValues = array_diff(ModifierCode::getPossibleValues(), self::$impossibleModifiers[$formulaValue]);

        LongVariable

        Since: 0.2

        Detects when a field, formal or local variable is declared with a long name.

        Example

        class Something {
            protected $reallyLongIntName = -3; // VIOLATION - Field
            public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                $otherReallyLongName = -5; // VIOLATION - Local
                for ($interestingIntIndex = 0; // VIOLATION - For
                     $interestingIntIndex < 10;
                     $interestingIntIndex++ ) {
                }
            }
        }

        Source https://phpmd.org/rules/naming.html#longvariable

        Avoid excessively long variable names like $matchingProfileValues. Keep variable name length under 20.
        Open

                $matchingProfileValues = $this->getProfilesByProfileTable($formulaValue);

        LongVariable

        Since: 0.2

        Detects when a field, formal or local variable is declared with a long name.

        Example

        class Something {
            protected $reallyLongIntName = -3; // VIOLATION - Field
            public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                $otherReallyLongName = -5; // VIOLATION - Local
                for ($interestingIntIndex = 0; // VIOLATION - For
                     $interestingIntIndex < 10;
                     $interestingIntIndex++ ) {
                }
            }
        }

        Source https://phpmd.org/rules/naming.html#longvariable

        Avoid excessively long variable names like $matchingModifierValues. Keep variable name length under 20.
        Open

                    $matchingModifierValues = $this->getModifiersFromProfilesTable($formulaValue);

        LongVariable

        Since: 0.2

        Detects when a field, formal or local variable is declared with a long name.

        Example

        class Something {
            protected $reallyLongIntName = -3; // VIOLATION - Field
            public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                $otherReallyLongName = -5; // VIOLATION - Local
                for ($interestingIntIndex = 0; // VIOLATION - For
                     $interestingIntIndex < 10;
                     $interestingIntIndex++ ) {
                }
            }
        }

        Source https://phpmd.org/rules/naming.html#longvariable

        Avoid excessively long variable names like $expectedSpellTraitCodeValues. Keep variable name length under 20.
        Open

                    $expectedSpellTraitCodeValues = $this->getExpectedSpellTraitCodeValues($formulaValue);

        LongVariable

        Since: 0.2

        Detects when a field, formal or local variable is declared with a long name.

        Example

        class Something {
            protected $reallyLongIntName = -3; // VIOLATION - Field
            public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                $otherReallyLongName = -5; // VIOLATION - Local
                for ($interestingIntIndex = 0; // VIOLATION - For
                     $interestingIntIndex < 10;
                     $interestingIntIndex++ ) {
                }
            }
        }

        Source https://phpmd.org/rules/naming.html#longvariable

        Avoid excessively long variable names like $collectedModifierValues. Keep variable name length under 20.
        Open

                    $collectedModifierValues = [];

        LongVariable

        Since: 0.2

        Detects when a field, formal or local variable is declared with a long name.

        Example

        class Something {
            protected $reallyLongIntName = -3; // VIOLATION - Field
            public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                $otherReallyLongName = -5; // VIOLATION - Local
                for ($interestingIntIndex = 0; // VIOLATION - For
                     $interestingIntIndex < 10;
                     $interestingIntIndex++ ) {
                }
            }
        }

        Source https://phpmd.org/rules/naming.html#longvariable

        Avoid excessively long variable names like $impossibleVenusProfiles. Keep variable name length under 20.
        Open

            private static array $impossibleVenusProfiles = [
                FormulaCode::BARRIER => [ProfileCode::SCENT_VENUS, ProfileCode::ILLUSION_VENUS, ProfileCode::RECEPTOR_VENUS, ProfileCode::BREACH_VENUS, ProfileCode::FIRE_VENUS, ProfileCode::GATE_VENUS, ProfileCode::MOVEMENT_VENUS, ProfileCode::TRANSPOSITION_VENUS, ProfileCode::DISCHARGE_VENUS, ProfileCode::WATCHER_VENUS, ProfileCode::LOOK_VENUS, ProfileCode::TIME_VENUS],
                FormulaCode::SMOKE => [ProfileCode::BARRIER_VENUS, ProfileCode::ILLUSION_VENUS, ProfileCode::RECEPTOR_VENUS, ProfileCode::BREACH_VENUS, ProfileCode::FIRE_VENUS, ProfileCode::GATE_VENUS, ProfileCode::MOVEMENT_VENUS, ProfileCode::TRANSPOSITION_VENUS, ProfileCode::DISCHARGE_VENUS, ProfileCode::WATCHER_VENUS, ProfileCode::LOOK_VENUS, ProfileCode::TIME_VENUS],
                FormulaCode::ILLUSION => [ProfileCode::BARRIER_VENUS, ProfileCode::SPARK_VENUS, ProfileCode::RELEASE_VENUS, ProfileCode::SCENT_VENUS, ProfileCode::BREACH_VENUS, ProfileCode::FIRE_VENUS, ProfileCode::GATE_VENUS, ProfileCode::MOVEMENT_VENUS, ProfileCode::TRANSPOSITION_VENUS, ProfileCode::DISCHARGE_VENUS, ProfileCode::LOOK_VENUS, ProfileCode::TIME_VENUS],
                FormulaCode::METAMORPHOSIS => [ProfileCode::BARRIER_VENUS, ProfileCode::SPARK_VENUS, ProfileCode::SCENT_VENUS, ProfileCode::ILLUSION_VENUS, ProfileCode::FIRE_VENUS, ProfileCode::GATE_VENUS, ProfileCode::MOVEMENT_VENUS, ProfileCode::TRANSPOSITION_VENUS, ProfileCode::DISCHARGE_VENUS, ProfileCode::WATCHER_VENUS, ProfileCode::LOOK_VENUS, ProfileCode::TIME_VENUS],

        LongVariable

        Since: 0.2

        Detects when a field, formal or local variable is declared with a long name.

        Example

        class Something {
            protected $reallyLongIntName = -3; // VIOLATION - Field
            public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                $otherReallyLongName = -5; // VIOLATION - Local
                for ($interestingIntIndex = 0; // VIOLATION - For
                     $interestingIntIndex < 10;
                     $interestingIntIndex++ ) {
                }
            }
        }

        Source https://phpmd.org/rules/naming.html#longvariable

        The method I_can_get_forms is not named in camelCase.
        Open

            public function I_can_get_forms(): void
            {
                $formulasTable = new FormulasTable(Tables::getIt());
                foreach (FormulaCode::getPossibleValues() as $formulaValue) {
                    $forms = $formulasTable->getFormCodes(FormulaCode::getIt($formulaValue));

        CamelCaseMethodName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name methods.

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method I_can_not_get_modifiers_to_unknown_formula is not named in camelCase.
        Open

            public function I_can_not_get_modifiers_to_unknown_formula(): void
            {
                $this->expectException(\DrdPlus\Tables\Theurgist\Spells\Exceptions\UnknownFormulaToGetModifiersFor::class);
                $this->expectExceptionMessageMatches('~Abraka dabra~');
                (new FormulasTable(Tables::getIt()))

        CamelCaseMethodName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name methods.

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method I_can_get_casting_rounds is not named in camelCase.
        Open

            public function I_can_get_casting_rounds(): void
            {
                $formulasTable = new FormulasTable(Tables::getIt());
                foreach (FormulaCode::getPossibleValues() as $formulaValue) {
                    $castingRounds = $formulasTable->getCastingRounds(FormulaCode::getIt($formulaValue));

        CamelCaseMethodName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name methods.

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method I_can_get_modifiers_for_formula is not named in camelCase.
        Open

            public function I_can_get_modifiers_for_formula(): void
            {
                $formulasTable = new FormulasTable(Tables::getIt());
                foreach (FormulaCode::getPossibleValues() as $formulaValue) {
                    $modifierCodes = $formulasTable->getModifierCodes(FormulaCode::getIt($formulaValue));

        CamelCaseMethodName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name methods.

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method I_can_get_profiles_for_formula is not named in camelCase.
        Open

            public function I_can_get_profiles_for_formula(): void
            {
                $formulasTable = new FormulasTable(Tables::getIt());
                foreach (FormulaCode::getPossibleValues() as $formulaValue) {
                    $profileCodes = $formulasTable->getProfileCodes(FormulaCode::getIt($formulaValue));

        CamelCaseMethodName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name methods.

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method I_can_get_spell_trait_codes is not named in camelCase.
        Open

            public function I_can_get_spell_trait_codes(): void
            {
                $formulasTable = new FormulasTable(Tables::getIt());
                foreach (FormulaCode::getPossibleValues() as $formulaValue) {
                    $spellTraits = $formulasTable->getSpellTraits(FormulaCode::getIt($formulaValue));

        CamelCaseMethodName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name methods.

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method I_can_not_get_profiles_to_unknown_formula is not named in camelCase.
        Open

            public function I_can_not_get_profiles_to_unknown_formula(): void
            {
                $this->expectException(\DrdPlus\Tables\Theurgist\Spells\Exceptions\UnknownFormulaToGetProfilesFor::class);
                $this->expectExceptionMessageMatches('~Charge!~');
                (new FormulasTable(Tables::getIt()))->getProfileCodes($this->createFormulaCode('Charge!'));

        CamelCaseMethodName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name methods.

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        There are no issues that match your filters.

        Category
        Status