jaroslavtyc/drd-plus-tables

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

Summary

Maintainability
F
1 wk
Test Coverage

File FormulaTest.php has 802 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php declare(strict_types=1);

namespace DrdPlus\Tests\Tables\Theurgist\Spells;

use DrdPlus\Codes\Theurgist\AffectionPeriodCode;
Severity: Major
Found in tests/Tables/Theurgist/Spells/FormulaTest.php - About 1 day to fix

    FormulaTest has 54 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class FormulaTest extends TestWithMockery
    {
        private static ?string $parameterNamespace = null;
    
        /**
    Severity: Major
    Found in tests/Tables/Theurgist/Spells/FormulaTest.php - About 7 hrs to fix

      The class FormulaTest has 50 non-getter- and setter-methods. Consider refactoring FormulaTest to keep number of methods under 25.
      Open

      class FormulaTest extends TestWithMockery
      {
          private static ?string $parameterNamespace = null;
      
          /**

      TooManyMethods

      Since: 0.1

      A class with too many methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

      By default it ignores methods starting with 'get' or 'set'.

      The default was changed from 10 to 25 in PHPMD 2.3.

      Example

      Source https://phpmd.org/rules/codesize.html#toomanymethods

      The class FormulaTest has 23 public methods. Consider refactoring FormulaTest to keep number of public methods under 10.
      Open

      class FormulaTest extends TestWithMockery
      {
          private static ?string $parameterNamespace = null;
      
          /**

      TooManyPublicMethods

      Since: 0.1

      A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

      By default it ignores methods starting with 'get' or 'set'.

      Example

      Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

      The class FormulaTest has an overall complexity of 75 which is very high. The configured complexity threshold is 50.
      Open

      class FormulaTest extends TestWithMockery
      {
          private static ?string $parameterNamespace = null;
      
          /**

      Method I_can_not_create_it_with_non_integer_addition has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function I_can_not_create_it_with_non_integer_addition()
          {
              $this->expectException(\DrdPlus\Tables\Theurgist\Spells\Exceptions\InvalidValueForFormulaParameter::class);
              $this->expectExceptionMessageMatches('~0\.1~');
              try {
      Severity: Minor
      Found in tests/Tables/Theurgist/Spells/FormulaTest.php - About 1 hr to fix

        Method I_get_difficulty_change_with_every_parameter has 36 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function I_get_difficulty_change_with_every_parameter(): void
            {
                foreach (FormulaCode::getPossibleValues() as $formulaValue) {
                    $formulaCode = FormulaCode::getIt($formulaValue);
                    $formulasTable = $this->createFormulasTable();
        Severity: Minor
        Found in tests/Tables/Theurgist/Spells/FormulaTest.php - About 1 hr to fix

          Method I_get_final_realm has 34 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function I_get_final_realm(): void
              {
                  $formulaCode = FormulaCode::getIt(FormulaCode::PORTAL);
                  $formulasTable = $this->createFormulasTable();
                  foreach (FormulaMutableParameterCode::getPossibleValues() as $mutableParameterName) {
          Severity: Minor
          Found in tests/Tables/Theurgist/Spells/FormulaTest.php - About 1 hr to fix

            Method I_can_not_add_non_zero_addition_to_unused_parameter has 32 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function I_can_not_add_non_zero_addition_to_unused_parameter()
                {
                    $this->expectException(\DrdPlus\Tables\Theurgist\Spells\Exceptions\UnknownFormulaParameter::class);
                    $this->expectExceptionMessageMatches('~4~');
                    try {
            Severity: Minor
            Found in tests/Tables/Theurgist/Spells/FormulaTest.php - About 1 hr to fix

              Method I_can_create_it_with_addition_for_every_formula has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function I_can_create_it_with_addition_for_every_formula(): void
                  {
                      $parametersWithValues = $this->getParametersWithValues();
                      $parameterChanges = [];
                      foreach (FormulaCode::getPossibleValues() as $formulaValue) {
              Severity: Minor
              Found in tests/Tables/Theurgist/Spells/FormulaTest.php - About 1 hr to fix

                Method I_can_not_affect_current_formula_parameter_by_gate_modifier has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function I_can_not_affect_current_formula_parameter_by_gate_modifier(): void
                    {
                        $formulaCode = FormulaCode::getIt(FormulaCode::GREAT_MASSACRE);
                        $formulasTable = $this->createFormulasTable();
                        $byModifiersMutableParameterNames = array_intersect(
                Severity: Minor
                Found in tests/Tables/Theurgist/Spells/FormulaTest.php - About 1 hr to fix

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

                      public function I_can_get_current_realms_affection()
                      {
                          $formulasTable = $this->createFormulasTable();
                          $formula = $this->createFormula(
                              $formulaCode = FormulaCode::getIt(FormulaCode::ILLUSION),
                  Severity: Minor
                  Found in tests/Tables/Theurgist/Spells/FormulaTest.php - About 1 hr to fix

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

                        public function I_get_null_for_unused_modifiers_for_every_formula(): void
                        {
                            foreach (FormulaCode::getPossibleValues() as $formulaValue) {
                                $formulaCode = FormulaCode::getIt($formulaValue);
                                $formulasTable = $this->createFormulasTable();
                    Severity: Minor
                    Found in tests/Tables/Theurgist/Spells/FormulaTest.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_get_basic_difficulty_change_without_any_parameter has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function I_get_basic_difficulty_change_without_any_parameter(): void
                        {
                            foreach (FormulaCode::getPossibleValues() as $formulaValue) {
                                $formulaCode = FormulaCode::getIt($formulaValue);
                                $formulasTable = $this->createFormulasTable();
                    Severity: Minor
                    Found in tests/Tables/Theurgist/Spells/FormulaTest.php - About 25 mins to fix

                    Cognitive Complexity

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

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

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

                    Further reading

                    The class FormulaTest has 1035 lines of code. Current threshold is 1000. Avoid really long classes.
                    Open

                    class FormulaTest extends TestWithMockery
                    {
                        private static ?string $parameterNamespace = null;
                    
                        /**

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

                    class FormulaTest extends TestWithMockery
                    {
                        private static ?string $parameterNamespace = null;
                    
                        /**

                    CouplingBetweenObjects

                    Since: 1.1.0

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

                    Example

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

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

                    Missing class import via use statement (line '44', column '46').
                    Open

                                self::$parameterNamespace = (new \ReflectionClass(SpellSpeed::class))->getNamespaceName();

                    MissingImport

                    Since: 2.7.0

                    Importing all external classes in a file through use statements makes them clearly visible.

                    Example

                    function make() {
                        return new \stdClass();
                    }

                    Source http://phpmd.org/rules/cleancode.html#MissingImport

                    Missing class import via use statement (line '1064', column '18').
                    Open

                                [new \stdClass()]

                    MissingImport

                    Since: 2.7.0

                    Importing all external classes in a file through use statements makes them clearly visible.

                    Example

                    function make() {
                        return new \stdClass();
                    }

                    Source http://phpmd.org/rules/cleancode.html#MissingImport

                    Missing class import via use statement (line '1048', column '18').
                    Open

                                [new \DateTime()]

                    MissingImport

                    Since: 2.7.0

                    Importing all external classes in a file through use statements makes them clearly visible.

                    Example

                    function make() {
                        return new \stdClass();
                    }

                    Source http://phpmd.org/rules/cleancode.html#MissingImport

                    Avoid using static access to class '\Granam\String\StringTools' in method 'I_can_not_affect_current_formula_parameter_by_gate_modifier'.
                    Open

                                $getParameterWithAddition = StringTools::assembleGetterForName($mutableParameterName . 'WithAddition');

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                            $formulaCode = FormulaCode::getIt(FormulaCode::GREAT_MASSACRE);

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                $formulaCode = 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\FormulaCode' in method 'I_get_final_realm'.
                    Open

                            $formulaCode = FormulaCode::getIt(FormulaCode::PORTAL);

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

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

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                            $formula = $this->createFormula(FormulaCode::getIt(FormulaCode::BARRIER), 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\FormulaMutableParameterCode' in method 'I_can_create_it_without_any_change_for_every_formula'.
                    Open

                                foreach (FormulaMutableParameterCode::getPossibleValues() as $mutableParameterName) {

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                            $formulaCode = FormulaCode::getIt(FormulaCode::GREAT_MASSACRE);

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                $modifier = $this->createModifier(ModifierCode::getIt(ModifierCode::GATE));

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                            $formula = $this->createFormula($formulaCode = FormulaCode::getIt(FormulaCode::DISCHARGE), $this->createTables($formulasTable));

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                        $this->createModifierWithRadius(2, ModifierCode::getIt(ModifierCode::MOVEMENT)),

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

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

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

                    Avoid using static access to class '\Granam\String\StringTools' in method 'I_can_not_affect_current_formula_parameter_by_gate_modifier'.
                    Open

                                $getCurrentParameter = StringTools::assembleGetterForName('current' . ucfirst($mutableParameterName));

                    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 '\Granam\String\StringTools' in method 'I_can_not_affect_formula_spell_power_by_thunder_modifier'.
                    Open

                            $getCurrentParameter = StringTools::assembleGetterForName('current' . ucfirst(ModifierMutableParameterCode::SPELL_POWER));

                    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 '\Granam\String\StringTools' in method 'getParameterClass'.
                    Open

                            $parameterClassBasename = ucfirst(StringTools::assembleMethodName($parameterName));

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

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

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

                    Avoid using static access to class '\DrdPlus\Codes\Theurgist\FormulaMutableParameterCode' in method 'I_get_basic_difficulty_change_without_any_parameter'.
                    Open

                                foreach (FormulaMutableParameterCode::getPossibleValues() as $mutableParameterName) {

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                $formulaCode = 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 '\Granam\String\StringTools' in method 'addBaseParameterGetter'.
                    Open

                            $getProperty = StringTools::assembleGetterForName($parameterName);

                    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\ModifierMutableParameterCode' in method 'I_can_not_affect_current_formula_parameter_by_gate_modifier'.
                    Open

                                ModifierMutableParameterCode::getPossibleValues()

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

                    Avoid using static access to class '\Granam\String\StringTools' in method 'I_can_not_affect_formula_parameter_by_modifier_without_that_parameter_affection'.
                    Open

                            $getCurrentParameter = StringTools::assembleGetterForName('current' . ucfirst(ModifierMutableParameterCode::SPELL_POWER));

                    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\FormulaMutableParameterCode' in method 'I_can_create_it_with_addition_for_every_formula'.
                    Open

                                foreach (FormulaMutableParameterCode::getPossibleValues() as $mutableParameterName) {

                    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\FormulaMutableParameterCode' in method 'I_get_difficulty_change_with_every_parameter'.
                    Open

                                foreach (FormulaMutableParameterCode::getPossibleValues() as $mutableParameterName) {

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                FormulaCode::getIt(FormulaCode::PORTAL),

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                            $formulaCode = FormulaCode::getIt(FormulaCode::BARRIER);

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

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

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                            $modifiers = [new Modifier(ModifierCode::getIt(ModifierCode::TRANSPOSITION), Tables::getIt(), [], [])];

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                            $formula = $this->createFormula(FormulaCode::getIt(FormulaCode::BARRIER), 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\ModifierCode' in method 'I_can_not_affect_formula_spell_power_by_thunder_modifier'.
                    Open

                            $thunderModifier = $this->createModifier(ModifierCode::getIt(ModifierCode::THUNDER));

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                            $modifier = $this->createModifier(ModifierCode::getIt(ModifierCode::TRANSPOSITION));

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                $formulaCode = 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\FormulaCode' in method 'I_can_get_current_spell_power_without_power_addition'.
                    Open

                            $formulaCode = FormulaCode::getIt(FormulaCode::BARRIER);

                    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 '\Granam\String\StringTools' in method 'I_can_create_it_without_any_change_for_every_formula'.
                    Open

                                    $getCurrentParameter = StringTools::assembleGetterForName('current' . ucfirst($mutableParameterName));

                    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\FormulaMutableParameterCode' in method 'I_get_null_for_unused_modifiers_for_every_formula'.
                    Open

                                foreach (FormulaMutableParameterCode::getPossibleValues() as $mutableParameterName) {

                    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 '\Granam\String\StringTools' in method 'I_can_create_it_with_addition_for_every_formula'.
                    Open

                                    $getCurrentParameter = StringTools::assembleGetterForName('current' . $mutableParameterName);

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                $formulaCode = 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\FormulaCode' in method 'I_can_get_current_realms_affection'.
                    Open

                                $formulaCode = FormulaCode::getIt(FormulaCode::ILLUSION),

                    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 '\Granam\String\StringTools' in method 'I_can_not_affect_formula_parameter_by_modifier_without_that_parameter_affection'.
                    Open

                            $getParameterWithAddition = StringTools::assembleGetterForName(ModifierMutableParameterCode::SPELL_POWER . 'WithAddition');

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                            $modifiers = [new Modifier(ModifierCode::getIt(ModifierCode::TRANSPOSITION), Tables::getIt(), [], [])];

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                FormulaCode::getIt(FormulaCode::PORTAL),

                    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\FormulaMutableParameterCode' in method 'I_can_create_it_with_addition_for_every_formula'.
                    Open

                                foreach (FormulaMutableParameterCode::getPossibleValues() as $mutableParameterName) {

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                            $this->createModifierWithRadius(4, ModifierCode::getIt(ModifierCode::INVISIBILITY)),

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                            $modifiers = [$this->createModifierWithSpellPowerAddition(123, ModifierCode::getIt(ModifierCode::BREACH))];

                    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 '\Granam\String\StringTools' in method 'I_can_not_affect_formula_spell_power_by_thunder_modifier'.
                    Open

                            $getParameterWithAddition = StringTools::assembleGetterForName(ModifierMutableParameterCode::SPELL_POWER . 'WithAddition');

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                            $formulaCode = FormulaCode::getIt(FormulaCode::GREAT_MASSACRE);

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                            $formulaCode = FormulaCode::getIt(FormulaCode::TSUNAMI_FROM_CLAY_AND_STONES);

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                $formulaCode = 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\FormulaMutableParameterCode' in method 'getParametersWithValues'.
                    Open

                            $missedParameters = array_diff(FormulaMutableParameterCode::getPossibleValues(), array_keys($parametersWithValues));

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                    $this->createModifierWithRadius(1, ModifierCode::getIt(ModifierCode::FILTER)),

                    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 '\Granam\String\StringTools' in method 'I_get_null_for_unused_modifiers_for_every_formula'.
                    Open

                                    $getCurrentParameter = StringTools::assembleGetterForName('current' . $mutableParameterName);

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

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

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                            $modifiers = [$this->createModifierWithSpellSpeedAddition(123, ModifierCode::getIt(ModifierCode::BREACH))];

                    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\FormulaMutableParameterCode' in method 'I_can_not_affect_current_formula_parameter_by_gate_modifier'.
                    Open

                                FormulaMutableParameterCode::getPossibleValues(),

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

                    Avoid using static access to class '\DrdPlus\Codes\Theurgist\FormulaMutableParameterCode' in method 'I_get_final_realm'.
                    Open

                            foreach (FormulaMutableParameterCode::getPossibleValues() as $mutableParameterName) {

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                            $this->createModifierWithRadius(3, ModifierCode::getIt(ModifierCode::COLOR)),

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                    ModifierCode::getIt(ModifierCode::TRANSPOSITION),

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                ->andReturn(new EpicenterShift([20 /* distance bonus 20 = 10 meters */, 0], Tables::getIt()));

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                FormulaCode::getIt(FormulaCode::LIGHT),

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                FormulaCode::getIt(FormulaCode::LIGHT),

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                    FormulaCode::getIt(FormulaCode::LIGHT),

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                    FormulaCode::getIt(FormulaCode::LIGHT),

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                            $formulaCode = FormulaCode::getIt(FormulaCode::GREAT_MASSACRE);

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                FormulaCode::getIt(FormulaCode::PORTAL),

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                FormulaCode::getIt(FormulaCode::PORTAL),

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                FormulaCode::getIt(FormulaCode::PORTAL),

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                FormulaCode::getIt(FormulaCode::PORTAL),

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                    Tables::getIt(),

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                $formulaCode = FormulaCode::getIt(FormulaCode::PORTAL);

                    StaticAccess

                    Since: 1.4.0

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

                    Example

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

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

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

                                $formulaCode = FormulaCode::getIt(FormulaCode::PORTAL);

                    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 unused local variables such as '$radiusWithAddition'.
                    Open

                            $this->addWithAdditionGetter(0, $radius, $radiusWithAddition = $this->createRadius(456));

                    UnusedLocalVariable

                    Since: 0.2

                    Detects when a local variable is declared and/or assigned, but not used.

                    Example

                    class Foo {
                        public function doSomething()
                        {
                            $i = 5; // Unused
                        }
                    }

                    Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

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

                            foreach (FormulaCode::getPossibleValues() as $formulaValue) {
                                $formulaCode = FormulaCode::getIt($formulaValue);
                                $formulasTable = $this->createFormulasTable();
                                $baseParameters = [];
                                foreach (FormulaMutableParameterCode::getPossibleValues() as $mutableParameterName) {
                    Severity: Major
                    Found in tests/Tables/Theurgist/Spells/FormulaTest.php and 1 other location - About 1 day to fix
                    tests/Tables/Theurgist/Demons/DemonTest.php on lines 265..295

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

                    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_not_affect_formula_spell_power_by_thunder_modifier(): void
                        {
                            $formulaCode = FormulaCode::getIt(FormulaCode::GREAT_MASSACRE);
                            $formulasTable = $this->createFormulasTable();
                            /** like instance of @see SpellPower */
                    Severity: Major
                    Found in tests/Tables/Theurgist/Spells/FormulaTest.php and 1 other location - About 7 hrs to fix
                    tests/Tables/Theurgist/Spells/FormulaTest.php on lines 260..288

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

                    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_not_affect_formula_parameter_by_modifier_without_that_parameter_affection(): void
                        {
                            $formulaCode = FormulaCode::getIt(FormulaCode::GREAT_MASSACRE);
                            $formulasTable = $this->createFormulasTable();
                            /** like instance of @see SpellPower */
                    Severity: Major
                    Found in tests/Tables/Theurgist/Spells/FormulaTest.php and 1 other location - About 7 hrs to fix
                    tests/Tables/Theurgist/Spells/FormulaTest.php on lines 227..255

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

                    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_current_spell_speed_without_power_addition()
                        {
                            $formulaCode = FormulaCode::getIt(FormulaCode::BARRIER);
                            $formulasTable = $this->createFormulasTable();
                            $formulasTable->shouldReceive('getSpellSpeed')
                    Severity: Major
                    Found in tests/Tables/Theurgist/Spells/FormulaTest.php and 1 other location - About 2 hrs to fix
                    tests/Tables/Theurgist/Spells/FormulaTest.php on lines 807..817

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

                    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_current_spell_power_without_power_addition()
                        {
                            $formulaCode = FormulaCode::getIt(FormulaCode::BARRIER);
                            $formulasTable = $this->createFormulasTable();
                            $formulasTable->shouldReceive('getSpellPower')
                    Severity: Major
                    Found in tests/Tables/Theurgist/Spells/FormulaTest.php and 1 other location - About 2 hrs to fix
                    tests/Tables/Theurgist/Spells/FormulaTest.php on lines 849..859

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

                    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

                                foreach (FormulaMutableParameterCode::getPossibleValues() as $mutableParameterName) {
                                    $parameter = $this->createExpectedParameter($mutableParameterName);
                                    $this->addBaseParameterGetter($mutableParameterName, $formulaCode, $formulasTable, $parameter);
                                    $changedParameter = $this->createExpectedParameter($mutableParameterName);
                                    $this->addWithAdditionGetter(0, $parameter, $changedParameter);
                    Severity: Major
                    Found in tests/Tables/Theurgist/Spells/FormulaTest.php and 1 other location - About 1 hr to fix
                    tests/Tables/Theurgist/Spells/ModifierTest.php on lines 281..289

                    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

                        private function addDemonDifficultyGetter(
                            MockInterface $formulaTable,
                            FormulaCode $expectedFormulaCode,
                            int $expectedDifficultyChange,
                            Difficulty $formulaChangedDifficulty = null
                    Severity: Major
                    Found in tests/Tables/Theurgist/Spells/FormulaTest.php and 1 other location - About 1 hr to fix
                    tests/Tables/Theurgist/Demons/DemonTest.php on lines 448..461

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

                    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_current_evocation()
                        {
                            $formulasTable = $this->createFormulasTable();
                            $formula = $this->createFormula($formulaCode = FormulaCode::getIt(FormulaCode::DISCHARGE), $this->createTables($formulasTable));
                            $formulasTable->shouldReceive('getEvocation')
                    Severity: Minor
                    Found in tests/Tables/Theurgist/Spells/FormulaTest.php and 1 other location - About 1 hr to fix
                    tests/Tables/Theurgist/Demons/DemonTest.php on lines 332..340

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

                    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

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

                                foreach (FormulaMutableParameterCode::getPossibleValues() as $mutableParameterName) {
                                    $baseParameter = null;
                                    if ($mutableParameterName === FormulaMutableParameterCode::SPELL_DURATION) {
                                        // duration can not be null
                                        $baseParameter = $this->createExpectedParameter(FormulaMutableParameterCode::SPELL_DURATION);
                    Severity: Minor
                    Found in tests/Tables/Theurgist/Spells/FormulaTest.php and 1 other location - About 40 mins to fix
                    tests/Tables/Theurgist/Spells/FormulaTest.php on lines 655..664

                    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

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

                            foreach (FormulaMutableParameterCode::getPossibleValues() as $mutableParameterName) {
                                $baseParameter = null;
                                if ($mutableParameterName === FormulaMutableParameterCode::SPELL_DURATION) {
                                    // duration can not be null
                                    $baseParameter = $this->createExpectedParameter(FormulaMutableParameterCode::SPELL_DURATION);
                    Severity: Minor
                    Found in tests/Tables/Theurgist/Spells/FormulaTest.php and 1 other location - About 40 mins to fix
                    tests/Tables/Theurgist/Spells/FormulaTest.php on lines 385..394

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

                            $parameterClassBasename = ucfirst(StringTools::assembleMethodName($parameterName));

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

                        private function getSpellTrait(int $difficultyChangeValue)

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

                        private function createRealmsAffection(string $periodName, int $formulaAffectionValue)

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

                        private function createFormula(FormulaCode $formulaCode, Tables $tables, array $formulaSpellParameterValues = [], array $modifiers = []): Formula

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

                            int $expectedDifficultyChange,

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

                            $formulaWithoutModifiers = $this->createFormula($formulaCode, $this->createTables($formulasTable));

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

                            $formulaWithLowModifiers = new Formula($formulaCode, $this->createTables($formulasTable), [], $lowModifiers, []);

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

                            $getParameterWithAddition = StringTools::assembleGetterForName(ModifierMutableParameterCode::SPELL_POWER . 'WithAddition');

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

                                $parameterDifficulties = [];

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

                            $expectedEpicenterShiftDistance = new Distance(1, Distance::METER, Tables::getIt()->getDistanceTable());

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

                            $byModifiersMutableParameterNames = array_intersect(

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

                            Difficulty $formulaChangedDifficulty = null

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

                            $formulaWithHighModifiers = new Formula($formulaCode, $this->createTables($formulasTable), [], $highModifiers, []);

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

                            int $expectedRealmsIncrement,

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

                        private function addCurrentRealmsIncrementGetter(MockInterface $formulaDifficulty, int $currentRealmsIncrement): void

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

                                $getParameterWithAddition = StringTools::assembleGetterForName($mutableParameterName . 'WithAddition');

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

                            $getParameterWithAddition = StringTools::assembleGetterForName(ModifierMutableParameterCode::SPELL_POWER . 'WithAddition');

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

                        private function createModifierWithDifficulty(int $difficultyChangeValue)

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

                            $expectedEpicenterShiftDistance = new Distance(42, Distance::METER, Tables::getIt()->getDistanceTable());

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

                        public function I_will_get_its_code_name_as_string_representation()
                        {
                            $formula = $this->createFormula(FormulaCode::getIt(FormulaCode::BARRIER), Tables::getIt());
                            self::assertSame(FormulaCode::BARRIER, (string)$formula);
                        }

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

                        public function I_can_get_current_evocation()
                        {
                            $formulasTable = $this->createFormulasTable();
                            $formula = $this->createFormula($formulaCode = FormulaCode::getIt(FormulaCode::DISCHARGE), $this->createTables($formulasTable));
                            $formulasTable->shouldReceive('getEvocation')

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

                        public function I_can_get_current_radius(): void
                        {
                            $formulasTable = $this->createFormulasTable();
                            $formula = $this->createFormula(
                                FormulaCode::getIt(FormulaCode::PORTAL),

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

                        public function I_can_create_it_without_any_change_for_every_formula(): void
                        {
                            foreach (FormulaCode::getPossibleValues() as $formulaValue) {
                                $formulaCode = FormulaCode::getIt($formulaValue);
                                $formulasTable = $this->createFormulasTable();

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

                        public function I_can_not_affect_current_formula_parameter_by_gate_modifier(): void
                        {
                            $formulaCode = FormulaCode::getIt(FormulaCode::GREAT_MASSACRE);
                            $formulasTable = $this->createFormulasTable();
                            $byModifiersMutableParameterNames = array_intersect(

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

                        public function I_can_get_current_spell_speed_without_power_addition()
                        {
                            $formulaCode = FormulaCode::getIt(FormulaCode::BARRIER);
                            $formulasTable = $this->createFormulasTable();
                            $formulasTable->shouldReceive('getSpellSpeed')

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

                        public function I_can_get_current_realms_affection()
                        {
                            $formulasTable = $this->createFormulasTable();
                            $formula = $this->createFormula(
                                $formulaCode = FormulaCode::getIt(FormulaCode::ILLUSION),

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

                        public function I_get_difficulty_change_with_every_parameter(): void
                        {
                            foreach (FormulaCode::getPossibleValues() as $formulaValue) {
                                $formulaCode = FormulaCode::getIt($formulaValue);
                                $formulasTable = $this->createFormulasTable();

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

                        public function I_can_create_it_with_addition_for_every_formula(): void
                        {
                            $parametersWithValues = $this->getParametersWithValues();
                            $parameterChanges = [];
                            foreach (FormulaCode::getPossibleValues() as $formulaValue) {

                    CamelCaseMethodName

                    Since: 0.2

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

                    Example

                    class ClassName {
                        public function get_name() {
                        }
                    }

                    Source

                    The method I_get_basic_difficulty_change_without_any_parameter is not named in camelCase.
                    Open

                        public function I_get_basic_difficulty_change_without_any_parameter(): void
                        {
                            foreach (FormulaCode::getPossibleValues() as $formulaValue) {
                                $formulaCode = FormulaCode::getIt($formulaValue);
                                $formulasTable = $this->createFormulasTable();

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

                        public function I_can_get_current_epicenter_shift_changed_by_modifiers_only()
                        {
                            $formulaCode = FormulaCode::getIt(FormulaCode::TSUNAMI_FROM_CLAY_AND_STONES);
                            $formulasTable = $this->createFormulasTable();
                            $formulasTable->shouldReceive('getEpicenterShift')

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

                        public function I_can_not_affect_formula_spell_power_by_thunder_modifier(): void
                        {
                            $formulaCode = FormulaCode::getIt(FormulaCode::GREAT_MASSACRE);
                            $formulasTable = $this->createFormulasTable();
                            /** like instance of @see SpellPower */

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

                        public function I_can_get_current_spell_power_without_power_addition()
                        {
                            $formulaCode = FormulaCode::getIt(FormulaCode::BARRIER);
                            $formulasTable = $this->createFormulasTable();
                            $formulasTable->shouldReceive('getSpellPower')

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

                        public function I_get_null_for_unused_modifiers_for_every_formula(): void
                        {
                            foreach (FormulaCode::getPossibleValues() as $formulaValue) {
                                $formulaCode = FormulaCode::getIt($formulaValue);
                                $formulasTable = $this->createFormulasTable();

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

                        public function I_can_not_affect_formula_parameter_by_modifier_without_that_parameter_affection(): void
                        {
                            $formulaCode = FormulaCode::getIt(FormulaCode::GREAT_MASSACRE);
                            $formulasTable = $this->createFormulasTable();
                            /** like instance of @see SpellPower */

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

                        public function I_can_get_final_casting_rounds_affected_by_modifiers(): void
                        {
                            $formulasTable = $this->createFormulasTable();
                            $formula = $this->createFormula(
                                FormulaCode::getIt(FormulaCode::PORTAL),

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

                        public function I_get_final_realm(): void
                        {
                            $formulaCode = FormulaCode::getIt(FormulaCode::PORTAL);
                            $formulasTable = $this->createFormulasTable();
                            foreach (FormulaMutableParameterCode::getPossibleValues() as $mutableParameterName) {

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

                        public function I_can_not_create_it_with_invalid_spell_trait()
                        {
                            $this->expectException(\DrdPlus\Tables\Theurgist\Spells\Exceptions\InvalidSpellTrait::class);
                            $this->expectExceptionMessageMatches('~stdClass~');
                            new Formula(

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

                        public function I_can_not_create_it_with_addition_of_unknown_addition()
                        {
                            $this->expectException(\DrdPlus\Tables\Theurgist\Spells\Exceptions\UnknownFormulaParameter::class);
                            $this->expectExceptionMessageMatches('~divine~');
                            $this->createFormula(

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

                        public function I_can_not_create_it_with_non_integer_addition()
                        {
                            $this->expectException(\DrdPlus\Tables\Theurgist\Spells\Exceptions\InvalidValueForFormulaParameter::class);
                            $this->expectExceptionMessageMatches('~0\.1~');
                            try {

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

                        public function I_can_not_create_it_with_invalid_modifier()
                        {
                            $this->expectException(\DrdPlus\Tables\Theurgist\Spells\Exceptions\InvalidModifier::class);
                            $this->expectExceptionMessageMatches('~DateTime~');
                            $this->createFormula(

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

                        public function I_can_not_add_non_zero_addition_to_unused_parameter()
                        {
                            $this->expectException(\DrdPlus\Tables\Theurgist\Spells\Exceptions\UnknownFormulaParameter::class);
                            $this->expectExceptionMessageMatches('~4~');
                            try {

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

                        public function I_can_get_current_epicenter_shift_changed_both_by_formula_and_modifiers()
                        {
                            $formulaCode = FormulaCode::getIt(FormulaCode::GREAT_MASSACRE);
                            $formulasTable = $this->createFormulasTable();
                            $formulasTable->shouldReceive('getEpicenterShift')

                    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