jaroslavtyc/drd-plus-tables

View on GitHub

Showing 2,684 of 2,684 total issues

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

    public function I_can_get_common_elf_modifiers(): void
    {
        $racesTable = new RacesTable(Tables::getIt()->getFemaleModifiersTable());
        $modifiers = $racesTable->getCommonElfModifiers();
        self::assertEquals(
Severity: Major
Found in tests/Tables/Races/RacesTableTest.php and 1 other location - About 5 hrs to fix
tests/Tables/Races/RacesTableTest.php on lines 269..294

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

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

    public function I_can_get_wood_dwarf_modifiers(): void
    {
        $racesTable = new RacesTable(Tables::getIt()->getFemaleModifiersTable());
        $modifiers = $racesTable->getWoodDwarfModifiers();
        self::assertEquals(
Severity: Major
Found in tests/Tables/Races/RacesTableTest.php and 2 other locations - About 5 hrs to fix
tests/Tables/Races/RacesTableTest.php on lines 139..164
tests/Tables/Races/RacesTableTest.php on lines 209..234

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

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

    public function I_can_get_common_dwarf_modifiers(): void
    {
        $racesTable = new RacesTable(Tables::getIt()->getFemaleModifiersTable());
        $modifiers = $racesTable->getCommonDwarfModifiers();
        self::assertEquals(
Severity: Major
Found in tests/Tables/Races/RacesTableTest.php and 2 other locations - About 5 hrs to fix
tests/Tables/Races/RacesTableTest.php on lines 179..204
tests/Tables/Races/RacesTableTest.php on lines 209..234

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

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

    public function I_can_get_common_kroll_modifiers(): void
    {
        $racesTable = new RacesTable(Tables::getIt()->getFemaleModifiersTable());
        $modifiers = $racesTable->getCommonKrollModifiers();
        self::assertEquals(
Severity: Major
Found in tests/Tables/Races/RacesTableTest.php and 1 other location - About 5 hrs to fix
tests/Tables/Races/RacesTableTest.php on lines 389..414

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

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

DemonTest has 41 functions (exceeds 20 allowed). Consider refactoring.
Open

class DemonTest extends TestWithMockery
{
    private static ?string $demonParameterNamespace = null;
    private static ?string $spellParameterNamespace = null;

Severity: Minor
Found in tests/Tables/Theurgist/Demons/DemonTest.php - About 5 hrs to fix

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

    <?php declare(strict_types = 1);
    
    namespace DrdPlus\Tables\History;
    
    use DrdPlus\Codes\History\FateCode;
    Severity: Major
    Found in src/History/PlayerDecisionsTable.php and 1 other location - About 5 hrs to fix
    src/Races/SightRangesTable.php on lines 1..79

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

    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

    <?php declare(strict_types = 1);
    
    namespace DrdPlus\Tables\Races;
    
    use DrdPlus\Codes\RaceCode;
    Severity: Major
    Found in src/Races/SightRangesTable.php and 1 other location - About 5 hrs to fix
    src/History/PlayerDecisionsTable.php on lines 1..76

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

    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

    Method I_can_get_all_values has 125 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function I_can_get_all_values()
        {
            self::assertSame(
                [
                    0 => [

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

              ModifierCode::THUNDER => [ProfileCode::BARRIER_VENUS, ProfileCode::BARRIER_MARS, ProfileCode::SPARK_VENUS, ProfileCode::SPARK_MARS, ProfileCode::RELEASE_VENUS, ProfileCode::RELEASE_MARS, ProfileCode::SCENT_VENUS, ProfileCode::SCENT_MARS, ProfileCode::ILLUSION_VENUS, ProfileCode::ILLUSION_MARS, ProfileCode::RECEPTOR_VENUS, ProfileCode::RECEPTOR_MARS, ProfileCode::BREACH_VENUS, ProfileCode::BREACH_MARS, ProfileCode::FIRE_VENUS, ProfileCode::FIRE_MARS, ProfileCode::GATE_VENUS, ProfileCode::GATE_MARS, ProfileCode::MOVEMENT_VENUS, ProfileCode::MOVEMENT_MARS, ProfileCode::TRANSPOSITION_VENUS, ProfileCode::TRANSPOSITION_MARS, ProfileCode::DISCHARGE_VENUS, ProfileCode::WATCHER_VENUS, ProfileCode::WATCHER_MARS, ProfileCode::LOOK_VENUS, ProfileCode::LOOK_MARS, ProfileCode::TIME_VENUS, ProfileCode::TIME_MARS],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ModifiersTableTest.php and 9 other locations - About 5 hrs to fix
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 314..314
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 315..315
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 317..317
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 319..319
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 322..322
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 323..323
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 324..324
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 325..325
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 327..327

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

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

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

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

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

      Refactorings

      Further Reading

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

              ModifierCode::BREACH => [ProfileCode::BARRIER_VENUS, ProfileCode::BARRIER_MARS, ProfileCode::SPARK_VENUS, ProfileCode::SPARK_MARS, ProfileCode::RELEASE_VENUS, ProfileCode::RELEASE_MARS, ProfileCode::SCENT_VENUS, ProfileCode::SCENT_MARS, ProfileCode::ILLUSION_VENUS, ProfileCode::ILLUSION_MARS, ProfileCode::RECEPTOR_VENUS, ProfileCode::RECEPTOR_MARS, ProfileCode::BREACH_VENUS, ProfileCode::FIRE_VENUS, ProfileCode::FIRE_MARS, ProfileCode::GATE_VENUS, ProfileCode::GATE_MARS, ProfileCode::MOVEMENT_VENUS, ProfileCode::MOVEMENT_MARS, ProfileCode::TRANSPOSITION_VENUS, ProfileCode::TRANSPOSITION_MARS, ProfileCode::DISCHARGE_VENUS, ProfileCode::DISCHARGE_MARS, ProfileCode::WATCHER_VENUS, ProfileCode::WATCHER_MARS, ProfileCode::LOOK_VENUS, ProfileCode::LOOK_MARS, ProfileCode::TIME_VENUS, ProfileCode::TIME_MARS],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ModifiersTableTest.php and 9 other locations - About 5 hrs to fix
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 314..314
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 315..315
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 316..316
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 317..317
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 319..319
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 323..323
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 324..324
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 325..325
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 327..327

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

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

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

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

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

      Refactorings

      Further Reading

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

              ModifierCode::STEP_TO_PAST => [ProfileCode::BARRIER_VENUS, ProfileCode::BARRIER_MARS, ProfileCode::SPARK_VENUS, ProfileCode::SPARK_MARS, ProfileCode::RELEASE_VENUS, ProfileCode::RELEASE_MARS, ProfileCode::SCENT_VENUS, ProfileCode::SCENT_MARS, ProfileCode::ILLUSION_VENUS, ProfileCode::ILLUSION_MARS, ProfileCode::RECEPTOR_VENUS, ProfileCode::RECEPTOR_MARS, ProfileCode::BREACH_VENUS, ProfileCode::BREACH_MARS, ProfileCode::FIRE_VENUS, ProfileCode::FIRE_MARS, ProfileCode::GATE_VENUS, ProfileCode::GATE_MARS, ProfileCode::MOVEMENT_VENUS, ProfileCode::MOVEMENT_MARS, ProfileCode::TRANSPOSITION_VENUS, ProfileCode::TRANSPOSITION_MARS, ProfileCode::DISCHARGE_VENUS, ProfileCode::DISCHARGE_MARS, ProfileCode::WATCHER_VENUS, ProfileCode::WATCHER_MARS, ProfileCode::LOOK_VENUS, ProfileCode::LOOK_MARS, ProfileCode::TIME_VENUS,],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ModifiersTableTest.php and 9 other locations - About 5 hrs to fix
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 314..314
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 315..315
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 316..316
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 317..317
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 319..319
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 322..322
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 323..323
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 324..324
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 327..327

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

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

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

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

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

      Refactorings

      Further Reading

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

              ModifierCode::CAMOUFLAGE => [ProfileCode::BARRIER_VENUS, ProfileCode::SPARK_VENUS, ProfileCode::SPARK_MARS, ProfileCode::RELEASE_VENUS, ProfileCode::RELEASE_MARS, ProfileCode::SCENT_VENUS, ProfileCode::SCENT_MARS, ProfileCode::ILLUSION_VENUS, ProfileCode::ILLUSION_MARS, ProfileCode::RECEPTOR_VENUS, ProfileCode::RECEPTOR_MARS, ProfileCode::BREACH_VENUS, ProfileCode::BREACH_MARS, ProfileCode::FIRE_VENUS, ProfileCode::FIRE_MARS, ProfileCode::GATE_VENUS, ProfileCode::GATE_MARS, ProfileCode::MOVEMENT_VENUS, ProfileCode::MOVEMENT_MARS, ProfileCode::TRANSPOSITION_VENUS, ProfileCode::TRANSPOSITION_MARS, ProfileCode::DISCHARGE_VENUS, ProfileCode::DISCHARGE_MARS, ProfileCode::WATCHER_VENUS, ProfileCode::WATCHER_MARS, ProfileCode::LOOK_VENUS, ProfileCode::LOOK_MARS, ProfileCode::TIME_VENUS, ProfileCode::TIME_MARS],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ModifiersTableTest.php and 9 other locations - About 5 hrs to fix
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 314..314
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 315..315
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 316..316
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 317..317
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 322..322
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 323..323
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 324..324
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 325..325
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 327..327

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

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

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

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

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

      Refactorings

      Further Reading

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

              ModifierCode::INTERACTIVE_ILLUSION => [ProfileCode::BARRIER_VENUS, ProfileCode::BARRIER_MARS, ProfileCode::SPARK_VENUS, ProfileCode::SPARK_MARS, ProfileCode::RELEASE_VENUS, ProfileCode::RELEASE_MARS, ProfileCode::SCENT_VENUS, ProfileCode::SCENT_MARS, ProfileCode::ILLUSION_VENUS, ProfileCode::RECEPTOR_VENUS, ProfileCode::RECEPTOR_MARS, ProfileCode::BREACH_VENUS, ProfileCode::BREACH_MARS, ProfileCode::FIRE_VENUS, ProfileCode::FIRE_MARS, ProfileCode::GATE_VENUS, ProfileCode::GATE_MARS, ProfileCode::MOVEMENT_VENUS, ProfileCode::MOVEMENT_MARS, ProfileCode::TRANSPOSITION_VENUS, ProfileCode::TRANSPOSITION_MARS, ProfileCode::DISCHARGE_VENUS, ProfileCode::DISCHARGE_MARS, ProfileCode::WATCHER_VENUS, ProfileCode::WATCHER_MARS, ProfileCode::LOOK_VENUS, ProfileCode::LOOK_MARS, ProfileCode::TIME_VENUS, ProfileCode::TIME_MARS],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ModifiersTableTest.php and 9 other locations - About 5 hrs to fix
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 314..314
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 315..315
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 316..316
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 319..319
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 322..322
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 323..323
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 324..324
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 325..325
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 327..327

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

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

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

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

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

      Refactorings

      Further Reading

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

              ModifierCode::RECEPTOR => [ProfileCode::BARRIER_VENUS, ProfileCode::BARRIER_MARS, ProfileCode::SPARK_VENUS, ProfileCode::SPARK_MARS, ProfileCode::RELEASE_VENUS, ProfileCode::RELEASE_MARS, ProfileCode::SCENT_VENUS, ProfileCode::SCENT_MARS, ProfileCode::ILLUSION_VENUS, ProfileCode::ILLUSION_MARS, ProfileCode::RECEPTOR_VENUS, ProfileCode::BREACH_VENUS, ProfileCode::BREACH_MARS, ProfileCode::FIRE_VENUS, ProfileCode::FIRE_MARS, ProfileCode::GATE_VENUS, ProfileCode::GATE_MARS, ProfileCode::MOVEMENT_VENUS, ProfileCode::MOVEMENT_MARS, ProfileCode::TRANSPOSITION_VENUS, ProfileCode::TRANSPOSITION_MARS, ProfileCode::DISCHARGE_VENUS, ProfileCode::DISCHARGE_MARS, ProfileCode::WATCHER_VENUS, ProfileCode::WATCHER_MARS, ProfileCode::LOOK_VENUS, ProfileCode::LOOK_MARS, ProfileCode::TIME_VENUS, ProfileCode::TIME_MARS],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ModifiersTableTest.php and 9 other locations - About 5 hrs to fix
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 314..314
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 315..315
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 316..316
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 317..317
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 319..319
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 322..322
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 324..324
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 325..325
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 327..327

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

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

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

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

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

      Refactorings

      Further Reading

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

              ModifierCode::RELEASE => [ProfileCode::BARRIER_VENUS, ProfileCode::BARRIER_MARS, ProfileCode::SPARK_VENUS, ProfileCode::SPARK_MARS, ProfileCode::RELEASE_VENUS, ProfileCode::SCENT_VENUS, ProfileCode::SCENT_MARS, ProfileCode::ILLUSION_VENUS, ProfileCode::ILLUSION_MARS, ProfileCode::RECEPTOR_VENUS, ProfileCode::RECEPTOR_MARS, ProfileCode::BREACH_VENUS, ProfileCode::BREACH_MARS, ProfileCode::FIRE_VENUS, ProfileCode::FIRE_MARS, ProfileCode::GATE_VENUS, ProfileCode::GATE_MARS, ProfileCode::MOVEMENT_VENUS, ProfileCode::MOVEMENT_MARS, ProfileCode::TRANSPOSITION_VENUS, ProfileCode::TRANSPOSITION_MARS, ProfileCode::DISCHARGE_VENUS, ProfileCode::DISCHARGE_MARS, ProfileCode::WATCHER_VENUS, ProfileCode::WATCHER_MARS, ProfileCode::LOOK_VENUS, ProfileCode::LOOK_MARS, ProfileCode::TIME_VENUS, ProfileCode::TIME_MARS],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ModifiersTableTest.php and 9 other locations - About 5 hrs to fix
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 314..314
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 315..315
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 316..316
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 317..317
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 319..319
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 322..322
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 323..323
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 324..324
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 325..325

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

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

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

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

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

      Refactorings

      Further Reading

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

              ModifierCode::FILTER => [ProfileCode::BARRIER_VENUS, ProfileCode::SPARK_VENUS, ProfileCode::SPARK_MARS, ProfileCode::RELEASE_VENUS, ProfileCode::RELEASE_MARS, ProfileCode::SCENT_VENUS, ProfileCode::SCENT_MARS, ProfileCode::ILLUSION_VENUS, ProfileCode::ILLUSION_MARS, ProfileCode::RECEPTOR_VENUS, ProfileCode::RECEPTOR_MARS, ProfileCode::BREACH_VENUS, ProfileCode::BREACH_MARS, ProfileCode::FIRE_VENUS, ProfileCode::FIRE_MARS, ProfileCode::GATE_VENUS, ProfileCode::GATE_MARS, ProfileCode::MOVEMENT_VENUS, ProfileCode::MOVEMENT_MARS, ProfileCode::TRANSPOSITION_VENUS, ProfileCode::TRANSPOSITION_MARS, ProfileCode::DISCHARGE_VENUS, ProfileCode::DISCHARGE_MARS, ProfileCode::WATCHER_VENUS, ProfileCode::WATCHER_MARS, ProfileCode::LOOK_VENUS, ProfileCode::LOOK_MARS, ProfileCode::TIME_VENUS, ProfileCode::TIME_MARS],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ModifiersTableTest.php and 9 other locations - About 5 hrs to fix
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 315..315
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 316..316
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 317..317
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 319..319
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 322..322
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 323..323
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 324..324
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 325..325
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 327..327

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

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

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

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

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

      Refactorings

      Further Reading

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

              ModifierCode::STEP_TO_FUTURE => [ProfileCode::BARRIER_VENUS, ProfileCode::BARRIER_MARS, ProfileCode::SPARK_VENUS, ProfileCode::SPARK_MARS, ProfileCode::RELEASE_VENUS, ProfileCode::RELEASE_MARS, ProfileCode::SCENT_VENUS, ProfileCode::SCENT_MARS, ProfileCode::ILLUSION_VENUS, ProfileCode::ILLUSION_MARS, ProfileCode::RECEPTOR_VENUS, ProfileCode::RECEPTOR_MARS, ProfileCode::BREACH_VENUS, ProfileCode::BREACH_MARS, ProfileCode::FIRE_VENUS, ProfileCode::FIRE_MARS, ProfileCode::GATE_VENUS, ProfileCode::GATE_MARS, ProfileCode::MOVEMENT_VENUS, ProfileCode::MOVEMENT_MARS, ProfileCode::TRANSPOSITION_VENUS, ProfileCode::TRANSPOSITION_MARS, ProfileCode::DISCHARGE_VENUS, ProfileCode::DISCHARGE_MARS, ProfileCode::WATCHER_VENUS, ProfileCode::WATCHER_MARS, ProfileCode::LOOK_VENUS, ProfileCode::LOOK_MARS, ProfileCode::TIME_VENUS,],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ModifiersTableTest.php and 9 other locations - About 5 hrs to fix
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 314..314
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 315..315
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 316..316
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 317..317
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 319..319
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 322..322
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 323..323
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 325..325
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 327..327

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

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

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

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

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

      Refactorings

      Further Reading

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

              ModifierCode::WATCHER => [ProfileCode::BARRIER_VENUS, ProfileCode::BARRIER_MARS, ProfileCode::SPARK_VENUS, ProfileCode::SPARK_MARS, ProfileCode::RELEASE_VENUS, ProfileCode::RELEASE_MARS, ProfileCode::SCENT_VENUS, ProfileCode::SCENT_MARS, ProfileCode::ILLUSION_VENUS, ProfileCode::ILLUSION_MARS, ProfileCode::RECEPTOR_VENUS, ProfileCode::RECEPTOR_MARS, ProfileCode::BREACH_VENUS, ProfileCode::BREACH_MARS, ProfileCode::FIRE_VENUS, ProfileCode::FIRE_MARS, ProfileCode::GATE_VENUS, ProfileCode::GATE_MARS, ProfileCode::MOVEMENT_VENUS, ProfileCode::MOVEMENT_MARS, ProfileCode::TRANSPOSITION_VENUS, ProfileCode::TRANSPOSITION_MARS, ProfileCode::DISCHARGE_VENUS, ProfileCode::DISCHARGE_MARS, ProfileCode::WATCHER_VENUS, ProfileCode::LOOK_VENUS, ProfileCode::LOOK_MARS, ProfileCode::TIME_VENUS, ProfileCode::TIME_MARS],
      Severity: Major
      Found in tests/Tables/Theurgist/Spells/ModifiersTableTest.php and 9 other locations - About 5 hrs to fix
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 314..314
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 316..316
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 317..317
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 319..319
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 322..322
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 323..323
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 324..324
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 325..325
      tests/Tables/Theurgist/Spells/ModifiersTableTest.php on lines 327..327

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

      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

      File ModifierTest.php has 365 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php declare(strict_types = 1);
      
      namespace DrdPlus\Tests\Tables\Theurgist\Spells;
      
      use DrdPlus\Tables\Tables;
      Severity: Minor
      Found in tests/Tables/Theurgist/Spells/ModifierTest.php - About 4 hrs to fix

        File Modifier.php has 363 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php declare(strict_types = 1);
        
        namespace DrdPlus\Tables\Theurgist\Spells;
        
        use DrdPlus\Codes\Theurgist\ModifierCode;
        Severity: Minor
        Found in src/Theurgist/Spells/Modifier.php - About 4 hrs to fix
          Severity
          Category
          Status
          Source
          Language