XoopsModules25x/xlanguage

View on GitHub
class/LanguageHandler.php

Summary

Maintainability
D
2 days
Test Coverage

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

class LanguageHandler extends XoopsObjectHandler
{
    public $cachedConfig;

    public function loadConfig()
Severity: Minor
Found in class/LanguageHandler.php by phpmd

File LanguageHandler.php has 290 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

namespace XoopsModules\Xlanguage;

/**
Severity: Minor
Found in class/LanguageHandler.php - About 2 hrs to fix

    Method insert has 72 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function insert($lang)
        {
            $val_array = [];
            if (!$lang->isDirty()) {
                return true;
    Severity: Major
    Found in class/LanguageHandler.php - About 2 hrs to fix

      Function insert has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
      Open

          public function insert($lang)
          {
              $val_array = [];
              if (!$lang->isDirty()) {
                  return true;
      Severity: Minor
      Found in class/LanguageHandler.php - About 2 hrs 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

      Method createConfig has 47 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function createConfig()
          {
              $file_config = \XLANGUAGE_CONFIG_FILE;
              if (\is_file($file_config)) {
                  \unlink($file_config);
      Severity: Minor
      Found in class/LanguageHandler.php - About 1 hr to fix

        Function getByName has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
        Open

            public function getByName($name, $isBase = false)
            {
                $array = [];
                $lang  = null;
                if (empty($name) || \preg_match('/[^a-zA-Z0-9\_\-]/', $name)) {
        Severity: Minor
        Found in class/LanguageHandler.php - About 1 hr 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

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

            public function getByName($name, $isBase = false)
            {
                $array = [];
                $lang  = null;
                if (empty($name) || \preg_match('/[^a-zA-Z0-9\_\-]/', $name)) {
        Severity: Minor
        Found in class/LanguageHandler.php - About 1 hr to fix

          Function createConfig has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
          Open

              public function createConfig()
              {
                  $file_config = \XLANGUAGE_CONFIG_FILE;
                  if (\is_file($file_config)) {
                      \unlink($file_config);
          Severity: Minor
          Found in class/LanguageHandler.php - About 55 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 get has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
          Open

              public function get($id, $isBase = true)
              {
                  $array = [];
                  $lang  = null;
                  $id    = (int)$id;
          Severity: Minor
          Found in class/LanguageHandler.php - About 45 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 getAll has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
          Open

              public function getAll($isBase = true)
              {
                  $prefix = $isBase ? 'xlanguage_base' : 'xlanguage_ext';
                  $ret    = [];
                  if (isset($this->cachedConfig[$prefix])) {
          Severity: Minor
          Found in class/LanguageHandler.php - About 45 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 getAllList has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
          Open

              public function getAllList()
              {
                  $baseArray = $this->getAll();
          
                  $extArray = $this->getAll(false);
          Severity: Minor
          Found in class/LanguageHandler.php - About 35 mins to fix

          Cognitive Complexity

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

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

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

          Further reading

          Avoid too many return statements within this method.
          Open

                  return $lang->getVar('lang_id');
          Severity: Major
          Found in class/LanguageHandler.php - About 30 mins to fix

            The method insert() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CyclomaticComplexity

            Since: 0.1

            Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

            Example

            // Cyclomatic Complexity = 11
            class Foo {
            1   public function example() {
            2       if ($a == $b) {
            3           if ($a1 == $b1) {
                            fiddle();
            4           } elseif ($a2 == $b2) {
                            fiddle();
                        } else {
                            fiddle();
                        }
            5       } elseif ($c == $d) {
            6           while ($c == $d) {
                            fiddle();
                        }
            7        } elseif ($e == $f) {
            8           for ($n = 0; $n < $h; $n++) {
                            fiddle();
                        }
                    } else {
                        switch ($z) {
            9               case 1:
                                fiddle();
                                break;
            10              case 2:
                                fiddle();
                                break;
            11              case 3:
                                fiddle();
                                break;
                            default:
                                fiddle();
                                break;
                        }
                    }
                }
            }

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

            The method getByName() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10.
            Open

                public function getByName($name, $isBase = false)
                {
                    $array = [];
                    $lang  = null;
                    if (empty($name) || \preg_match('/[^a-zA-Z0-9\_\-]/', $name)) {
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CyclomaticComplexity

            Since: 0.1

            Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

            Example

            // Cyclomatic Complexity = 11
            class Foo {
            1   public function example() {
            2       if ($a == $b) {
            3           if ($a1 == $b1) {
                            fiddle();
            4           } elseif ($a2 == $b2) {
                            fiddle();
                        } else {
                            fiddle();
                        }
            5       } elseif ($c == $d) {
            6           while ($c == $d) {
                            fiddle();
                        }
            7        } elseif ($e == $f) {
            8           for ($n = 0; $n < $h; $n++) {
                            fiddle();
                        }
                    } else {
                        switch ($z) {
            9               case 1:
                                fiddle();
                                break;
            10              case 2:
                                fiddle();
                                break;
            11              case 3:
                                fiddle();
                                break;
                            default:
                                fiddle();
                                break;
                        }
                    }
                }
            }

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

            The method create has a boolean flag argument $isBase, which is a certain sign of a Single Responsibility Principle violation.
            Open

                public function create($isNew = true, $isBase = true)
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            BooleanArgumentFlag

            Since: 1.4.0

            A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

            Example

            class Foo {
                public function bar($flag = true) {
                }
            }

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

            The method get has a boolean flag argument $isBase, which is a certain sign of a Single Responsibility Principle violation.
            Open

                public function get($id, $isBase = true)
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            BooleanArgumentFlag

            Since: 1.4.0

            A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

            Example

            class Foo {
                public function bar($flag = true) {
                }
            }

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

            The method getByName has a boolean flag argument $isBase, which is a certain sign of a Single Responsibility Principle violation.
            Open

                public function getByName($name, $isBase = false)
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            BooleanArgumentFlag

            Since: 1.4.0

            A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

            Example

            class Foo {
                public function bar($flag = true) {
                }
            }

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

            The method getAll has a boolean flag argument $isBase, which is a certain sign of a Single Responsibility Principle violation.
            Open

                public function getAll($isBase = true)
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            BooleanArgumentFlag

            Since: 1.4.0

            A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

            Example

            class Foo {
                public function bar($flag = true) {
                }
            }

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

            The method create has a boolean flag argument $isNew, which is a certain sign of a Single Responsibility Principle violation.
            Open

                public function create($isNew = true, $isBase = true)
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            BooleanArgumentFlag

            Since: 1.4.0

            A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

            Example

            class Foo {
                public function bar($flag = true) {
                }
            }

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

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

                    } else {
                        $var_array = [
                            'weight',
                            'lang_name',
                            'lang_desc',
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            ElseExpression

            Since: 1.4.0

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

            Example

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

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

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

                        } else {
                            $isBase = true;
                        }
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            ElseExpression

            Since: 1.4.0

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

            Example

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

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

            Avoid assigning values to variables in if clauses and the like (line '264', column '18').
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            IfStatementAssignment

            Since: 2.7.0

            Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

            Example

            class Foo
            {
                public function bar($flag)
                {
                    if ($foo = 'bar') { // possible typo
                        // ...
                    }
                    if ($baz = 0) { // always false
                        // ...
                    }
                }
            }

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

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

                    } else {
                        $sql = 'SELECT * FROM ' . $this->db->prefix($prefix) . ' WHERE lang_id=' . $id;
                        /** @var \mysqli_result|false $result */
                        $result = $this->db->query($sql);
                        if ($result) {
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            ElseExpression

            Since: 1.4.0

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

            Example

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

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

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

                    } else {
                        $lang = new Xlanguage\Language();
                    }
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            ElseExpression

