jaroslavtyc/drd-plus-tables

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

Summary

Maintainability
F
6 days
Test Coverage

Method I_can_get_formulas_for_profile has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function I_can_get_formulas_for_profile()
    {
        $profilesTable = new ProfilesTable();
        foreach (ProfileCode::getPossibleValues() as $profileValue) {
            $formulaCodes = $profilesTable->getFormulaCodes(ProfileCode::getIt($profileValue));
Severity: Minor
Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.php - About 1 hr to fix

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

        public function I_can_get_modifiers_to_profiles()
        {
            $profilesTable = new ProfilesTable();
            foreach (ProfileCode::getPossibleValues() as $profileValue) {
                $modifierCodes = $profilesTable->getModifierCodes(ProfileCode::getIt($profileValue));
    Severity: Minor
    Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.php - About 1 hr to fix

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

          private function getExpectedFormulaValues(string $profileValue): array
          {
              $oppositeProfile = $this->reverseProfileGender($profileValue);
              $expectedFormulaValues = [];
              foreach (FormulaCode::getPossibleValues() as $formulaValue) {
      Severity: Minor
      Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.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 I_can_get_formulas_for_profile has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          public function I_can_get_formulas_for_profile()
          {
              $profilesTable = new ProfilesTable();
              foreach (ProfileCode::getPossibleValues() as $profileValue) {
                  $formulaCodes = $profilesTable->getFormulaCodes(ProfileCode::getIt($profileValue));
      Severity: Minor
      Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.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

      Avoid using static access to class '\DrdPlus\Codes\Theurgist\ProfileCode' in method 'I_can_get_formulas_for_profile'.
      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

      The method I_can_get_formulas_for_profile uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
      Open

                  } else {
                      self::assertNotEmpty($formulaCodes, 'Expected some formulas for profile ' . $profileValue);
                  }

      ElseExpression

      Since: 1.4.0

      An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

      Example

      class Foo
      {
          public function bar($flag)
          {
              if ($flag) {
                  // one branch
              } else {
                  // another branch
              }
          }
      }

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

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

              return array_diff(ModifierCode::getPossibleValues(), self::$impossibleModifiers[$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\ProfileCode' in method 'I_can_get_modifiers_to_profiles'.
      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 'getExpectedFormulaValues'.
      Open

                  $profileCodes = $this->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 'I_can_get_formulas_for_profile'.
      Open

                  $formulaCodes = $profilesTable->getFormulaCodes(ProfileCode::getIt($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\ProfileCode' in method 'I_can_get_modifiers_to_profiles'.
      Open

                  $modifierCodes = $profilesTable->getModifierCodes(ProfileCode::getIt($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\Tables\Tables' in method 'setUp'.
      Open

              $this->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 'getExpectedFormulaValues'.
      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

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

              ProfileCode::FIRE_MARS => [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::TRANSPOSITION, ModifierCode::RELEASE, ModifierCode::FRAGRANCE],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.php and 20 other locations - About 1 hr to fix
      tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 145..145
      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 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

              ProfileCode::DISCHARGE_MARS => [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::TRANSPOSITION, ModifierCode::RELEASE, ModifierCode::FRAGRANCE],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.php and 20 other locations - About 1 hr to fix
      tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 145..145
      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/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

              ProfileCode::SCENT_MARS => [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::TRANSPOSITION, ModifierCode::RELEASE, ModifierCode::FRAGRANCE],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.php and 20 other locations - About 1 hr to fix
      tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 145..145
      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 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

              ProfileCode::ILLUSION_MARS => [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::TRANSPOSITION, ModifierCode::RELEASE, ModifierCode::FRAGRANCE],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.php and 20 other locations - About 1 hr to fix
      tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 145..145
      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 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

              ProfileCode::MOVEMENT_MARS => [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::TRANSPOSITION, ModifierCode::RELEASE, ModifierCode::FRAGRANCE],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.php and 20 other locations - About 1 hr to fix
      tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 145..145
      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 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

              ProfileCode::BARRIER_MARS => [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::TRANSPOSITION, ModifierCode::RELEASE, ModifierCode::FRAGRANCE],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.php and 20 other locations - About 1 hr to fix
      tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 145..145
      tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 148..148
      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

              ProfileCode::GATE_MARS => [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::TRANSPOSITION, ModifierCode::RELEASE, ModifierCode::FRAGRANCE],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.php and 20 other locations - About 1 hr to fix
      tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 145..145
      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 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

              ProfileCode::SPARK_MARS => [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/ProfilesTableTest.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/FormulasTableTest.php on lines 210..210
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 169..169
      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

              ProfileCode::MOVEMENT_VENUS => [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::TRANSPOSITION, ModifierCode::RELEASE, ModifierCode::FRAGRANCE],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.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/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 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

              ProfileCode::GATE_VENUS => [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/ProfilesTableTest.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/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 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

              ProfileCode::BREACH_VENUS => [ModifierCode::COLOR, ModifierCode::GATE, ModifierCode::EXPLOSION, ModifierCode::FILTER, ModifierCode::WATCHER, ModifierCode::THUNDER, ModifierCode::INTERACTIVE_ILLUSION, ModifierCode::HAMMER, ModifierCode::CAMOUFLAGE, ModifierCode::INVISIBILITY, ModifierCode::MOVEMENT, ModifierCode::RECEPTOR, ModifierCode::STEP_TO_FUTURE, ModifierCode::STEP_TO_PAST, ModifierCode::TRANSPOSITION, ModifierCode::RELEASE, ModifierCode::FRAGRANCE],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.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/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 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

              ProfileCode::FIRE_VENUS => [ModifierCode::COLOR, ModifierCode::GATE, 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/ProfilesTableTest.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/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 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

              ProfileCode::RELEASE_MARS => [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/ProfilesTableTest.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/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 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

              ProfileCode::SCENT_VENUS => [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::TRANSPOSITION, ModifierCode::RELEASE],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.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/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 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

              ProfileCode::WATCHER_VENUS => [ModifierCode::COLOR, ModifierCode::GATE, ModifierCode::EXPLOSION, ModifierCode::FILTER, 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/ProfilesTableTest.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/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 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

              ProfileCode::ILLUSION_VENUS => [ModifierCode::COLOR, ModifierCode::GATE, ModifierCode::EXPLOSION, ModifierCode::FILTER, ModifierCode::WATCHER, ModifierCode::THUNDER, 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/ProfilesTableTest.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/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 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

              ProfileCode::TRANSPOSITION_VENUS => [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/ProfilesTableTest.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/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 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

              ProfileCode::RELEASE_VENUS => [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::TRANSPOSITION, ModifierCode::FRAGRANCE],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.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/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 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

              ProfileCode::RECEPTOR_MARS => [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::TRANSPOSITION, ModifierCode::RELEASE],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.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/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 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

              ProfileCode::LOOK_MARS => [ModifierCode::COLOR, ModifierCode::GATE, 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/ProfilesTableTest.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/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 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

              ProfileCode::TIME_MARS => [ModifierCode::COLOR, ModifierCode::FILTER, ModifierCode::WATCHER, ModifierCode::EXPLOSION, 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/ProfilesTableTest.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/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/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

              ProfileCode::RECEPTOR_VENUS => [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::STEP_TO_FUTURE, ModifierCode::STEP_TO_PAST, ModifierCode::TRANSPOSITION, ModifierCode::RELEASE, ModifierCode::FRAGRANCE],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.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/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 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

              ProfileCode::BREACH_MARS => [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/ProfilesTableTest.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/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 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

              ProfileCode::TRANSPOSITION_MARS => [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/ProfilesTableTest.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/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 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 2 locations. Consider refactoring.
      Open

                  self::assertEquals(
                      $expectedFormulaValues,
                      $collectedFormulaValues,
                      'Expected different formulas for profile ' . $profileValue
                      . (($missing = array_diff($expectedFormulaValues, $collectedFormulaValues)) !== []
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.php and 1 other location - About 1 hr to fix
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 214..226

      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 106.

      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 2 locations. Consider refactoring.
      Open

                  self::assertEquals(
                      $expectedModifiers,
                      $modifierValues,
                      "Expected different modifiers for profile '{$profileValue}'"
                      . (($redundant = array_diff($modifierValues, $expectedModifiers)) !== []
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.php and 1 other location - About 1 hr to fix
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 294..306

      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 106.

      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

              ProfileCode::TIME_VENUS => [ModifierCode::COLOR, ModifierCode::GATE, ModifierCode::FILTER, ModifierCode::WATCHER, ModifierCode::EXPLOSION, ModifierCode::THUNDER, ModifierCode::INTERACTIVE_ILLUSION, ModifierCode::HAMMER, ModifierCode::CAMOUFLAGE, ModifierCode::INVISIBILITY, ModifierCode::MOVEMENT, ModifierCode::BREACH, ModifierCode::RECEPTOR, ModifierCode::TRANSPOSITION, ModifierCode::RELEASE, ModifierCode::FRAGRANCE],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.php and 5 other locations - About 1 hr to fix
      tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 209..209
      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

      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 6 locations. Consider refactoring.
      Open

              ProfileCode::LOOK_VENUS => [ModifierCode::GATE, ModifierCode::EXPLOSION, ModifierCode::FILTER, ModifierCode::WATCHER, ModifierCode::THUNDER, ModifierCode::INTERACTIVE_ILLUSION, ModifierCode::HAMMER, ModifierCode::CAMOUFLAGE, 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/ProfilesTableTest.php and 5 other locations - About 1 hr to fix
      tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 209..209
      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 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 6 locations. Consider refactoring.
      Open

              ProfileCode::BARRIER_VENUS => [ModifierCode::COLOR, ModifierCode::GATE, ModifierCode::EXPLOSION, ModifierCode::WATCHER, ModifierCode::THUNDER, ModifierCode::INTERACTIVE_ILLUSION, ModifierCode::HAMMER, 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/ProfilesTableTest.php and 5 other locations - About 1 hr to fix
      tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 209..209
      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 6 locations. Consider refactoring.
      Open

              ProfileCode::WATCHER_MARS => [ModifierCode::COLOR, ModifierCode::EXPLOSION, ModifierCode::FILTER, ModifierCode::WATCHER, ModifierCode::THUNDER, ModifierCode::INTERACTIVE_ILLUSION, 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/ProfilesTableTest.php and 5 other locations - About 1 hr to fix
      tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 209..209
      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 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 6 locations. Consider refactoring.
      Open

              ProfileCode::DISCHARGE_VENUS => [ModifierCode::COLOR, ModifierCode::GATE, ModifierCode::EXPLOSION, ModifierCode::FILTER, ModifierCode::WATCHER, ModifierCode::INTERACTIVE_ILLUSION, 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/ProfilesTableTest.php and 5 other locations - About 1 hr to fix
      tests/Tables/Theurgist/Spells/FormulasTableTest.php on lines 209..209
      tests/Tables/Theurgist/Spells/ProfilesTableTest.php on lines 173..173
      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

              ProfileCode::SPARK_VENUS => [ModifierCode::GATE, ModifierCode::EXPLOSION, ModifierCode::FILTER, ModifierCode::WATCHER, ModifierCode::THUNDER, ModifierCode::INTERACTIVE_ILLUSION, ModifierCode::HAMMER, ModifierCode::CAMOUFLAGE, ModifierCode::BREACH, ModifierCode::RECEPTOR, ModifierCode::STEP_TO_FUTURE, ModifierCode::STEP_TO_PAST, ModifierCode::RELEASE, ModifierCode::FRAGRANCE],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ProfilesTableTest.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/FormulasTableTest.php on lines 338..338

      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 $collectedFormulaValues. Keep variable name length under 20.
      Open

                  $collectedFormulaValues = [];

      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 $expectedFormulaValues. Keep variable name length under 20.
      Open

                  $expectedFormulaValues = $this->getExpectedFormulaValues($profileValue);

      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 $expectedFormulaValues. Keep variable name length under 20.
      Open

              $expectedFormulaValues = [];

      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_every_optional_parameter is not named in camelCase.
      Open

          public function I_can_get_every_optional_parameter(): void
          {
              self::assertFalse(false, 'Is tested in another way');
          }

      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_formulas_for_profile is not named in camelCase.
      Open

          public function I_can_get_formulas_for_profile()
          {
              $profilesTable = new ProfilesTable();
              foreach (ProfileCode::getPossibleValues() as $profileValue) {
                  $formulaCodes = $profilesTable->getFormulaCodes(ProfileCode::getIt($profileValue));

      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_every_mandatory_parameter is not named in camelCase.
      Open

          public function I_can_get_every_mandatory_parameter(): void
          {
              self::assertFalse(false, 'Is tested in another way');
          }

      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_profile is not named in camelCase.
      Open

          public function I_can_not_get_modifiers_to_unknown_profile()
          {
              $this->expectException(\DrdPlus\Tables\Theurgist\Spells\Exceptions\UnknownProfileToGetModifiersFor::class);
              $this->expectExceptionMessageMatches('~Lazy lizard~');
              (new ProfilesTable())->getModifierCodes($this->createProfileCode('Lazy lizard'));

      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_formulas_to_unknown_profile is not named in camelCase.
      Open

          public function I_can_not_get_formulas_to_unknown_profile()
          {
              $this->expectException(\DrdPlus\Tables\Theurgist\Spells\Exceptions\UnknownProfileToGetFormulasFor::class);
              $this->expectExceptionMessageMatches('~Sexy texy~');
              (new ProfilesTable())->getFormulaCodes($this->createProfileCode('Sexy texy'));

      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_to_profiles is not named in camelCase.
      Open

          public function I_can_get_modifiers_to_profiles()
          {
              $profilesTable = new ProfilesTable();
              foreach (ProfileCode::getPossibleValues() as $profileValue) {
                  $modifierCodes = $profilesTable->getModifierCodes(ProfileCode::getIt($profileValue));

      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