TikiWiki/tiki-manager

View on GitHub
src/Ext/Password.php

Summary

Maintainability
D
2 days
Test Coverage

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

class Password
{

    /**
     * Create a single password.
Severity: Minor
Found in src/Ext/Password.php by phpmd

File Password.php has 269 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

namespace TikiManager\Ext;

Severity: Minor
Found in src/Ext/Password.php - About 2 hrs to fix

    Method createUnpronounceable has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private static function createUnpronounceable($length, $chars)
        {
            global $_Text_Password_NumberOfPossibleCharacters;
    
            $password = '';
    Severity: Minor
    Found in src/Ext/Password.php - About 1 hr to fix

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

          private static function rotx($login, $key)
          {
              $tmp = '';
              $login = strtolower($login);
      
      
      Severity: Minor
      Found in src/Ext/Password.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 rotxpp has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
      Open

          private static function rotxpp($login, $key)
          {
              $tmp = '';
              $login = strtolower($login);
      
      
      Severity: Minor
      Found in src/Ext/Password.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 rotxmm has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
      Open

          private static function rotxmm($login, $key)
          {
              $tmp = '';
              $login = strtolower($login);
      
      
      Severity: Minor
      Found in src/Ext/Password.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 createMultipleFromLogin has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          public static function createMultipleFromLogin($login, $type, $key = 0)
          {
              $passwords = [];
              $number    = count($login);
              $save      = $number;
      Severity: Minor
      Found in src/Ext/Password.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 createMultiple has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          public static function createMultiple($number, $length = 10, $type = 'pronounceable', $chars = '')
          {
              $passwords = [];
      
              while ($number > 0) {
      Severity: Minor
      Found in src/Ext/Password.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 Password::rotx($login, $key);
      Severity: Major
      Found in src/Ext/Password.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return Password::rotxmm($login, $key);
        Severity: Major
        Found in src/Ext/Password.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return Password::asciiRotxmm($login, $key);
          Severity: Major
          Found in src/Ext/Password.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return '';
            Severity: Major
            Found in src/Ext/Password.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return Password::rotxpp($login, $key);
              Severity: Major
              Found in src/Ext/Password.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return Password::asciiRotx($login, $key);
                Severity: Major
                Found in src/Ext/Password.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return Password::asciiRotxpp($login, $key);
                  Severity: Major
                  Found in src/Ext/Password.php - About 30 mins to fix

                    Function createUnpronounceable has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                    Open

                        private static function createUnpronounceable($length, $chars)
                        {
                            global $_Text_Password_NumberOfPossibleCharacters;
                    
                            $password = '';
                    Severity: Minor
                    Found in src/Ext/Password.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 method createFromLogin() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10.
                    Open

                        public static function createFromLogin($login, $type, $key = 0)
                        {
                            switch ($type) {
                                case 'reverse':
                                    return strrev($login);
                    Severity: Minor
                    Found in src/Ext/Password.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

                    Avoid using static access to class 'TikiManager\Ext\Password' in method 'createMultiple'.
                    Open

                                    $password = Password::create($length, $type, $chars);
                    Severity: Minor
                    Found in src/Ext/Password.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 using static access to class 'TikiManager\Ext\Password' in method 'createFromLogin'.
                    Open

                                    return Password::asciiRotxpp($login, $key);
                    Severity: Minor
                    Found in src/Ext/Password.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 using static access to class 'TikiManager\Ext\Password' in method 'create'.
                    Open

                                    return Password::createPronounceable($length);
                    Severity: Minor
                    Found in src/Ext/Password.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 using static access to class 'TikiManager\Ext\Password' in method 'createFromLogin'.
                    Open

                                    return Password::shuffle($login);
                    Severity: Minor
                    Found in src/Ext/Password.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 using static access to class 'TikiManager\Ext\Password' in method 'createFromLogin'.
                    Open

                                    return Password::rotx($login, $key);
                    Severity: Minor
                    Found in src/Ext/Password.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 using static access to class 'TikiManager\Ext\Password' in method 'createFromLogin'.
                    Open

                                    return Password::rotxpp($login, $key);
                    Severity: Minor
                    Found in src/Ext/Password.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 using static access to class 'TikiManager\Ext\Password' in method 'createFromLogin'.
                    Open

                                    return Password::asciiRotx($login, $key);
                    Severity: Minor
                    Found in src/Ext/Password.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

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

                                } else {
                                    $tmp .= $login[$i];
                                }
                    Severity: Minor
                    Found in src/Ext/Password.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 rotxmm uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                    Open

                                } else {
                                    $tmp .= $login[$i];
                                }
                    Severity: Minor
                    Found in src/Ext/Password.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 using static access to class 'TikiManager\Ext\Password' in method 'createFromLogin'.
                    Open

                                    return Password::rotxmm($login, $key);
                    Severity: Minor
                    Found in src/Ext/Password.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 using static access to class 'TikiManager\Ext\Password' in method 'createFromLogin'.
                    Open

                                    return Password::asciiRotxmm($login, $key);
                    Severity: Minor
                    Found in src/Ext/Password.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

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

                                } else {
                                    $tmp .= $login[$i];
                                }
                    Severity: Minor
                    Found in src/Ext/Password.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 using static access to class 'TikiManager\Ext\Password' in method 'create'.
                    Open

                                    return Password::createUnpronounceable($length, $chars);
                    Severity: Minor
                    Found in src/Ext/Password.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 using static access to class 'TikiManager\Ext\Password' in method 'createMultipleFromLogin'.
                    Open

                                    $password = Password::createFromLogin($login[$save - $number], $type, $key);
                    Severity: Minor
                    Found in src/Ext/Password.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 using static access to class 'TikiManager\Ext\Password' in method 'createFromLogin'.
                    Open

                                    return Password::xor($login, $key);
                    Severity: Minor
                    Found in src/Ext/Password.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 unused private methods such as 'asciiRotxpp'.
                    Open

                        private static function asciiRotxpp($login, $key)
                        {
                            $tmp = '';
                    
                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++, $key++) {
                    Severity: Minor
                    Found in src/Ext/Password.php by phpmd

                    UnusedPrivateMethod

                    Since: 0.2

                    Unused Private Method detects when a private method is declared but is unused.

                    Example

                    class Something
                    {
                        private function foo() {} // unused
                    }

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

                    Avoid unused private methods such as 'createUnpronounceable'.
                    Open

                        private static function createUnpronounceable($length, $chars)
                        {
                            global $_Text_Password_NumberOfPossibleCharacters;
                    
                            $password = '';
                    Severity: Minor
                    Found in src/Ext/Password.php by phpmd

                    UnusedPrivateMethod

                    Since: 0.2

                    Unused Private Method detects when a private method is declared but is unused.

                    Example

                    class Something
                    {
                        private function foo() {} // unused
                    }

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

                    Avoid unused private methods such as 'asciiRotx'.
                    Open

                        private static function asciiRotx($login, $key)
                        {
                            $tmp = '';
                    
                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++) {
                    Severity: Minor
                    Found in src/Ext/Password.php by phpmd

                    UnusedPrivateMethod

                    Since: 0.2

                    Unused Private Method detects when a private method is declared but is unused.

                    Example

                    class Something
                    {
                        private function foo() {} // unused
                    }

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

                    Avoid unused private methods such as 'createPronounceable'.
                    Open

                        private static function createPronounceable($length)
                        {
                    
                            global $_Text_Password_NumberOfPossibleCharacters;
                            $retVal = '';
                    Severity: Minor
                    Found in src/Ext/Password.php by phpmd

                    UnusedPrivateMethod

                    Since: 0.2

                    Unused Private Method detects when a private method is declared but is unused.

                    Example

                    class Something
                    {
                        private function foo() {} // unused
                    }

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

                    Avoid unused private methods such as 'rotx'.
                    Open

                        private static function rotx($login, $key)
                        {
                            $tmp = '';
                            $login = strtolower($login);
                    
                    
                    Severity: Minor
                    Found in src/Ext/Password.php by phpmd

                    UnusedPrivateMethod

                    Since: 0.2

                    Unused Private Method detects when a private method is declared but is unused.

                    Example

                    class Something
                    {
                        private function foo() {} // unused
                    }

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

                    Avoid unused private methods such as 'asciiRotxmm'.
                    Open

                        private static function asciiRotxmm($login, $key)
                        {
                            $tmp = '';
                    
                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++, $key--) {
                    Severity: Minor
                    Found in src/Ext/Password.php by phpmd

                    UnusedPrivateMethod

                    Since: 0.2

                    Unused Private Method detects when a private method is declared but is unused.

                    Example

                    class Something
                    {
                        private function foo() {} // unused
                    }

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

                    Avoid unused private methods such as 'xor'.
                    Open

                        private static function xor($login, $key)
                        {
                            $tmp = '';
                    
                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++) {
                    Severity: Minor
                    Found in src/Ext/Password.php by phpmd

                    UnusedPrivateMethod

                    Since: 0.2

                    Unused Private Method detects when a private method is declared but is unused.

                    Example

                    class Something
                    {
                        private function foo() {} // unused
                    }

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

                    Avoid unused private methods such as 'rotxpp'.
                    Open

                        private static function rotxpp($login, $key)
                        {
                            $tmp = '';
                            $login = strtolower($login);
                    
                    
                    Severity: Minor
                    Found in src/Ext/Password.php by phpmd

                    UnusedPrivateMethod

                    Since: 0.2

                    Unused Private Method detects when a private method is declared but is unused.

                    Example

                    class Something
                    {
                        private function foo() {} // unused
                    }

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

                    Avoid unused private methods such as 'shuffle'.
                    Open

                        private static function shuffle($login)
                        {
                            $tmp = [];
                    
                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++) {
                    Severity: Minor
                    Found in src/Ext/Password.php by phpmd

                    UnusedPrivateMethod

                    Since: 0.2

                    Unused Private Method detects when a private method is declared but is unused.

                    Example

                    class Something
                    {
                        private function foo() {} // unused
                    }

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

                    Avoid unused private methods such as 'rotxmm'.
                    Open

                        private static function rotxmm($login, $key)
                        {
                            $tmp = '';
                            $login = strtolower($login);
                    
                    
                    Severity: Minor
                    Found in src/Ext/Password.php by phpmd

                    UnusedPrivateMethod

                    Since: 0.2

                    Unused Private Method detects when a private method is declared but is unused.

                    Example

                    class Something
                    {
                        private function foo() {} // unused
                    }

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

                    Saw possibly unextractable annotation for a fragment of comment '* @param integer Key': after integer, did not see an element name (will guess based on comment order)
                    Open

                         * @param  integer Key
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param integer Length of the password': after integer, did not see an element name (will guess based on comment order)
                    Open

                         * @param  integer Length of the password
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param integer Key': after integer, did not see an element name (will guess based on comment order)
                    Open

                         * @param  integer Key
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param integer Key': after integer, did not see an element name (will guess based on comment order)
                    Open

                         * @param  integer Key
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param string Login': after string, did not see an element name (will guess based on comment order)
                    Open

                         * @param  string  Login
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param string Character which could be use in the': after string, did not see an element name (will guess based on comment order)
                    Open

                         * @param  string  Character which could be use in the
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param string Character which could be use in the': after string, did not see an element name (will guess based on comment order)
                    Open

                         * @param  string  Character which could be use in the
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param array Login': after array, did not see an element name (will guess based on comment order)
                    Open

                         * @param  array   Login
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param string Login': after string, did not see an element name (will guess based on comment order)
                    Open

                         * @param  string  Login
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param string Login': after string, did not see an element name (will guess based on comment order)
                    Open

                         * @param  string  Login
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param string Type of password (pronounceable, unpronounceable)': after string, did not see an element name (will guess based on comment order)
                    Open

                         * @param  string  Type of password (pronounceable, unpronounceable)
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param integer Key': after integer, did not see an element name (will guess based on comment order)
                    Open

                         * @param  integer Key
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param string Login': after string, did not see an element name (will guess based on comment order)
                    Open

                         * @param  string  Login
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param string Login': after string, did not see an element name (will guess based on comment order)
                    Open

                         * @param  string  Login
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param string Type': after string, did not see an element name (will guess based on comment order)
                    Open

                         * @param  string  Type
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param integer Key': after integer, did not see an element name (will guess based on comment order)
                    Open

                         * @param  integer Key
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param integer Key': after integer, did not see an element name (will guess based on comment order)
                    Open

                         * @param  integer Key
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param integer Key': after integer, did not see an element name (will guess based on comment order)
                    Open

                         * @param  integer Key
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param integer Number of different password': after integer, did not see an element name (will guess based on comment order)
                    Open

                         * @param  integer Number of different password
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param string Login': after string, did not see an element name (will guess based on comment order)
                    Open

                         * @param  string  Login
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param integer Length of the password': after integer, did not see an element name (will guess based on comment order)
                    Open

                         * @param  integer Length of the password
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param string Login': after string, did not see an element name (will guess based on comment order)
                    Open

                         * @param  string  Login
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param integer Key': after integer, did not see an element name (will guess based on comment order)
                    Open

                         * @param  integer Key
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param string Type of password (pronounceable, unpronounceable)': after string, did not see an element name (will guess based on comment order)
                    Open

                         * @param  string  Type of password (pronounceable, unpronounceable)
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param integer Key': after integer, did not see an element name (will guess based on comment order)
                    Open

                         * @param  integer Key
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param string Login': after string, did not see an element name (will guess based on comment order)
                    Open

                         * @param  string  Login
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param integer Length of the password': after integer, did not see an element name (will guess based on comment order)
                    Open

                         * @param  integer Length of the password
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param string Login': after string, did not see an element name (will guess based on comment order)
                    Open

                         * @param  string  Login
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param string Type': after string, did not see an element name (will guess based on comment order)
                    Open

                         * @param  string  Type
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param integer Length of the password.': after integer, did not see an element name (will guess based on comment order)
                    Open

                         * @param  integer Length of the password.
                    Severity: Info
                    Found in src/Ext/Password.php by phan

                    Saw possibly unextractable annotation for a fragment of comment '* @param string Character which could be use in the': after string, did not see an element name (will guess based on comment order)
                    Open

                         * @param  string  Character which could be use in the
                    Severity: Info
                    Found in src/Ext/Password.php by phan

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

                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++, $key++) {
                                if ((ord($login[$i]) >= 97) && (ord($login[$i]) <= 122)) { // 65, 90 for uppercase
                                    $next = ord($login[$i]) + $key;
                                    if ($next > 122) {
                                        $next -= 26;
                    Severity: Major
                    Found in src/Ext/Password.php and 2 other locations - About 2 hrs to fix
                    src/Ext/Password.php on lines 223..235
                    src/Ext/Password.php on lines 289..301

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

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

                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++) {
                                if ((ord($login[$i]) >= 97) && (ord($login[$i]) <= 122)) { // 65, 90 for uppercase
                                    $next = ord($login[$i]) + $key;
                                    if ($next > 122) {
                                        $next -= 26;
                    Severity: Major
                    Found in src/Ext/Password.php and 2 other locations - About 2 hrs to fix
                    src/Ext/Password.php on lines 256..268
                    src/Ext/Password.php on lines 289..301

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

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

                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++, $key--) {
                                if ((ord($login[$i]) >= 97) && (ord($login[$i]) <= 122)) { // 65, 90 for uppercase
                                    $next = ord($login[$i]) + $key;
                                    if ($next > 122) {
                                        $next -= 26;
                    Severity: Major
                    Found in src/Ext/Password.php and 2 other locations - About 2 hrs to fix
                    src/Ext/Password.php on lines 223..235
                    src/Ext/Password.php on lines 256..268

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

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

                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++) {
                                $next = ord($login[$i]) + $key;
                                if ($next > 255) {
                                    $next -= 255;
                                } elseif ($next < 0) {
                    Severity: Minor
                    Found in src/Ext/Password.php and 2 other locations - About 40 mins to fix
                    src/Ext/Password.php on lines 354..369
                    src/Ext/Password.php on lines 388..403

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

                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++, $key--) {
                                $next = ord($login[$i]) + $key;
                                if ($next > 255) {
                                    $next -= 255;
                                } elseif ($next < 0) {
                    Severity: Minor
                    Found in src/Ext/Password.php and 2 other locations - About 40 mins to fix
                    src/Ext/Password.php on lines 320..335
                    src/Ext/Password.php on lines 354..369

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

                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++, $key++) {
                                $next = ord($login[$i]) + $key;
                                if ($next > 255) {
                                    $next -= 255;
                                } elseif ($next < 0) {
                    Severity: Minor
                    Found in src/Ext/Password.php and 2 other locations - About 40 mins to fix
                    src/Ext/Password.php on lines 320..335
                    src/Ext/Password.php on lines 388..403

                    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

                    The variable $tmp_count is not named in camelCase.
                    Open

                        private static function shuffle($login)
                        {
                            $tmp = [];
                    
                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++) {
                    Severity: Minor
                    Found in src/Ext/Password.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 $v_count is not named in camelCase.
                    Open

                        private static function createPronounceable($length)
                        {
                    
                            global $_Text_Password_NumberOfPossibleCharacters;
                            $retVal = '';
                    Severity: Minor
                    Found in src/Ext/Password.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 $c_count is not named in camelCase.
                    Open

                        private static function createPronounceable($length)
                        {
                    
                            global $_Text_Password_NumberOfPossibleCharacters;
                            $retVal = '';
                    Severity: Minor
                    Found in src/Ext/Password.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 $_Text_Password_NumberOfPossibleCharacters is not named in camelCase.
                    Open

                        private static function createUnpronounceable($length, $chars)
                        {
                            global $_Text_Password_NumberOfPossibleCharacters;
                    
                            $password = '';
                    Severity: Minor
                    Found in src/Ext/Password.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 $_Text_Password_NumberOfPossibleCharacters is not named in camelCase.
                    Open

                        private static function createPronounceable($length)
                        {
                    
                            global $_Text_Password_NumberOfPossibleCharacters;
                            $retVal = '';
                    Severity: Minor
                    Found in src/Ext/Password.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 $tmp_count is not named in camelCase.
                    Open

                        private static function asciiRotxmm($login, $key)
                        {
                            $tmp = '';
                    
                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++, $key--) {
                    Severity: Minor
                    Found in src/Ext/Password.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 $tmp_count is not named in camelCase.
                    Open

                        private static function asciiRotxpp($login, $key)
                        {
                            $tmp = '';
                    
                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++, $key++) {
                    Severity: Minor
                    Found in src/Ext/Password.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 $tmp_count is not named in camelCase.
                    Open

                        private static function rotxmm($login, $key)
                        {
                            $tmp = '';
                            $login = strtolower($login);
                    
                    
                    Severity: Minor
                    Found in src/Ext/Password.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 $tmp_count is not named in camelCase.
                    Open

                        private static function rotxmm($login, $key)
                        {
                            $tmp = '';
                            $login = strtolower($login);
                    
                    
                    Severity: Minor
                    Found in src/Ext/Password.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 $v_count is not named in camelCase.
                    Open

                        private static function createPronounceable($length)
                        {
                    
                            global $_Text_Password_NumberOfPossibleCharacters;
                            $retVal = '';
                    Severity: Minor
                    Found in src/Ext/Password.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 $tmp_count is not named in camelCase.
                    Open

                        private static function asciiRotx($login, $key)
                        {
                            $tmp = '';
                    
                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++) {
                    Severity: Minor
                    Found in src/Ext/Password.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 $tmp_count is not named in camelCase.
                    Open

                        private static function asciiRotx($login, $key)
                        {
                            $tmp = '';
                    
                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++) {
                    Severity: Minor
                    Found in src/Ext/Password.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 $_Text_Password_NumberOfPossibleCharacters is not named in camelCase.
                    Open

                        private static function createPronounceable($length)
                        {
                    
                            global $_Text_Password_NumberOfPossibleCharacters;
                            $retVal = '';
                    Severity: Minor
                    Found in src/Ext/Password.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 $_Text_Password_NumberOfPossibleCharacters is not named in camelCase.
                    Open

                        private static function createUnpronounceable($length, $chars)
                        {
                            global $_Text_Password_NumberOfPossibleCharacters;
                    
                            $password = '';
                    Severity: Minor
                    Found in src/Ext/Password.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 $tmp_count is not named in camelCase.
                    Open

                        private static function asciiRotxpp($login, $key)
                        {
                            $tmp = '';
                    
                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++, $key++) {
                    Severity: Minor
                    Found in src/Ext/Password.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 $c_count is not named in camelCase.
                    Open

                        private static function createPronounceable($length)
                        {
                    
                            global $_Text_Password_NumberOfPossibleCharacters;
                            $retVal = '';
                    Severity: Minor
                    Found in src/Ext/Password.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 $_Text_Password_NumberOfPossibleCharacters is not named in camelCase.
                    Open

                        private static function createUnpronounceable($length, $chars)
                        {
                            global $_Text_Password_NumberOfPossibleCharacters;
                    
                            $password = '';
                    Severity: Minor
                    Found in src/Ext/Password.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 $_Text_Password_NumberOfPossibleCharacters is not named in camelCase.
                    Open

                        private static function createUnpronounceable($length, $chars)
                        {
                            global $_Text_Password_NumberOfPossibleCharacters;
                    
                            $password = '';
                    Severity: Minor
                    Found in src/Ext/Password.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 $tmp_count is not named in camelCase.
                    Open

                        private static function xor($login, $key)
                        {
                            $tmp = '';
                    
                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++) {
                    Severity: Minor
                    Found in src/Ext/Password.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 $tmp_count is not named in camelCase.
                    Open

                        private static function shuffle($login)
                        {
                            $tmp = [];
                    
                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++) {
                    Severity: Minor
                    Found in src/Ext/Password.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 $tmp_count is not named in camelCase.
                    Open

                        private static function xor($login, $key)
                        {
                            $tmp = '';
                    
                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++) {
                    Severity: Minor
                    Found in src/Ext/Password.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 $tmp_count is not named in camelCase.
                    Open

                        private static function rotx($login, $key)
                        {
                            $tmp = '';
                            $login = strtolower($login);
                    
                    
                    Severity: Minor
                    Found in src/Ext/Password.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 $_Text_Password_NumberOfPossibleCharacters is not named in camelCase.
                    Open

                        private static function createUnpronounceable($length, $chars)
                        {
                            global $_Text_Password_NumberOfPossibleCharacters;
                    
                            $password = '';
                    Severity: Minor
                    Found in src/Ext/Password.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 $tmp_count is not named in camelCase.
                    Open

                        private static function rotx($login, $key)
                        {
                            $tmp = '';
                            $login = strtolower($login);
                    
                    
                    Severity: Minor
                    Found in src/Ext/Password.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 $tmp_count is not named in camelCase.
                    Open

                        private static function rotxpp($login, $key)
                        {
                            $tmp = '';
                            $login = strtolower($login);
                    
                    
                    Severity: Minor
                    Found in src/Ext/Password.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 $tmp_count is not named in camelCase.
                    Open

                        private static function asciiRotxmm($login, $key)
                        {
                            $tmp = '';
                    
                            for ($i = 0, $tmp_count = strlen($login); $i < $tmp_count; $i++, $key--) {
                    Severity: Minor
                    Found in src/Ext/Password.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 $v_count is not named in camelCase.
                    Open

                        private static function createPronounceable($length)
                        {
                    
                            global $_Text_Password_NumberOfPossibleCharacters;
                            $retVal = '';
                    Severity: Minor
                    Found in src/Ext/Password.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 $_Text_Password_NumberOfPossibleCharacters is not named in camelCase.
                    Open

                        private static function createUnpronounceable($length, $chars)
                        {
                            global $_Text_Password_NumberOfPossibleCharacters;
                    
                            $password = '';
                    Severity: Minor
                    Found in src/Ext/Password.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 $tmp_count is not named in camelCase.
                    Open

                        private static function rotxpp($login, $key)
                        {
                            $tmp = '';
                            $login = strtolower($login);
                    
                    
                    Severity: Minor
                    Found in src/Ext/Password.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 $c_count is not named in camelCase.
                    Open

                        private static function createPronounceable($length)
                        {
                    
                            global $_Text_Password_NumberOfPossibleCharacters;
                            $retVal = '';
                    Severity: Minor
                    Found in src/Ext/Password.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 $_Text_Password_NumberOfPossibleCharacters is not named in camelCase.
                    Open

                        private static function createUnpronounceable($length, $chars)
                        {
                            global $_Text_Password_NumberOfPossibleCharacters;
                    
                            $password = '';
                    Severity: Minor
                    Found in src/Ext/Password.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