            Since: 1.4.0

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

            Example

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

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

            Avoid assigning values to variables in if clauses and the like (line '339', column '14').
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            IfStatementAssignment

            Since: 2.7.0

            Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

            Example

            class Foo
            {
                public function bar($flag)
                {
                    if ($foo = 'bar') { // possible typo
                        // ...
                    }
                    if ($baz = 0) { // always false
                        // ...
                    }
                }
            }

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

            Avoid using static access to class '\XoopsLists' in method 'getXoopsLangList'.
            Open

                    return XoopsLists::getLangList();
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            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 assigning values to variables in if clauses and the like (line '292', column '18').
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            IfStatementAssignment

            Since: 2.7.0

            Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

            Example

            class Foo
            {
                public function bar($flag)
                {
                    if ($foo = 'bar') { // possible typo
                        // ...
                    }
                    if ($baz = 0) { // always false
                        // ...
                    }
                }
            }

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

            Avoid assigning values to variables in if clauses and the like (line '314', column '14').
            Open

                public function delete($lang)//delete(&$lang)
                {
                    if (!\is_object($lang) || !$lang->getVar('lang_id')) {
                        return true;
                    }
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            IfStatementAssignment

            Since: 2.7.0

            Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

            Example

            class Foo
            {
                public function bar($flag)
                {
                    if ($foo = 'bar') { // possible typo
                        // ...
                    }
                    if ($baz = 0) { // always false
                        // ...
                    }
                }
            }

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

            Avoid unused local variables such as '$lang_name'.
            Open

                        foreach ($array as $lang_name => $myrow) {
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            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

            Avoid unused local variables such as '$result'.
            Open

                        if (!$result = $this->db->queryF($sql)) {
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            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

            Avoid unused local variables such as '$result'.
            Open

                    if (!$result = $this->db->query($sql)) {
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            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

            Avoid variables with short names like $fp. Configured minimum length is 3.
            Open

                    if (!$fp = \fopen($file_config, 'wb')) {
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            ShortVariable

            Since: 0.2

            Detects when a field, local, or parameter has a very short name.

            Example

            class Something {
                private $q = 15; // VIOLATION - Field
                public static function main( array $as ) { // VIOLATION - Formal
                    $r = 20 + $this->q; // VIOLATION - Local
                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                        $r += $this->q;
                    }
                }
            }

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

            Avoid variables with short names like $id. Configured minimum length is 3.
            Open

                public function get($id, $isBase = true)
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            ShortVariable

            Since: 0.2

            Detects when a field, local, or parameter has a very short name.

            Example

            class Something {
                private $q = 15; // VIOLATION - Field
                public static function main( array $as ) { // VIOLATION - Formal
                    $r = 20 + $this->q; // VIOLATION - Local
                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                        $r += $this->q;
                    }
                }
            }

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

            There must be one blank line after the last USE statement; 17 found;
            Open

            use XoopsObjectHandler;
            Severity: Minor
            Found in class/LanguageHandler.php by phpcodesniffer

            Line exceeds 120 characters; contains 133 characters
            Open

                        $sql = 'INSERT INTO ' . $lang->table . ' (' . \implode(',', $var_array) . ') VALUES (' . \implode(',', $val_array) . ')';
            Severity: Minor
            Found in class/LanguageHandler.php by phpcodesniffer

            Line exceeds 120 characters; contains 124 characters
            Open

                        $sql        = 'UPDATE ' . $lang->table . ' SET ' . $set_string . ' WHERE lang_id = ' . $lang->getVar('lang_id');
            Severity: Minor
            Found in class/LanguageHandler.php by phpcodesniffer

            The variable $var_array is not named in camelCase.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $set_array is not named in camelCase.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $lang_name is not named in camelCase.
            Open

                public function getAll($isBase = true)
                {
                    $prefix = $isBase ? 'xlanguage_base' : 'xlanguage_ext';
                    $ret    = [];
                    if (isset($this->cachedConfig[$prefix])) {
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_config is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_config is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $set_string is not named in camelCase.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_config is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_config is not named in camelCase.
            Open

                public function loadFileConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (!\is_file($file_config)) {
                        $this->createConfig();
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $lang_id is not named in camelCase.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $val_array is not named in camelCase.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $var_array is not named in camelCase.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $var_array is not named in camelCase.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_config is not named in camelCase.
            Open

                public function loadFileConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (!\is_file($file_config)) {
                        $this->createConfig();
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $lang_id is not named in camelCase.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $var_array is not named in camelCase.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $var_array is not named in camelCase.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $lang_id is not named in camelCase.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_config is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_config is not named in camelCase.
            Open

                public function loadFileConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (!\is_file($file_config)) {
                        $this->createConfig();
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $set_array is not named in camelCase.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $set_string is not named in camelCase.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_config is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_config is not named in camelCase.
            Open

                public function loadFileConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (!\is_file($file_config)) {
                        $this->createConfig();
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $val_array is not named in camelCase.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $lang_id is not named in camelCase.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $var_array is not named in camelCase.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $val_array is not named in camelCase.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $set_array is not named in camelCase.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $var_array is not named in camelCase.
            Open

                public function insert($lang)
                {
                    $val_array = [];
                    if (!$lang->isDirty()) {
                        return true;
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            The variable $file_content is not named in camelCase.
            Open

                public function createConfig()
                {
                    $file_config = \XLANGUAGE_CONFIG_FILE;
                    if (\is_file($file_config)) {
                        \unlink($file_config);
            Severity: Minor
            Found in class/LanguageHandler.php by phpmd

            CamelCaseVariableName

            Since: 0.2

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

            Example

            class ClassName {
                public function doSomething() {
                    $data_module = new DataModule();
                }
            }

            Source

            There are no issues that match your filters.

            Category
            Status