lib/Ajde/Resource/Qrcode/lib/phpqrcode.php

Summary

Maintainability
F
3 wks
Test Coverage

markTime accesses the super-global variable $GLOBALS.
Open

    public static function markTime($markerId)
    {
        list($usec, $sec) = explode(' ', microtime());
        $time = ((float) $usec + (float) $sec);

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

timeBenchmark accesses the super-global variable $GLOBALS.
Open

    public static function timeBenchmark()
    {
        self::markTime('finish');

        $lastTime = 0;

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

markTime accesses the super-global variable $GLOBALS.
Open

    public static function markTime($markerId)
    {
        list($usec, $sec) = explode(' ', microtime());
        $time = ((float) $usec + (float) $sec);

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

markTime accesses the super-global variable $GLOBALS.
Open

    public static function markTime($markerId)
    {
        list($usec, $sec) = explode(' ', microtime());
        $time = ((float) $usec + (float) $sec);

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

File phpqrcode.php has 2575 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

/*
 * PHP QR Code encoder
 *
Severity: Major
Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 wk to fix

    Function evaluateSymbol has a Cognitive Complexity of 44 (exceeds 5 allowed). Consider refactoring.
    Open

        public function evaluateSymbol($width, $frame)
        {
            $head = 0;
            $demerit = 0;
    
    
    Severity: Minor
    Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 6 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

    Function eat8 has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
    Open

        public function eat8()
        {
            $la = QRspec::lengthIndicator(QR_MODE_AN, $this->input->getVersion());
            $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());
    
    
    Severity: Minor
    Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 4 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

    Function calcN1N3 has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

        public function calcN1N3($length)
        {
            $demerit = 0;
    
            for ($i = 0; $i < $length; $i++) {
    Severity: Minor
    Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 3 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

    The class QRspec has 19 public methods. Consider refactoring QRspec to keep number of public methods under 10.
    Open

    class QRspec
    {
        public static $capacity = [
            [0, 0, 0, [0, 0, 0, 0]],
            [21, 26, 0, [7, 10, 13, 17]], // 1

    TooManyPublicMethods

    Since: 0.1

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

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

    Example

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

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

    class QRspec
    {
        public static $capacity = [
            [0, 0, 0, [0, 0, 0, 0]],
            [21, 26, 0, [7, 10, 13, 17]], // 1

    The class QRinput has 21 public methods. Consider refactoring QRinput to keep number of public methods under 10.
    Open

    class QRinput
    {
        public $items;
    
        private $version;

    TooManyPublicMethods

    Since: 0.1

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

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

    Example

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

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

    class QRinput
    {
        public $items;
    
        private $version;

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

    class QRsplit
    {
        public $dataStr = '';
        public $input;
        public $modeHint;

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

    class QRmask
    {
        public $runLength = [];
    
        //----------------------------------------------------------------------

    The class QRmask has 17 public methods. Consider refactoring QRmask to keep number of public methods under 10.
    Open

    class QRmask
    {
        public $runLength = [];
    
        //----------------------------------------------------------------------

    TooManyPublicMethods

    Since: 0.1

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

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

    Example

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

    QRspec has 27 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class QRspec
    {
        public static $capacity = [
            [0, 0, 0, [0, 0, 0, 0]],
            [21, 26, 0, [7, 10, 13, 17]], // 1
    Severity: Minor
    Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 3 hrs to fix

      QRinput has 27 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class QRinput
      {
          public $items;
      
          private $version;
      Severity: Minor
      Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 3 hrs to fix

        Function identifyMode has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
        Open

            public function identifyMode($pos)
            {
                if ($pos >= strlen($this->dataStr)) {
                    return QR_MODE_NUL;
                }
        Severity: Minor
        Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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

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

            public static function init_rs($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
            {
                foreach (self::$items as $rs) {
                    if ($rs->pad != $pad) {
                        continue;
        Severity: Minor
        Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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

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

            public static function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
            {
                // Common code for intializing a Reed-Solomon control block (char or int symbols)
                // Copyright 2004 Phil Karn, KA9Q
                // May be used under the terms of the GNU Lesser General Public License (LGPL)
        Severity: Minor
        Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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 init_rs_char has 64 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public static function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
            {
                // Common code for intializing a Reed-Solomon control block (char or int symbols)
                // Copyright 2004 Phil Karn, KA9Q
                // May be used under the terms of the GNU Lesser General Public License (LGPL)
        Severity: Major
        Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 2 hrs to fix

          Function next has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
          Open

              public function next()
              {
                  do {
                      if ($this->bit == -1) {
                          $this->bit = 0;
          Severity: Minor
          Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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 evaluateSymbol has 56 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function evaluateSymbol($width, $frame)
              {
                  $head = 0;
                  $demerit = 0;
          
          
          Severity: Major
          Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 2 hrs to fix

            Method debug has 55 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public static function debug($frame, $binary_mode = false)
                {
                    if ($binary_mode) {
                        foreach ($frame as &$frameLine) {
                            $frameLine = implode('<span class="m">&nbsp;&nbsp;</span>', explode('0', $frameLine));
            Severity: Major
            Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 2 hrs to fix

              Function eatAn has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function eatAn()
                  {
                      $la = QRspec::lengthIndicator(QR_MODE_AN, $this->input->getVersion());
                      $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());
              
              
              Severity: Minor
              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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 encodeMask has 52 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function encodeMask(QRinput $input, $mask)
                  {
                      if ($input->getVersion() < 0 || $input->getVersion() > QRSPEC_VERSION_MAX) {
                          throw new Exception('wrong version');
                      }
              Severity: Major
              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 2 hrs to fix

                Method createFrame has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public static function createFrame($version)
                    {
                        $width = self::$capacity[$version][QRCAP_WIDTH];
                        $frameLine = str_repeat("\0", $width);
                        $frame = array_fill(0, $width, $frameLine);
                Severity: Minor
                Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 hr to fix

                  Function splitString has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
                  Open

                      public function splitString()
                      {
                          while (strlen($this->dataStr) > 0) {
                              if ($this->dataStr == '') {
                                  return 0;
                  Severity: Minor
                  Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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

                  Function makeMaskNo has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
                  Open

                      public function makeMaskNo($maskNo, $width, $s, &$d, $maskGenOnly = false)
                      {
                          $b = 0;
                          $bitMask = [];
                  
                  
                  Severity: Minor
                  Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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 eat8 has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function eat8()
                      {
                          $la = QRspec::lengthIndicator(QR_MODE_AN, $this->input->getVersion());
                          $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());
                  
                  
                  Severity: Minor
                  Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 hr to fix

                    Method next has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function next()
                        {
                            do {
                                if ($this->bit == -1) {
                                    $this->bit = 0;
                    Severity: Minor
                    Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 hr to fix

                      Function writeFormatInformation has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function writeFormatInformation($width, &$frame, $mask, $level)
                          {
                              $blacks = 0;
                              $format = QRspec::getFormatInfo($mask, $level);
                      
                      
                      Severity: Minor
                      Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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

                      Function createFrame has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public static function createFrame($version)
                          {
                              $width = self::$capacity[$version][QRCAP_WIDTH];
                              $frameLine = str_repeat("\0", $width);
                              $frame = array_fill(0, $width, $frameLine);
                      Severity: Minor
                      Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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

                      Function lengthOfCode has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public static function lengthOfCode($mode, $version, $bits)
                          {
                              $payload = $bits - 4 - QRspec::lengthIndicator($mode, $version);
                              switch ($mode) {
                                  case QR_MODE_NUM:
                      Severity: Minor
                      Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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

                      Function encodeMask has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function encodeMask(QRinput $input, $mask)
                          {
                              if ($input->getVersion() < 0 || $input->getVersion() > QRSPEC_VERSION_MAX) {
                                  throw new Exception('wrong version');
                              }
                      Severity: Minor
                      Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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 lengthOfCode has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public static function lengthOfCode($mode, $version, $bits)
                          {
                              $payload = $bits - 4 - QRspec::lengthIndicator($mode, $version);
                              switch ($mode) {
                                  case QR_MODE_NUM:
                      Severity: Minor
                      Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 hr to fix

                        Method encodeBitStream has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function encodeBitStream($version)
                            {
                                try {
                                    unset($this->bstream);
                                    $words = QRspec::maximumWords($this->mode, $version);
                        Severity: Minor
                        Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 hr to fix

                          Function encodeBitStream has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                          Open

                              public function encodeBitStream($version)
                              {
                                  try {
                                      unset($this->bstream);
                                      $words = QRspec::maximumWords($this->mode, $version);
                          Severity: Minor
                          Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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

                          Function convertData has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                          Open

                              public function convertData()
                              {
                                  $ver = $this->estimateVersion();
                                  if ($ver > $this->getVersion()) {
                                      $this->setVersion($ver);
                          Severity: Minor
                          Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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 eatAn has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function eatAn()
                              {
                                  $la = QRspec::lengthIndicator(QR_MODE_AN, $this->input->getVersion());
                                  $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());
                          
                          
                          Severity: Minor
                          Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 hr to fix

                            Method writeFormatInformation has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function writeFormatInformation($width, &$frame, $mask, $level)
                                {
                                    $blacks = 0;
                                    $format = QRspec::getFormatInfo($mask, $level);
                            
                            
                            Severity: Minor
                            Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 hr to fix

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

                                  public function init(array $spec)
                                  {
                                      $dl = QRspec::rsDataCodes1($spec);
                                      $el = QRspec::rsEccCodes1($spec);
                                      $rs = QRrs::init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el);
                              Severity: Minor
                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 hr to fix

                                Function newFrame has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public static function newFrame($version)
                                    {
                                        if ($version < 1 || $version > QRSPEC_VERSION_MAX) {
                                            return;
                                        }
                                Severity: Minor
                                Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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 splitString has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function splitString()
                                    {
                                        while (strlen($this->dataStr) > 0) {
                                            if ($this->dataStr == '') {
                                                return 0;
                                Severity: Minor
                                Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 hr to fix

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

                                      public static function putAlignmentPattern($version, &$frame, $width)
                                      {
                                          if ($version < 2) {
                                              return;
                                          }
                                  Severity: Minor
                                  Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 hr to fix

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

                                        public function appendPaddingBit(&$bstream)
                                        {
                                            $bits = $bstream->size();
                                            $maxwords = QRspec::getDataLength($this->version, $this->level);
                                            $maxbits = $maxwords * 8;
                                    Severity: Minor
                                    Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 hr to fix

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

                                          public function makeMaskNo($maskNo, $width, $s, &$d, $maskGenOnly = false)
                                          {
                                              $b = 0;
                                              $bitMask = [];
                                      
                                      
                                      Severity: Minor
                                      Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 hr to fix

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

                                            public function mask($width, $frame, $level)
                                            {
                                                $minDemerit = PHP_INT_MAX;
                                                $bestMaskNum = 0;
                                                $bestMask = [];
                                        Severity: Minor
                                        Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 hr to fix

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

                                              public static function factory($level = QR_ECLEVEL_L, $size = 3, $margin = 4)
                                              {
                                                  $enc = new self();
                                                  $enc->size = $size;
                                                  $enc->margin = $margin;
                                          Severity: Minor
                                          Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 hr to fix

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

                                                public function eatNum()
                                                {
                                                    $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());
                                            
                                                    $p = 0;
                                            Severity: Minor
                                            Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 hr to fix

                                              Method encodeModeNum has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                                  public function encodeModeNum($version)
                                                  {
                                                      try {
                                                          $words = (int) ($this->size / 3);
                                                          $bs = new QRbitstream();
                                              Severity: Minor
                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 hr to fix

                                                Method estimateBitStreamSizeOfEntry has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                    public function estimateBitStreamSizeOfEntry($version)
                                                    {
                                                        $bits = 0;
                                                
                                                        if ($version == 0) {
                                                Severity: Minor
                                                Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 hr to fix

                                                  Method encode_rs_char has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                      public function encode_rs_char($data, &$parity)
                                                      {
                                                          $MM = &$this->mm;
                                                          $NN = &$this->nn;
                                                          $ALPHA_TO = &$this->alpha_to;
                                                  Severity: Minor
                                                  Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 hr to fix

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

                                                        public function toByte()
                                                        {
                                                            $size = $this->size();
                                                    
                                                            if ($size == 0) {
                                                    Severity: Minor
                                                    Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 hr to fix

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

                                                          public function encode_rs_char($data, &$parity)
                                                          {
                                                              $MM = &$this->mm;
                                                              $NN = &$this->nn;
                                                              $ALPHA_TO = &$this->alpha_to;
                                                      Severity: Minor
                                                      Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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 appendPaddingBit has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                      Open

                                                          public function appendPaddingBit(&$bstream)
                                                          {
                                                              $bits = $bstream->size();
                                                              $maxwords = QRspec::getDataLength($this->version, $this->level);
                                                              $maxbits = $maxwords * 8;
                                                      Severity: Minor
                                                      Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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 check has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                      Open

                                                          public static function check($mode, $size, $data)
                                                          {
                                                              if ($size <= 0) {
                                                                  return false;
                                                              }
                                                      Severity: Minor
                                                      Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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 toUpper has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                      Open

                                                          public function toUpper()
                                                          {
                                                              $stringLen = strlen($this->dataStr);
                                                              $p = 0;
                                                      
                                                      
                                                      Severity: Minor
                                                      Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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

                                                      Method init_rs_char has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                      Open

                                                          public static function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
                                                      Severity: Minor
                                                      Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 45 mins to fix

                                                        Method init_rs has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                        Open

                                                            public static function init_rs($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
                                                        Severity: Minor
                                                        Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 45 mins to fix

                                                          Method png has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                          Open

                                                                  $text,
                                                                  $outfile = false,
                                                                  $level = QR_ECLEVEL_L,
                                                                  $size = 3,
                                                                  $margin = 4,
                                                          Severity: Minor
                                                          Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 45 mins to fix

                                                            Function eatNum has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                            Open

                                                                public function eatNum()
                                                                {
                                                                    $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());
                                                            
                                                                    $p = 0;
                                                            Severity: Minor
                                                            Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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 putAlignmentPattern has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                            Open

                                                                public static function putAlignmentPattern($version, &$frame, $width)
                                                                {
                                                                    if ($version < 2) {
                                                                        return;
                                                                    }
                                                            Severity: Minor
                                                            Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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

                                                            Avoid deeply nested control flow statements.
                                                            Open

                                                                                        if ((($i + 3) >= $length) || ($this->runLength[$i + 3] >= (4 * $fact))) {
                                                                                            $demerit += N3;
                                                                                        }
                                                            Severity: Major
                                                            Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 45 mins to fix

                                                              Method makeMaskNo has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                              Open

                                                                  public function makeMaskNo($maskNo, $width, $s, &$d, $maskGenOnly = false)
                                                              Severity: Minor
                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 35 mins to fix

                                                                Method raw has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                Open

                                                                    public static function raw($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4)
                                                                Severity: Minor
                                                                Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 35 mins to fix

                                                                  Method png has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                  Open

                                                                      public static function png($frame, $filename = false, $pixelPerPoint = 4, $outerFrame = 4, $saveandprint = false)
                                                                  Severity: Minor
                                                                  Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 35 mins to fix

                                                                    Method text has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                    Open

                                                                        public static function text($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4)
                                                                    Severity: Minor
                                                                    Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 35 mins to fix

                                                                      Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                      Open

                                                                          public function __construct($dl, $data, $el, &$ecc, QRrsItem $rs)
                                                                      Severity: Minor
                                                                      Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 35 mins to fix

                                                                        Method encodeString has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                        Open

                                                                            public function encodeString($string, $version, $level, $hint, $casesensitive)
                                                                        Severity: Minor
                                                                        Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 35 mins to fix

                                                                          Method set has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                          Open

                                                                              public static function set(&$srctab, $x, $y, $repl, $replLen = false)
                                                                          Severity: Minor
                                                                          Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 35 mins to fix

                                                                            Method jpg has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                            Open

                                                                                public static function jpg($frame, $filename = false, $pixelPerPoint = 8, $outerFrame = 4, $q = 85)
                                                                            Severity: Minor
                                                                            Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 35 mins to fix

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

                                                                                  public static function newFromBytes($size, $data)
                                                                                  {
                                                                                      $bstream = new self();
                                                                                      $bstream->allocate($size * 8);
                                                                                      $p = 0;
                                                                              Severity: Minor
                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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 log has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                              Open

                                                                                  public static function log($outfile, $err)
                                                                                  {
                                                                                      if (QR_LOG_DIR !== false) {
                                                                                          if ($err != '') {
                                                                                              if ($outfile !== false) {
                                                                              Severity: Minor
                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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 toByte has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                              Open

                                                                                  public function toByte()
                                                                                  {
                                                                                      $size = $this->size();
                                                                              
                                                                                      if ($size == 0) {
                                                                              Severity: Minor
                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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 generateMaskNo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                              Open

                                                                                  private function generateMaskNo($maskNo, $width, $frame)
                                                                                  {
                                                                                      $bitMask = array_fill(0, $width, array_fill(0, $width, 0));
                                                                              
                                                                                      for ($y = 0; $y < $width; $y++) {
                                                                              Severity: Minor
                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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 checkModeKanji has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                              Open

                                                                                  public static function checkModeKanji($size, $data)
                                                                                  {
                                                                                      if ($size & 1) {
                                                                                          return false;
                                                                                      }
                                                                              Severity: Minor
                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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 getCode has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                              Open

                                                                                  public function getCode()
                                                                                  {
                                                                                      $ret;
                                                                              
                                                                                      if ($this->count < $this->dataLength) {
                                                                              Severity: Minor
                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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 maximumWords has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                              Open

                                                                                  public static function maximumWords($mode, $version)
                                                                                  {
                                                                                      if ($mode == QR_MODE_STRUCTURE) {
                                                                                          return 3;
                                                                                      }
                                                                              Severity: Minor
                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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 QR_MODE_8;
                                                                              Severity: Major
                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 30 mins to fix

                                                                                Avoid too many return statements within this method.
                                                                                Open

                                                                                                return true;
                                                                                Severity: Major
                                                                                Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 30 mins to fix

                                                                                  Avoid too many return statements within this method.
                                                                                  Open

                                                                                              return $rs;
                                                                                  Severity: Major
                                                                                  Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 30 mins to fix

                                                                                    Avoid too many return statements within this method.
                                                                                    Open

                                                                                                    return true;
                                                                                    Severity: Major
                                                                                    Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 30 mins to fix

                                                                                      Avoid too many return statements within this method.
                                                                                      Open

                                                                                              return $rs;
                                                                                      Severity: Major
                                                                                      Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 30 mins to fix

                                                                                        Avoid too many return statements within this method.
                                                                                        Open

                                                                                                return false;
                                                                                        Severity: Major
                                                                                        Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 30 mins to fix

                                                                                          Avoid too many return statements within this method.
                                                                                          Open

                                                                                                      return $rs;
                                                                                          Severity: Major
                                                                                          Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 30 mins to fix

                                                                                            Avoid too many return statements within this method.
                                                                                            Open

                                                                                                    return $ret;
                                                                                            Severity: Major
                                                                                            Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 30 mins to fix

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

                                                                                                  public static function lengthIndicator($mode, $version)
                                                                                                  {
                                                                                                      if ($mode == QR_MODE_STRUCTURE) {
                                                                                                          return 0;
                                                                                                      }
                                                                                              Severity: Minor
                                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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

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

                                                                                                  public static function debug($frame, $binary_mode = false)
                                                                                                  {
                                                                                                      if ($binary_mode) {
                                                                                                          foreach ($frame as &$frameLine) {
                                                                                                              $frameLine = implode('<span class="m">&nbsp;&nbsp;</span>', explode('0', $frameLine));
                                                                                              Severity: Minor
                                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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

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

                                                                                                  public function mask($width, $frame, $level)
                                                                                                  {
                                                                                                      $minDemerit = PHP_INT_MAX;
                                                                                                      $bestMaskNum = 0;
                                                                                                      $bestMask = [];
                                                                                              Severity: Minor
                                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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

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

                                                                                                  public static function factory($level = QR_ECLEVEL_L, $size = 3, $margin = 4)
                                                                                                  {
                                                                                                      $enc = new self();
                                                                                                      $enc->size = $size;
                                                                                                      $enc->margin = $margin;
                                                                                              Severity: Minor
                                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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

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

                                                                                                  public function estimateBitStreamSizeOfEntry($version)
                                                                                                  {
                                                                                                      $bits = 0;
                                                                                              
                                                                                                      if ($version == 0) {
                                                                                              Severity: Minor
                                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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

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

                                                                                                  private static function image($frame, $pixelPerPoint = 4, $outerFrame = 4)
                                                                                                  {
                                                                                                      $h = count($frame);
                                                                                                      $w = strlen($frame[0]);
                                                                                              
                                                                                              
                                                                                              Severity: Minor
                                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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

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

                                                                                                  public function calcParity()
                                                                                                  {
                                                                                                      $parity = 0;
                                                                                              
                                                                                                      foreach ($this->items as $item) {
                                                                                              Severity: Minor
                                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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

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

                                                                                                  public function encodeModeNum($version)
                                                                                                  {
                                                                                                      try {
                                                                                                          $words = (int) ($this->size / 3);
                                                                                                          $bs = new QRbitstream();
                                                                                              Severity: Minor
                                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.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 init_rs_char() has an NPath complexity of 23328. The configured NPath complexity threshold is 200.
                                                                                              Open

                                                                                                  public static function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
                                                                                                  {
                                                                                                      // Common code for intializing a Reed-Solomon control block (char or int symbols)
                                                                                                      // Copyright 2004 Phil Karn, KA9Q
                                                                                                      // May be used under the terms of the GNU Lesser General Public License (LGPL)

                                                                                              NPathComplexity

                                                                                              Since: 0.1

                                                                                              The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

                                                                                              Example

                                                                                              class Foo {
                                                                                                  function bar() {
                                                                                                      // lots of complicated code
                                                                                                  }
                                                                                              }

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

                                                                                              The method evaluateSymbol() has an NPath complexity of 301. The configured NPath complexity threshold is 200.
                                                                                              Open

                                                                                                  public function evaluateSymbol($width, $frame)
                                                                                                  {
                                                                                                      $head = 0;
                                                                                                      $demerit = 0;
                                                                                              
                                                                                              

                                                                                              NPathComplexity

                                                                                              Since: 0.1

                                                                                              The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

                                                                                              Example

                                                                                              class Foo {
                                                                                                  function bar() {
                                                                                                      // lots of complicated code
                                                                                                  }
                                                                                              }

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

                                                                                              The method encodeMask() has an NPath complexity of 432. The configured NPath complexity threshold is 200.
                                                                                              Open

                                                                                                  public function encodeMask(QRinput $input, $mask)
                                                                                                  {
                                                                                                      if ($input->getVersion() < 0 || $input->getVersion() > QRSPEC_VERSION_MAX) {
                                                                                                          throw new Exception('wrong version');
                                                                                                      }

                                                                                              NPathComplexity

                                                                                              Since: 0.1

                                                                                              The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

                                                                                              Example

                                                                                              class Foo {
                                                                                                  function bar() {
                                                                                                      // lots of complicated code
                                                                                                  }
                                                                                              }

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

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

                                                                                                  public static function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
                                                                                                  {
                                                                                                      // Common code for intializing a Reed-Solomon control block (char or int symbols)
                                                                                                      // Copyright 2004 Phil Karn, KA9Q
                                                                                                      // May be used under the terms of the GNU Lesser General Public License (LGPL)

                                                                                              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 identifyMode() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
                                                                                              Open

                                                                                                  public function identifyMode($pos)
                                                                                                  {
                                                                                                      if ($pos >= strlen($this->dataStr)) {
                                                                                                          return QR_MODE_NUL;
                                                                                                      }

                                                                                              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 lengthOfCode() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10.
                                                                                              Open

                                                                                                  public static function lengthOfCode($mode, $version, $bits)
                                                                                                  {
                                                                                                      $payload = $bits - 4 - QRspec::lengthIndicator($mode, $version);
                                                                                                      switch ($mode) {
                                                                                                          case QR_MODE_NUM:

                                                                                              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 eat8() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
                                                                                              Open

                                                                                                  public function eat8()
                                                                                                  {
                                                                                                      $la = QRspec::lengthIndicator(QR_MODE_AN, $this->input->getVersion());
                                                                                                      $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());
                                                                                              
                                                                                              

                                                                                              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 calcN1N3() has a Cyclomatic Complexity of 15. The configured cyclomatic complexity threshold is 10.
                                                                                              Open

                                                                                                  public function calcN1N3($length)
                                                                                                  {
                                                                                                      $demerit = 0;
                                                                                              
                                                                                                      for ($i = 0; $i < $length; $i++) {

                                                                                              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 evaluateSymbol() has a Cyclomatic Complexity of 17. The configured cyclomatic complexity threshold is 10.
                                                                                              Open

                                                                                                  public function evaluateSymbol($width, $frame)
                                                                                                  {
                                                                                                      $head = 0;
                                                                                                      $demerit = 0;
                                                                                              
                                                                                              

                                                                                              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 encodeMask() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10.
                                                                                              Open

                                                                                                  public function encodeMask(QRinput $input, $mask)
                                                                                                  {
                                                                                                      if ($input->getVersion() < 0 || $input->getVersion() > QRSPEC_VERSION_MAX) {
                                                                                                          throw new Exception('wrong version');
                                                                                                      }

                                                                                              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 next() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10.
                                                                                              Open

                                                                                                  public function next()
                                                                                                  {
                                                                                                      do {
                                                                                                          if ($this->bit == -1) {
                                                                                                              $this->bit = 0;

                                                                                              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 factory() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10.
                                                                                              Open

                                                                                                  public static function factory($level = QR_ECLEVEL_L, $size = 3, $margin = 4)
                                                                                                  {
                                                                                                      $enc = new self();
                                                                                                      $enc->size = $size;
                                                                                                      $enc->margin = $margin;

                                                                                              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 undefined variables such as '$run' which will lead to PHP notices.
                                                                                              Open

                                                                                                      return $run;

                                                                                              UndefinedVariable

                                                                                              Since: 2.8.0

                                                                                              Detects when a variable is used that has not been defined before.

                                                                                              Example

                                                                                              class Foo
                                                                                              {
                                                                                                  private function bar()
                                                                                                  {
                                                                                                      // $message is undefined
                                                                                                      echo $message;
                                                                                                  }
                                                                                              }

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

                                                                                              Avoid using undefined variables such as '$hint' which will lead to PHP notices.
                                                                                              Open

                                                                                                                  if ($hint == QR_MODE_KANJI) {

                                                                                              UndefinedVariable

                                                                                              Since: 2.8.0

                                                                                              Detects when a variable is used that has not been defined before.

                                                                                              Example

                                                                                              class Foo
                                                                                              {
                                                                                                  private function bar()
                                                                                                  {
                                                                                                      // $message is undefined
                                                                                                      echo $message;
                                                                                                  }
                                                                                              }

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

                                                                                              Avoid using undefined variables such as '$col' which will lead to PHP notices.
                                                                                              Open

                                                                                                      imagefill($base_image, 0, 0, $col[0]);

                                                                                              UndefinedVariable

                                                                                              Since: 2.8.0

                                                                                              Detects when a variable is used that has not been defined before.

                                                                                              Example

                                                                                              class Foo
                                                                                              {
                                                                                                  private function bar()
                                                                                                  {
                                                                                                      // $message is undefined
                                                                                                      echo $message;
                                                                                                  }
                                                                                              }

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

                                                                                              Avoid using undefined variables such as '$col' which will lead to PHP notices.
                                                                                              Open

                                                                                                                  imagesetpixel($base_image, $x + $outerFrame, $y + $outerFrame, $col[1]);

                                                                                              UndefinedVariable

                                                                                              Since: 2.8.0

                                                                                              Detects when a variable is used that has not been defined before.

                                                                                              Example

                                                                                              class Foo
                                                                                              {
                                                                                                  private function bar()
                                                                                                  {
                                                                                                      // $message is undefined
                                                                                                      echo $message;
                                                                                                  }
                                                                                              }

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

                                                                                              Avoid using undefined variables such as '$col' which will lead to PHP notices.
                                                                                              Open

                                                                                                      $col[0] = imagecolorallocate($base_image, 255, 255, 255);

                                                                                              UndefinedVariable

                                                                                              Since: 2.8.0

                                                                                              Detects when a variable is used that has not been defined before.

                                                                                              Example

                                                                                              class Foo
                                                                                              {
                                                                                                  private function bar()
                                                                                                  {
                                                                                                      // $message is undefined
                                                                                                      echo $message;
                                                                                                  }
                                                                                              }

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

                                                                                              Avoid using undefined variables such as '$col' which will lead to PHP notices.
                                                                                              Open

                                                                                                      $col[1] = imagecolorallocate($base_image, 0, 0, 0);

                                                                                              UndefinedVariable

                                                                                              Since: 2.8.0

                                                                                              Detects when a variable is used that has not been defined before.

                                                                                              Example

                                                                                              class Foo
                                                                                              {
                                                                                                  private function bar()
                                                                                                  {
                                                                                                      // $message is undefined
                                                                                                      echo $message;
                                                                                                  }
                                                                                              }

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

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

                                                                                                  public static function png($frame, $filename = false, $pixelPerPoint = 4, $outerFrame = 4, $saveandprint = false)

                                                                                              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 debug has a boolean flag argument $binary_mode, which is a certain sign of a Single Responsibility Principle violation.
                                                                                              Open

                                                                                                  public static function debug($frame, $binary_mode = false)

                                                                                              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 png has a boolean flag argument $filename, which is a certain sign of a Single Responsibility Principle violation.
                                                                                              Open

                                                                                                  public static function png($frame, $filename = false, $pixelPerPoint = 4, $outerFrame = 4, $saveandprint = false)

                                                                                              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 set has a boolean flag argument $replLen, which is a certain sign of a Single Responsibility Principle violation.
                                                                                              Open

                                                                                                  public static function set(&$srctab, $x, $y, $repl, $replLen = false)

                                                                                              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

                                                                                              Missing class import via use statement (line '201', column '21').
                                                                                              Open

                                                                                                      $mask = new QRmask();

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '1153', column '23').
                                                                                              Open

                                                                                                          throw new Exception('Error m:'.$mode.',s:'.$size.',d:'.implode(',', $setData));

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '1487', column '23').
                                                                                              Open

                                                                                                          throw new Exception('insertStructuredAppendHeader wrong index');

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '2510', column '23').
                                                                                              Open

                                                                                                          throw new Exception('empty string!!!');

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '1429', column '23').
                                                                                              Open

                                                                                                          throw new Exception('Invalid version no');

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '1287', column '23').
                                                                                              Open

                                                                                                          $bs = new QRbitstream();

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '1483', column '23').
                                                                                              Open

                                                                                                          throw new Exception('insertStructuredAppendHeader wrong size');

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '1926', column '24').
                                                                                              Open

                                                                                                      $padding = new QRbitstream();

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '1493', column '26').
                                                                                              Open

                                                                                                          $entry = new QRinputItem(QR_MODE_STRUCTURE, 3, buf);

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '1410', column '23').
                                                                                              Open

                                                                                                          throw new Exception('Invalid version no');

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '1235', column '23').
                                                                                              Open

                                                                                                          $bs = new QRbitstream();

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '1353', column '38').
                                                                                              Open

                                                                                                              $this->bstream = new QRbitstream();

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '1469', column '26').
                                                                                              Open

                                                                                                          $entry = new QRinputItem($mode, $size, $data);

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

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

                                                                                                  public static function splitStringToQRinput($string, QRinput $input, $modeHint, $casesensitive = true)

                                                                                              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 jpg has a boolean flag argument $filename, which is a certain sign of a Single Responsibility Principle violation.
                                                                                              Open

                                                                                                  public static function jpg($frame, $filename = false, $pixelPerPoint = 8, $outerFrame = 4, $q = 85)

                                                                                              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

                                                                                              Missing class import via use statement (line '1256', column '23').
                                                                                              Open

                                                                                                          $bs = new QRbitrtream();

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '1449', column '23').
                                                                                              Open

                                                                                                          throw new Exception('Invalid ECLEVEL');

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '1893', column '27').
                                                                                              Open

                                                                                                              throw new Exception('WRONG VERSION');

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '1169', column '23').
                                                                                              Open

                                                                                                          $bs = new QRbitstream();

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '1206', column '23').
                                                                                              Open

                                                                                                          $bs = new QRbitstream();

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '1960', column '24').
                                                                                              Open

                                                                                                      $bstream = new QRbitstream();

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '3230', column '45').
                                                                                              Open

                                                                                                          $this->rsblocks[$blockNo] = new QRrsblock($dl, array_slice($this->datacode, $dataPos), $el, $ecc, $rs);

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

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

                                                                                                  public static function text($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4)

                                                                                              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

                                                                                              Missing class import via use statement (line '3316', column '23').
                                                                                              Open

                                                                                                      $filler = new FrameFiller($width, $frame);

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '3347', column '24').
                                                                                              Open

                                                                                                      $maskObj = new QRmask();

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '3382', column '23').
                                                                                              Open

                                                                                                          throw new Exception('empty string!');

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

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

                                                                                                  public static function raw($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4)

                                                                                              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

                                                                                              Missing class import via use statement (line '3252', column '45').
                                                                                              Open

                                                                                                          $this->rsblocks[$blockNo] = new QRrsblock($dl, array_slice($this->datacode, $dataPos), $el, $ecc, $rs);

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '3406', column '23').
                                                                                              Open

                                                                                                          throw new Exception('bad hint');

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

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

                                                                                                      $outfile = false,

                                                                                              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

                                                                                              Missing class import via use statement (line '3308', column '20').
                                                                                              Open

                                                                                                      $raw = new QRrawcode($input);

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '3387', column '22').
                                                                                              Open

                                                                                                      $input = new QRinput($version, $level);

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '3302', column '23').
                                                                                              Open

                                                                                                          throw new Exception('wrong version');

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

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

                                                                                                  public function encodePNG($intext, $outfile = false, $saveandprint = false)

                                                                                              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 encodePNG has a boolean flag argument $outfile, which is a certain sign of a Single Responsibility Principle violation.
                                                                                              Open

                                                                                                  public function encodePNG($intext, $outfile = false, $saveandprint = false)

                                                                                              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

                                                                                              Missing class import via use statement (line '3615', column '21').
                                                                                              Open

                                                                                                      $code = new QRcode();

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

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

                                                                                                      $saveandprint = false

                                                                                              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

                                                                                              Missing class import via use statement (line '3196', column '23').
                                                                                              Open

                                                                                                          throw new Exception('null imput string');

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '3601', column '21').
                                                                                              Open

                                                                                                      $code = new QRcode();

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

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

                                                                                                  public function encodeRAW($intext, $outfile = false)

                                                                                              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

                                                                                              Missing class import via use statement (line '3411', column '22').
                                                                                              Open

                                                                                                      $input = new QRinput($version, $level);

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

                                                                                              Missing class import via use statement (line '3210', column '23').
                                                                                              Open

                                                                                                          throw new Exception('block alloc error');

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

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

                                                                                                  public function makeMaskNo($maskNo, $width, $s, &$d, $maskGenOnly = false)

                                                                                              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

                                                                                              Missing class import via use statement (line '3305', column '23').
                                                                                              Open

                                                                                                          throw new Exception('wrong level');

                                                                                              MissingImport

                                                                                              Since: 2.7.0

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

                                                                                              Example

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

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

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

                                                                                                  public function encode($intext, $outfile = false)

                                                                                              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 lengthIndicator uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              $l = 2;
                                                                                                          }

                                                                                              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 debug uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                      } else {
                                                                                                          foreach ($frame as &$frameLine) {
                                                                                                              $frameLine = implode('<span class="m">&nbsp;</span>', explode("\xc0", $frameLine));
                                                                                                              $frameLine = implode('<span class="m">&#9618;</span>', explode("\xc1", $frameLine));
                                                                                                              $frameLine = implode('<span class="p">&nbsp;</span>', explode("\xa0", $frameLine));

                                                                                              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 maximumWords uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              $l = 2;
                                                                                                          }

                                                                                              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 'QRstr' in method 'putAlignmentMarker'.
                                                                                              Open

                                                                                                          QRstr::set($frame, $xStart, $yStart + $y, $finder[$y]);

                                                                                              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 'QRstr' in method 'createFrame'.
                                                                                              Open

                                                                                                      QRstr::set($frame, 0, 8, $setPattern);

                                                                                              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 'QRstr' in method 'createFrame'.
                                                                                              Open

                                                                                                      QRstr::set($frame, $width - 8, 8, $setPattern, 8);

                                                                                              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 'QRcode' in method 'tcpdfBarcodeArray'.
                                                                                              Open

                                                                                                      $qrTab = QRcode::text($code, false, $eccLevel);

                                                                                              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 'QRstr' in method 'createFrame'.
                                                                                              Open

                                                                                                      QRstr::set($frame, $width - 8, 7, $setPattern);

                                                                                              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 'QRimage' in method 'buildCache'.
                                                                                              Open

                                                                                                              QRimage::png(self::binarize($frame), $fileName, 1, 0);

                                                                                              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 maximumWords uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                      } else {
                                                                                                          if ($version <= 26) {
                                                                                                              $l = 1;
                                                                                                          } else {
                                                                                                              $l = 2;

                                                                                              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 'QRstr' in method 'createFrame'.
                                                                                              Open

                                                                                                      QRstr::set($frame, 0, 7, $setPattern);

                                                                                              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 log uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                              } else {
                                                                                                                  file_put_contents(QR_LOG_DIR.'errors.txt', date('Y-m-d H:i:s').': '.$err, FILE_APPEND);
                                                                                                              }

                                                                                              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 newFrame uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                              } else {
                                                                                                                  self::$frames[$version] = self::createFrame($version);
                                                                                                                  file_put_contents($fileName, self::serial(self::$frames[$version]));
                                                                                                              }

                                                                                              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 png uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                      } else {
                                                                                                          if ($saveandprint === true) {
                                                                                                              imagepng($image, $filename);
                                                                                                              header('Content-type: image/png');
                                                                                                              imagepng($image);

                                                                                              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 'QRstr' in method 'putFinderPattern'.
                                                                                              Open

                                                                                                          QRstr::set($frame, $ox, $oy + $y, $finder[$y]);

                                                                                              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 'QRspec' in method 'buildCache'.
                                                                                              Open

                                                                                                          $frame = QRspec::newFrame($a);

                                                                                              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 'QRstr' in method 'createFrame'.
                                                                                              Open

                                                                                                      QRstr::set($frame, 0, $width - 8, $setPattern);

                                                                                              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 newFrame uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              self::$frames[$version] = self::createFrame($version);
                                                                                                          }

                                                                                              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 timeBenchmark uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              $startTime = $thisTime;
                                                                                                          }

                                                                                              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 putAlignmentPattern uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                      } else {
                                                                                                          $w = (int) (($width - self::$alignmentPattern[$version][0]) / $d + 2);
                                                                                                      }

                                                                                              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 lengthIndicator uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                      } else {
                                                                                                          if ($version <= 26) {
                                                                                                              $l = 1;
                                                                                                          } else {
                                                                                                              $l = 2;

                                                                                              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 getEccSpec uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                      } else {
                                                                                                          $spec[0] = $b1;
                                                                                                          $spec[1] = (int) ($data / ($b1 + $b2));
                                                                                                          $spec[2] = (int) ($ecc / ($b1 + $b2));
                                                                                                          $spec[3] = $b2;

                                                                                              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 'QRspec' in method 'encodeModeNum'.
                                                                                              Open

                                                                                                          $bs->appendNum(QRspec::lengthIndicator(QR_MODE_NUM, $version), $this->size);

                                                                                              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 convertData uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                              } else {
                                                                                                                  break;
                                                                                                              }

                                                                                              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 eat8 uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                              } else {
                                                                                                                  $p = $q;
                                                                                                              }

                                                                                              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 'QRinput' in method 'eat8'.
                                                                                              Open

                                                                                                                  $dif = QRinput::estimateBitsMode8($p)  // + 4 + l8

                                                                                              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 'QRspec' in method 'encodeModeKanji'.
                                                                                              Open

                                                                                                          $bs->appendNum(QRspec::lengthIndicator(QR_MODE_KANJI, $version), (int) ($this->size / 2));

                                                                                              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 'QRspec' in method 'estimateBitStreamSizeOfEntry'.
                                                                                              Open

                                                                                                      $l = QRspec::lengthIndicator($this->mode, $version);

                                                                                              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 encodeBitStream uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              $ret = 0;
                                                                                              
                                                                                                              switch ($this->mode) {
                                                                                                                  case QR_MODE_NUM:

                                                                                              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 'QRinput' in method 'eatNum'.
                                                                                              Open

                                                                                                          $dif = QRinput::estimateBitsModeNum($run) + 4 + $ln

                                                                                              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 'QRspec' in method 'encodeModeAn'.
                                                                                              Open

                                                                                                          $bs->appendNum(QRspec::lengthIndicator(QR_MODE_AN, $version), $this->size);

                                                                                              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 'QRinput' in method 'eatAn'.
                                                                                              Open

                                                                                                              $dif = QRinput::estimateBitsModeAn($p) // + 4 + la

                                                                                              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 'QRinput' in method 'eatAn'.
                                                                                              Open

                                                                                                                  - QRinput::estimateBitsModeAn($q); // - 4 - la

                                                                                              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 encodeModeKanji uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                              } else {
                                                                                                                  $val -= 0xc140;
                                                                                                              }

                                                                                              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 'QRinput' in method 'eatAn'.
                                                                                              Open

                                                                                                              - QRinput::estimateBitsMode8($run + 1); // - 4 - l8

                                                                                              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 'QRinput' in method '__construct'.
                                                                                              Open

                                                                                                      if (!QRinput::check($mode, $size, $setData)) {

                                                                                              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 'QRinput' in method 'isalnumat'.
                                                                                              Open

                                                                                                      return QRinput::lookAnTable(ord($str[$pos])) >= 0;

                                                                                              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 'QRinput' in method 'eatNum'.
                                                                                              Open

                                                                                                              + QRinput::estimateBitsModeAn(1)        // + 4 + la

                                                                                              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 'QRspec' in method 'eatAn'.
                                                                                              Open

                                                                                                      $la = QRspec::lengthIndicator(QR_MODE_AN, $this->input->getVersion());

                                                                                              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 'QRinput' in method 'eat8'.
                                                                                              Open

                                                                                                                  + QRinput::estimateBitsModeNum($q - $p) + 4 + $ln

                                                                                              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 'QRinput' in method 'eatAn'.
                                                                                              Open

                                                                                                              + QRinput::estimateBitsMode8(1) // + 4 + l8

                                                                                              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 splitString uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                                  } else {
                                                                                                                      $length = $this->eat8();
                                                                                                                  }

                                                                                              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 'QRinput' in method 'encodeModeAn'.
                                                                                              Open

                                                                                                              $val = QRinput::lookAnTable(ord($this->data[$words * 2]));

                                                                                              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 eat8 uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                                  } else {
                                                                                                                      $p = $q;
                                                                                                                  }

                                                                                              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 png uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              imagepng($image, $filename);
                                                                                                          }

                                                                                              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 'QRspec' in method 'estimateVersion'.
                                                                                              Open

                                                                                                          $version = QRspec::getMinimumVersion((int) (($bits + 7) / 8), $this->level);

                                                                                              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 convertData uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              if ($ver > $this->getVersion()) {
                                                                                                                  $this->setVersion($ver);
                                                                                                              } else {
                                                                                                                  break;

                                                                                              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 'QRspec' in method 'appendPaddingBit'.
                                                                                              Open

                                                                                                      $maxwords = QRspec::getDataLength($this->version, $this->level);

                                                                                              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 'QRinput' in method 'eatAn'.
                                                                                              Open

                                                                                                                  + QRinput::estimateBitsModeNum($q - $p) + 4 + $ln

                                                                                              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 'QRinput' in method 'eat8'.
                                                                                              Open

                                                                                                                  - QRinput::estimateBitsMode8($q); // - 4 - l8

                                                                                              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 'QRspec' in method 'lengthOfCode'.
                                                                                              Open

                                                                                                      $payload = $bits - 4 - QRspec::lengthIndicator($mode, $version);

                                                                                              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 'QRspec' in method 'convertData'.
                                                                                              Open

                                                                                                          $ver = QRspec::getMinimumVersion((int) (($bits + 7) / 8), $this->level);

                                                                                              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 newFromBytes uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                              } else {
                                                                                                                  $bstream->data[$p] = 0;
                                                                                                              }

                                                                                              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 'QRinput' in method 'eatNum'.
                                                                                              Open

                                                                                                          $dif = QRinput::estimateBitsModeNum($run) + 4 + $ln

                                                                                              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 eatAn uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                              } else {
                                                                                                                  $p = $q;
                                                                                                              }

                                                                                              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 'QRinput' in method 'estimateBitStreamSizeOfEntry'.
                                                                                              Open

                                                                                                              $bits = QRinput::estimateBitsModeNum($this->size);

                                                                                              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 'QRinput' in method 'eatNum'.
                                                                                              Open

                                                                                                              + QRinput::estimateBitsMode8(1)         // + 4 + l8

                                                                                              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 eat8 uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              if ($mode == QR_MODE_AN) {
                                                                                                                  $q = $p;
                                                                                                                  while (self::isalnumat($this->dataStr, $q)) {
                                                                                                                      $q++;

                                                                                              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 eat8 uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                              } else {
                                                                                                                  $p++;
                                                                                                              }

                                                                                              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 encodeModeNum uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              if ($this->size - $words * 3 == 2) {
                                                                                                                  $val = (ord($this->data[$words * 3]) - ord('0')) * 10;
                                                                                                                  $val += (ord($this->data[$words * 3 + 1]) - ord('0'));
                                                                                                                  $bs->appendNum(7, $val);

                                                                                              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 'QRspec' in method 'encodeMode8'.
                                                                                              Open

                                                                                                          $bs->appendNum(QRspec::lengthIndicator(QR_MODE_8, $version), $this->size);

                                                                                              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 lengthOfCode uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                              } else {
                                                                                                                  if ($remain >= 4) {
                                                                                                                      $size += 1;
                                                                                                                  }
                                                                                                              }

                                                                                              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 'QRspec' in method 'lengthOfCode'.
                                                                                              Open

                                                                                                      $maxsize = QRspec::maximumWords($mode, $version);

                                                                                              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 newFromNum uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              $bstream->data[$i] = 0;
                                                                                                          }

                                                                                              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 'QRinput' in method 'eat8'.
                                                                                              Open

                                                                                                              $dif = QRinput::estimateBitsMode8($p) // + 4 + l8

                                                                                              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 'QRinput' in method 'estimateBitStreamSizeOfEntry'.
                                                                                              Open

                                                                                                              $bits = QRinput::estimateBitsModeAn($this->size);

                                                                                              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 'QRspec' in method 'eatAn'.
                                                                                              Open

                                                                                                      $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());

                                                                                              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 'QRspec' in method 'eat8'.
                                                                                              Open

                                                                                                      $la = QRspec::lengthIndicator(QR_MODE_AN, $this->input->getVersion());

                                                                                              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 'QRinput' in method 'estimateBitStreamSizeOfEntry'.
                                                                                              Open

                                                                                                              $bits = QRinput::estimateBitsMode8($this->size);

                                                                                              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 'QRinput' in method 'estimateBitStreamSizeOfEntry'.
                                                                                              Open

                                                                                                              $bits = QRinput::estimateBitsModeKanji($this->size);

                                                                                              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 'QRinput' in method 'eatAn'.
                                                                                              Open

                                                                                                          $dif = QRinput::estimateBitsModeAn($run) + 4 + $la

                                                                                              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 'QRinput' in method 'eat8'.
                                                                                              Open

                                                                                                                      - QRinput::estimateBitsMode8($q); // - 4 - l8

                                                                                              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 'QRinput' in method 'encodeModeAn'.
                                                                                              Open

                                                                                                              $val += (int) QRinput::lookAnTable(ord($this->data[$i * 2 + 1]));

                                                                                              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 identifyMode uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                      } else {
                                                                                                          if (self::isalnumat($this->dataStr, $pos)) {
                                                                                                              return QR_MODE_AN;
                                                                                                          } else {
                                                                                                              if ($this->modeHint == QR_MODE_KANJI) {

                                                                                              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 eatAn uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              $p++;
                                                                                                          }

                                                                                              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 'QRinput' in method 'encodeModeAn'.
                                                                                              Open

                                                                                                              $val = (int) QRinput::lookAnTable(ord($this->data[$i * 2])) * 45;

                                                                                              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 identifyMode uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              if ($this->modeHint == QR_MODE_KANJI) {
                                                                                                                  if ($pos + 1 < strlen($this->dataStr)) {
                                                                                                                      $d = $this->dataStr[$pos + 1];
                                                                                                                      $word = (ord($c) << 8) | ord($d);

                                                                                              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 'QRinput' in method 'eatNum'.
                                                                                              Open

                                                                                                              - QRinput::estimateBitsMode8($run + 1); // - 4 - l8

                                                                                              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 toUpper uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              if (ord($this->dataStr[$p]) >= ord('a') && ord($this->dataStr[$p]) <= ord('z')) {
                                                                                                                  $this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32);
                                                                                                              }
                                                                                                              $p++;

                                                                                              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 jpg uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                      } else {
                                                                                                          imagejpeg($image, $filename, $q);
                                                                                                      }

                                                                                              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 'QRinput' in method 'eatNum'.
                                                                                              Open

                                                                                                              - QRinput::estimateBitsModeAn($run + 1); // - 4 - la

                                                                                              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 'QRspec' in method 'eat8'.
                                                                                              Open

                                                                                                      $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());

                                                                                              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 'QRspec' in method 'encodeBitStream'.
                                                                                              Open

                                                                                                          $words = QRspec::maximumWords($this->mode, $version);

                                                                                              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 'QRspec' in method 'eatNum'.
                                                                                              Open

                                                                                                      $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());

                                                                                              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 'QRinput' in method 'eat8'.
                                                                                              Open

                                                                                                                      + QRinput::estimateBitsModeAn($q - $p) + 4 + $la

                                                                                              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 writeFormatInformation uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              $v = 0x84;
                                                                                                          }

                                                                                              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 'QRrs' in method 'init'.
                                                                                              Open

                                                                                                      $rs = QRrs::init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el);

                                                                                              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 'QRrs' in method 'init'.
                                                                                              Open

                                                                                                      $rs = QRrs::init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el);

                                                                                              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 'QRspec' in method 'encodeMask'.
                                                                                              Open

                                                                                                      $width = QRspec::getWidth($version);

                                                                                              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 'QRtools' in method 'encodeMask'.
                                                                                              Open

                                                                                                      QRtools::markTime('after_filler');

                                                                                              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 makeMaskNo uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                      } else {
                                                                                                          $bitMask = $this->generateMaskNo($maskNo, $width, $s, $d);
                                                                                                      }

                                                                                              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 'QRspec' in method '__construct'.
                                                                                              Open

                                                                                                      QRspec::getEccSpec($input->getVersion(), $input->getErrorCorrectionLevel(), $spec);

                                                                                              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 'QRspec' in method 'init'.
                                                                                              Open

                                                                                                      $dl = QRspec::rsDataCodes2($spec);

                                                                                              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 getCode uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              return 0;
                                                                                                          }

                                                                                              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 'QRencode' in method 'raw'.
                                                                                              Open

                                                                                                      $enc = QRencode::factory($level, $size, $margin);

                                                                                              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 generateMaskNo uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                              } else {
                                                                                                                  $maskFunc = call_user_func([$this, 'mask'.$maskNo], $x, $y);
                                                                                                                  $bitMask[$y][$x] = ($maskFunc == 0) ? 1 : 0;
                                                                                                              }

                                                                                              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 'QRspec' in method 'init'.
                                                                                              Open

                                                                                                      $el = QRspec::rsEccCodes2($spec);

                                                                                              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 'QRtools' in method 'encodeMask'.
                                                                                              Open

                                                                                                      QRtools::markTime('after_raw');

                                                                                              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 'QRspec' in method 'encodeMask'.
                                                                                              Open

                                                                                                      $j = QRspec::getRemainder($version);

                                                                                              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 makeMaskNo uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              $bitMask = $this->generateMaskNo($maskNo, $width, $s, $d);
                                                                                                              if (!file_exists(QR_CACHE_DIR.'mask_'.$maskNo)) {
                                                                                                                  mkdir(QR_CACHE_DIR.'mask_'.$maskNo);
                                                                                                              }

                                                                                              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 'QRrsItem' in method 'init_rs'.
                                                                                              Open

                                                                                                      $rs = QRrsItem::init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad);

                                                                                              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 writeFormatInformation uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              $frame[$i + 1][8] = chr($v);
                                                                                                          }

                                                                                              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 evaluateSymbol uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                              } else {
                                                                                                                  if ($y > 0) {
                                                                                                                      if ((ord($frame[$y][$x]) ^ ord($frame[$y - 1][$x])) & 1) {
                                                                                                                          $head++;
                                                                                                                          $this->runLength[$head] = 1;

                                                                                              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 'QRspec' in method '__construct'.
                                                                                              Open

                                                                                                      $this->b1 = QRspec::rsBlockNum1($spec);

                                                                                              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 'QRtools' in method 'encodeMask'.
                                                                                              Open

                                                                                                      QRtools::markTime('after_mask');

                                                                                              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 'QRencode' in method 'text'.
                                                                                              Open

                                                                                                      $enc = QRencode::factory($level, $size, $margin);

                                                                                              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 evaluateSymbol uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                              } else {
                                                                                                                  if ($x > 0) {
                                                                                                                      if ((ord($frameY[$x]) ^ ord($frameY[$x - 1])) & 1) {
                                                                                                                          $head++;
                                                                                                                          $this->runLength[$head] = 1;

                                                                                              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 'QRspec' in method '__construct'.
                                                                                              Open

                                                                                                      $this->dataLength = QRspec::rsDataLength($spec);

                                                                                              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 'QRspec' in method 'init'.
                                                                                              Open

                                                                                                      $dl = QRspec::rsDataCodes1($spec);

                                                                                              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 'QRspec' in method 'encodeMask'.
                                                                                              Open

                                                                                                      $frame = QRspec::newFrame($version);

                                                                                              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 'QRencode' in method 'png'.
                                                                                              Open

                                                                                                      $enc = QRencode::factory($level, $size, $margin);

                                                                                              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 encodeMask uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                      } else {
                                                                                                          $masked = $maskObj->makeMask($width, $frame, $mask, $input->getErrorCorrectionLevel());
                                                                                                      }

                                                                                              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 'QRtools' in method 'encodePNG'.
                                                                                              Open

                                                                                                              QRtools::log($outfile, $err);

                                                                                              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 next uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              if ($y == $w) {
                                                                                                                  $y = $w - 1;
                                                                                                                  $x -= 2;
                                                                                                                  $this->dir = -1;

                                                                                              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 encodeMask uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              $masked = $maskObj->makeMask($width, $frame, (intval(QR_DEFAULT_MASK) % 8),
                                                                                                                  $input->getErrorCorrectionLevel());
                                                                                                          }

                                                                                              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 init_rs_char uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                              } else {
                                                                                                                  $rs->genpoly[$j] = $rs->genpoly[$j - 1];
                                                                                                              }

                                                                                              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 getCode uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                      } else {
                                                                                                          if ($this->count < $this->dataLength + $this->eccLength) {
                                                                                                              $row = ($this->count - $this->dataLength) % $this->blocks;
                                                                                                              $col = ($this->count - $this->dataLength) / $this->blocks;
                                                                                                              $ret = $this->rsblocks[$row]->ecc[$col];

                                                                                              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 evaluateSymbol uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                                      } else {
                                                                                                                          $this->runLength[$head]++;
                                                                                                                      }

                                                                                              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 encode_rs_char uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              array_push($parity, 0);
                                                                                                          }

                                                                                              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 writeFormatInformation uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              $frame[8][6 - $i] = chr($v);
                                                                                                          }

                                                                                              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 'QRspec' in method '__construct'.
                                                                                              Open

                                                                                                      $this->eccLength = QRspec::rsEccLength($spec);

                                                                                              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 'QRspec' in method 'init'.
                                                                                              Open

                                                                                                      for ($i = 0; $i < QRspec::rsBlockNum2($spec); $i++) {

                                                                                              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 'QRsplit' in method 'encodeString'.
                                                                                              Open

                                                                                                      $ret = QRsplit::splitStringToQRinput($string, $input, $hint, $casesensitive);

                                                                                              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 'QRspec' in method 'init'.
                                                                                              Open

                                                                                                      for ($i = 0; $i < QRspec::rsBlockNum1($spec); $i++) {

                                                                                              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 'QRtools' in method 'encode'.
                                                                                              Open

                                                                                                      QRtools::markTime('after_encode');

                                                                                              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 'QRtools' in method 'encodePNG'.
                                                                                              Open

                                                                                                          QRtools::log($outfile, $e->getMessage());

                                                                                              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 encode uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                      } else {
                                                                                                          return QRtools::binarize($code->data);
                                                                                                      }

                                                                                              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 evaluateSymbol uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                                      } else {
                                                                                                                          $this->runLength[$head]++;
                                                                                                                      }

                                                                                              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 'QRspec' in method '__construct'.
                                                                                              Open

                                                                                                      $this->blocks = QRspec::rsBlockNum($spec);

                                                                                              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 'QRspec' in method 'init'.
                                                                                              Open

                                                                                                      $el = QRspec::rsEccCodes1($spec);

                                                                                              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 encode uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                      } else {
                                                                                                          $code->encodeString($intext, $this->version, $this->level, $this->hint, $this->casesensitive);
                                                                                                      }

                                                                                              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 next uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              $x++;
                                                                                                              $y += $this->dir;
                                                                                                              $this->bit--;
                                                                                                          }

                                                                                              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 'QRimage' in method 'encodePNG'.
                                                                                              Open

                                                                                                          QRimage::png($tab, $outfile, min(max(1, $this->size), $maxSize), $this->margin, $saveandprint);

                                                                                              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 'QRtools' in method 'encode'.
                                                                                              Open

                                                                                                          file_put_contents($outfile, implode("\n", QRtools::binarize($code->data)));

                                                                                              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 'QRspec' in method 'writeFormatInformation'.
                                                                                              Open

                                                                                                      $format = QRspec::getFormatInfo($mask, $level);

                                                                                              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 writeFormatInformation uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                          } else {
                                                                                                              $v = 0x84;
                                                                                                          }

                                                                                              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 calcN1N3 uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                                      } else {
                                                                                                                          if ((($i + 3) >= $length) || ($this->runLength[$i + 3] >= (4 * $fact))) {
                                                                                                                              $demerit += N3;
                                                                                                                          }
                                                                                                                      }

                                                                                              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 'QRspec' in method 'init'.
                                                                                              Open

                                                                                                      if (QRspec::rsBlockNum2($spec) == 0) {

                                                                                              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 'QRtools' in method 'encode'.
                                                                                              Open

                                                                                                          return QRtools::binarize($code->data);

                                                                                              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 encodeRAW uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                                              Open

                                                                                                      } else {
                                                                                                          $code->encodeString($intext, $this->version, $this->level, $this->hint, $this->casesensitive);
                                                                                                      }

                                                                                              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 unused parameters such as '$tcPdfVersion'.
                                                                                              Open

                                                                                                  public static function tcpdfBarcodeArray($code, $mode = 'QR,L', $tcPdfVersion = '4.5.037')

                                                                                              UnusedFormalParameter

                                                                                              Since: 0.2

                                                                                              Avoid passing parameters to methods or constructors and then not using those parameters.

                                                                                              Example

                                                                                              class Foo
                                                                                              {
                                                                                                  private function bar($howdy)
                                                                                                  {
                                                                                                      // $howdy is not used
                                                                                                  }
                                                                                              }

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

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

                                                                                                                  if ($hint == QR_MODE_KANJI) {

                                                                                              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 '$buf'.
                                                                                              Open

                                                                                                      $buf = [$size, $index, $parity];

                                                                                              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 '$run'.
                                                                                              Open

                                                                                                      return $run;

                                                                                              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 '$MM'.
                                                                                              Open

                                                                                                      $MM = &$this->mm;

                                                                                              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 '$PRIM'.
                                                                                              Open

                                                                                                      $PRIM = &$this->prim;

                                                                                              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 parameters such as '$y'.
                                                                                              Open

                                                                                                  public function mask2($x, $y)

                                                                                              UnusedFormalParameter

                                                                                              Since: 0.2

                                                                                              Avoid passing parameters to methods or constructors and then not using those parameters.

                                                                                              Example

                                                                                              class Foo
                                                                                              {
                                                                                                  private function bar($howdy)
                                                                                                  {
                                                                                                      // $howdy is not used
                                                                                                  }
                                                                                              }

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

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

                                                                                                      $bestMaskNum = 0;

                                                                                              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 parameters such as '$outfile'.
                                                                                              Open

                                                                                                  public function encodeRAW($intext, $outfile = false)

                                                                                              UnusedFormalParameter

                                                                                              Since: 0.2

                                                                                              Avoid passing parameters to methods or constructors and then not using those parameters.

                                                                                              Example

                                                                                              class Foo
                                                                                              {
                                                                                                  private function bar($howdy)
                                                                                                  {
                                                                                                      // $howdy is not used
                                                                                                  }
                                                                                              }

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

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

                                                                                                      $IPRIM = &$this->iprim;

                                                                                              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 parameters such as '$x'.
                                                                                              Open

                                                                                                  public function mask1($x, $y)

                                                                                              UnusedFormalParameter

                                                                                              Since: 0.2

                                                                                              Avoid passing parameters to methods or constructors and then not using those parameters.

                                                                                              Example

                                                                                              class Foo
                                                                                              {
                                                                                                  private function bar($howdy)
                                                                                                  {
                                                                                                      // $howdy is not used
                                                                                                  }
                                                                                              }

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

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

                                                                                                      $FCR = &$this->fcr;

                                                                                              UnusedLocalVariable

                                                                                              Since: 0.2

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

                                                                                              Example

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

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

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

                                                                                                      for ($i = 0; $i < QRspec::rsBlockNum1($spec); $i++) {
                                                                                                          $ecc = array_slice($this->ecccode, $eccPos);
                                                                                                          $this->rsblocks[$blockNo] = new QRrsblock($dl, array_slice($this->datacode, $dataPos), $el, $ecc, $rs);
                                                                                                          $this->ecccode = array_merge(array_slice($this->ecccode, 0, $eccPos), $ecc);
                                                                                              
                                                                                              
                                                                                              Severity: Major
                                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php and 1 other location - About 2 hrs to fix
                                                                                              lib/Ajde/Resource/Qrcode/lib/phpqrcode.php on lines 3250..3258

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

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

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

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

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

                                                                                              Refactorings

                                                                                              Further Reading

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

                                                                                                      for ($i = 0; $i < QRspec::rsBlockNum2($spec); $i++) {
                                                                                                          $ecc = array_slice($this->ecccode, $eccPos);
                                                                                                          $this->rsblocks[$blockNo] = new QRrsblock($dl, array_slice($this->datacode, $dataPos), $el, $ecc, $rs);
                                                                                                          $this->ecccode = array_merge(array_slice($this->ecccode, 0, $eccPos), $ecc);
                                                                                              
                                                                                              
                                                                                              Severity: Major
                                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php and 1 other location - About 2 hrs to fix
                                                                                              lib/Ajde/Resource/Qrcode/lib/phpqrcode.php on lines 3228..3236

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

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

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

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

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

                                                                                              Refactorings

                                                                                              Further Reading

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

                                                                                                          if (self::isdigitat($this->dataStr, $p)) {
                                                                                                              $q = $p;
                                                                                                              while (self::isdigitat($this->dataStr, $q)) {
                                                                                                                  $q++;
                                                                                                              }
                                                                                              Severity: Major
                                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php and 2 other locations - About 50 mins to fix
                                                                                              lib/Ajde/Resource/Qrcode/lib/phpqrcode.php on lines 2402..2432
                                                                                              lib/Ajde/Resource/Qrcode/lib/phpqrcode.php on lines 2416..2431

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

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

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

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

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

                                                                                              Refactorings

                                                                                              Further Reading

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

                                                                                                              if ($mode == QR_MODE_AN) {
                                                                                                                  $q = $p;
                                                                                                                  while (self::isalnumat($this->dataStr, $q)) {
                                                                                                                      $q++;
                                                                                                                  }
                                                                                              Severity: Major
                                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php and 2 other locations - About 50 mins to fix
                                                                                              lib/Ajde/Resource/Qrcode/lib/phpqrcode.php on lines 2332..2349
                                                                                              lib/Ajde/Resource/Qrcode/lib/phpqrcode.php on lines 2402..2432

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

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

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

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

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

                                                                                              Refactorings

                                                                                              Further Reading

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

                                                                                                          if ($mode == QR_MODE_NUM) {
                                                                                                              $q = $p;
                                                                                                              while (self::isdigitat($this->dataStr, $q)) {
                                                                                                                  $q++;
                                                                                                              }
                                                                                              Severity: Major
                                                                                              Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php and 2 other locations - About 50 mins to fix
                                                                                              lib/Ajde/Resource/Qrcode/lib/phpqrcode.php on lines 2332..2349
                                                                                              lib/Ajde/Resource/Qrcode/lib/phpqrcode.php on lines 2416..2431

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

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

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

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

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

                                                                                              Refactorings

                                                                                              Further Reading

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

                                                                                                      $b2 = self::$eccTable[$version][$level][1];

                                                                                              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 $y. Configured minimum length is 3.
                                                                                              Open

                                                                                                          $y = self::$alignmentPattern[$version][0];

                                                                                              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

                                                                                              The class qrstr is not named in CamelCase.
                                                                                              Open

                                                                                              class qrstr
                                                                                              {
                                                                                                  public static function set(&$srctab, $x, $y, $repl, $replLen = false)
                                                                                                  {
                                                                                                      $srctab[$y] = substr_replace($srctab[$y], ($replLen !== false) ? substr($repl, 0, $replLen) : $repl, $x,

                                                                                              CamelCaseClassName

                                                                                              Since: 0.2

                                                                                              It is considered best practice to use the CamelCase notation to name classes.

                                                                                              Example

                                                                                              class class_name {
                                                                                              }

                                                                                              Source

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

                                                                                                          $x = self::$alignmentPattern[$version][0];

                                                                                              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 $ox. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public static function putFinderPattern(&$frame, $ox, $oy)

                                                                                              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 $w. Configured minimum length is 3.
                                                                                              Open

                                                                                                          $w = 2;

                                                                                              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 $oy. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public static function putAlignmentMarker(array &$frame, $ox, $oy)

                                                                                              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 $x. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public static function set(&$srctab, $x, $y, $repl, $replLen = false)

                                                                                              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 $l. Configured minimum length is 3.
                                                                                              Open

                                                                                                          $l = 0;

                                                                                              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 $ox. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public static function putAlignmentMarker(array &$frame, $ox, $oy)

                                                                                              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 $d. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $d = self::$alignmentPattern[$version][1] - self::$alignmentPattern[$version][0];

                                                                                              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 $v. Configured minimum length is 3.
                                                                                              Open

                                                                                                          $v = $vinf;

                                                                                              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 $y. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public static function set(&$srctab, $x, $y, $repl, $replLen = false)

                                                                                              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 $l. Configured minimum length is 3.
                                                                                              Open

                                                                                                          $l = 0;

                                                                                              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

                                                                                              The parameter $binary_mode is not named in camelCase.
                                                                                              Open

                                                                                                  public static function debug($frame, $binary_mode = false)
                                                                                                  {
                                                                                                      if ($binary_mode) {
                                                                                                          foreach ($frame as &$frameLine) {
                                                                                                              $frameLine = implode('<span class="m">&nbsp;&nbsp;</span>', explode('0', $frameLine));

                                                                                              CamelCaseParameterName

                                                                                              Since: 0.2

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

                                                                                              Example

                                                                                              class ClassName {
                                                                                                  public function doSomething($user_name) {
                                                                                                  }
                                                                                              }

                                                                                              Source

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

                                                                                                      $cx = self::$alignmentPattern[$version][0];

                                                                                              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 $b1. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $b1 = self::$eccTable[$version][$level][0];

                                                                                              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 $p. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $p = 0;

                                                                                              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 $cy. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $cy = self::$alignmentPattern[$version][0];

                                                                                              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 $oy. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public static function putFinderPattern(&$frame, $ox, $oy)

                                                                                              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 $q. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public static function jpg($frame, $filename = false, $pixelPerPoint = 8, $outerFrame = 4, $q = 85)

                                                                                              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 $bs. Configured minimum length is 3.
                                                                                              Open

                                                                                                          $bs = new QRbitstream();

                                                                                              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 $ln. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());

                                                                                              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 $x. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function modnn($x)

                                                                                              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 $b. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $b = self::newFromNum($bits, $num);

                                                                                              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 $d. Configured minimum length is 3.
                                                                                              Open

                                                                                                                      $d = $this->dataStr[$pos + 1];

                                                                                              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 $q. Configured minimum length is 3.
                                                                                              Open

                                                                                                              $q = $p;

                                                                                              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 $nn. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public $nn;                  // Symbols per block (= (1<<mm)-1)

                                                                                              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 $l. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $l = QRspec::lengthIndicator($this->mode, $version);

                                                                                              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 $la. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $la = QRspec::lengthIndicator(QR_MODE_AN, $this->input->getVersion());

                                                                                              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

                                                                                              The property $alpha_to is not named in camelCase.
                                                                                              Open

                                                                                              class QRrsItem
                                                                                              {
                                                                                                  public $mm;                  // Bits per symbol
                                                                                                  public $nn;                  // Symbols per block (= (1<<mm)-1)
                                                                                                  public $alpha_to = [];  // log lookup table

                                                                                              CamelCasePropertyName

                                                                                              Since: 0.2

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

                                                                                              Example

                                                                                              class ClassName {
                                                                                                  protected $property_name;
                                                                                              }

                                                                                              Source

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

                                                                                                      $p = 0;

                                                                                              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 $p. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $p = 0;

                                                                                              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 $h. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $h = count($frame);

                                                                                              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 $h. Configured minimum length is 3.
                                                                                              Open

                                                                                                              $h = ($val >> 8) * 0xc0;

                                                                                              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 $b. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $b = self::newFromBytes($size, $data);

                                                                                              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 $mm. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public $mm;                  // Bits per symbol

                                                                                              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 $bs. Configured minimum length is 3.
                                                                                              Open

                                                                                                          $bs = new QRbitstream();

                                                                                              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 $v. Configured minimum length is 3.
                                                                                              Open

                                                                                                          $v = 0;

                                                                                              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 $c. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $c = $this->dataStr[$pos];

                                                                                              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 $la. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $la = QRspec::lengthIndicator(QR_MODE_AN, $this->input->getVersion());

                                                                                              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 $p. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $p = 1;

                                                                                              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 $w. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $w = strlen($frame[0]);

                                                                                              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 $p. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $p = 0;

                                                                                              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 $bs. Configured minimum length is 3.
                                                                                              Open

                                                                                                          $bs = new QRbitstream();

                                                                                              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 $c. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public static function lookAnTable($c)

                                                                                              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 $p. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $p = 0;

                                                                                              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 $ln. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());

                                                                                              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

                                                                                              The property $index_of is not named in camelCase.
                                                                                              Open

                                                                                              class QRrsItem
                                                                                              {
                                                                                                  public $mm;                  // Bits per symbol
                                                                                                  public $nn;                  // Symbols per block (= (1<<mm)-1)
                                                                                                  public $alpha_to = [];  // log lookup table

                                                                                              CamelCasePropertyName

                                                                                              Since: 0.2

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

                                                                                              Example

                                                                                              class ClassName {
                                                                                                  protected $property_name;
                                                                                              }

                                                                                              Source

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

                                                                                                      $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());

                                                                                              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 $m. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $m = 1 << $l;

                                                                                              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 $w. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $w = (int) $size / 3;

                                                                                              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 $q. Configured minimum length is 3.
                                                                                              Open

                                                                                                              $q = $p;

                                                                                              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 $bs. Configured minimum length is 3.
                                                                                              Open

                                                                                                          $bs = new QRbitrtream();

                                                                                              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 $w. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $w = (int) ($size / 2);

                                                                                              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 $bs. Configured minimum length is 3.
                                                                                              Open

                                                                                                          $bs = new QRbitstream();

                                                                                              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 $p. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $p = 0;

                                                                                              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 $p. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $p = 0;

                                                                                              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 $A0. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $A0 = &$NN;

                                                                                              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 $y. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function mask2($x, $y)

                                                                                              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 $y. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function mask3($x, $y)

                                                                                              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 $x. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function mask4($x, $y)

                                                                                              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 $y. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function mask4($x, $y)

                                                                                              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 $x. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function mask5($x, $y)

                                                                                              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 $s. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function makeMaskNo($maskNo, $width, $s, &$d, $maskGenOnly = false)

                                                                                              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 $dl. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function __construct($dl, $data, $el, &$ecc, QRrsItem $rs)

                                                                                              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 $el. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $el = QRspec::rsEccCodes1($spec);

                                                                                              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 $y. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function mask7($x, $y)

                                                                                              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 $rs. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function __construct($dl, $data, $el, &$ecc, QRrsItem $rs)

                                                                                              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 $rs. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $rs = QRrs::init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el);

                                                                                              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 $NN. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $NN = &$rs->nn;

                                                                                              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 $MM. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $MM = &$this->mm;

                                                                                              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 $b. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $b = 0;

                                                                                              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 $b1. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public $b1;

                                                                                              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 $rs. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $rs = null;

                                                                                              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 $NN. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $NN = &$this->nn;

                                                                                              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 $y. Configured minimum length is 3.
                                                                                              Open

                                                                                                          $y = $this->y;

                                                                                              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 $y. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function mask6($x, $y)

                                                                                              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 $sr. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $sr = 1;

                                                                                              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 $y. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function mask0($x, $y)

                                                                                              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 $y. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function mask5($x, $y)

                                                                                              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 $el. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function __construct($dl, $data, $el, &$ecc, QRrsItem $rs)

                                                                                              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 $A0. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $A0 = &$NN;

                                                                                              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 $x. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function mask0($x, $y)

                                                                                              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 $d. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function makeMaskNo($maskNo, $width, $s, &$d, $maskGenOnly = false)

                                                                                              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 $at. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function setFrameAt($at, $val)

                                                                                              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 $at. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function getFrameAt($at)

                                                                                              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 $y. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function mask1($x, $y)

                                                                                              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 $x. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function mask2($x, $y)

                                                                                              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 $x. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function mask3($x, $y)

                                                                                              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 $w. Configured minimum length is 3.
                                                                                              Open

                                                                                                          $w = $this->width;

                                                                                              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 $v. Configured minimum length is 3.
                                                                                              Open

                                                                                                              $v = 0x85;

                                                                                              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 $x. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function mask1($x, $y)

                                                                                              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 $x. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function mask6($x, $y)

                                                                                              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 $x. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public function mask7($x, $y)

                                                                                              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 $dl. Configured minimum length is 3.
                                                                                              Open

                                                                                                      $dl = QRspec::rsDataCodes1($spec);

                                                                                              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 $x. Configured minimum length is 3.
                                                                                              Open

                                                                                                          $x = $this->x;

                                                                                              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 $y. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public $y;

                                                                                              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 $x. Configured minimum length is 3.
                                                                                              Open

                                                                                                  public $x;

                                                                                              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

                                                                                              The variable $barcode_array is not named in camelCase.
                                                                                              Open

                                                                                                  public static function tcpdfBarcodeArray($code, $mode = 'QR,L', $tcPdfVersion = '4.5.037')
                                                                                                  {
                                                                                                      $barcode_array = [];
                                                                                              
                                                                                                      if (!is_array($mode)) {

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

                                                                                                  public static function debug($frame, $binary_mode = false)
                                                                                                  {
                                                                                                      if ($binary_mode) {
                                                                                                          foreach ($frame as &$frameLine) {
                                                                                                              $frameLine = implode('<span class="m">&nbsp;&nbsp;</span>', explode('0', $frameLine));

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

                                                                                                  public static function tcpdfBarcodeArray($code, $mode = 'QR,L', $tcPdfVersion = '4.5.037')
                                                                                                  {
                                                                                                      $barcode_array = [];
                                                                                              
                                                                                                      if (!is_array($mode)) {

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

                                                                                                  public static function tcpdfBarcodeArray($code, $mode = 'QR,L', $tcPdfVersion = '4.5.037')
                                                                                                  {
                                                                                                      $barcode_array = [];
                                                                                              
                                                                                                      if (!is_array($mode)) {

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

                                                                                                  public static function tcpdfBarcodeArray($code, $mode = 'QR,L', $tcPdfVersion = '4.5.037')
                                                                                                  {
                                                                                                      $barcode_array = [];
                                                                                              
                                                                                                      if (!is_array($mode)) {

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

                                                                                                  public static function tcpdfBarcodeArray($code, $mode = 'QR,L', $tcPdfVersion = '4.5.037')
                                                                                                  {
                                                                                                      $barcode_array = [];
                                                                                              
                                                                                                      if (!is_array($mode)) {

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

                                                                                                  public static function tcpdfBarcodeArray($code, $mode = 'QR,L', $tcPdfVersion = '4.5.037')
                                                                                                  {
                                                                                                      $barcode_array = [];
                                                                                              
                                                                                                      if (!is_array($mode)) {

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

                                                                                                  private static function image($frame, $pixelPerPoint = 4, $outerFrame = 4)
                                                                                                  {
                                                                                                      $h = count($frame);
                                                                                                      $w = strlen($frame[0]);
                                                                                              
                                                                                              

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

                                                                                                  private static function image($frame, $pixelPerPoint = 4, $outerFrame = 4)
                                                                                                  {
                                                                                                      $h = count($frame);
                                                                                                      $w = strlen($frame[0]);
                                                                                              
                                                                                              

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

                                                                                                  private static function image($frame, $pixelPerPoint = 4, $outerFrame = 4)
                                                                                                  {
                                                                                                      $h = count($frame);
                                                                                                      $w = strlen($frame[0]);
                                                                                              
                                                                                              

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

                                                                                                  private static function image($frame, $pixelPerPoint = 4, $outerFrame = 4)
                                                                                                  {
                                                                                                      $h = count($frame);
                                                                                                      $w = strlen($frame[0]);
                                                                                              
                                                                                              

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

                                                                                                  private static function image($frame, $pixelPerPoint = 4, $outerFrame = 4)
                                                                                                  {
                                                                                                      $h = count($frame);
                                                                                                      $w = strlen($frame[0]);
                                                                                              
                                                                                              

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

                                                                                                  public static function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
                                                                                                  {
                                                                                                      // Common code for intializing a Reed-Solomon control block (char or int symbols)
                                                                                                      // Copyright 2004 Phil Karn, KA9Q
                                                                                                      // May be used under the terms of the GNU Lesser General Public License (LGPL)

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

                                                                                                  private static function image($frame, $pixelPerPoint = 4, $outerFrame = 4)
                                                                                                  {
                                                                                                      $h = count($frame);
                                                                                                      $w = strlen($frame[0]);
                                                                                              
                                                                                              

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

                                                                                                  private static function image($frame, $pixelPerPoint = 4, $outerFrame = 4)
                                                                                                  {
                                                                                                      $h = count($frame);
                                                                                                      $w = strlen($frame[0]);
                                                                                              
                                                                                              

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

                                                                                                  private static function image($frame, $pixelPerPoint = 4, $outerFrame = 4)
                                                                                                  {
                                                                                                      $h = count($frame);
                                                                                                      $w = strlen($frame[0]);
                                                                                              
                                                                                              

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

                                                                                                  private static function image($frame, $pixelPerPoint = 4, $outerFrame = 4)
                                                                                                  {
                                                                                                      $h = count($frame);
                                                                                                      $w = strlen($frame[0]);
                                                                                              
                                                                                              

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

                                                                                                  private static function image($frame, $pixelPerPoint = 4, $outerFrame = 4)
                                                                                                  {
                                                                                                      $h = count($frame);
                                                                                                      $w = strlen($frame[0]);
                                                                                              
                                                                                              

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public static function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
                                                                                                  {
                                                                                                      // Common code for intializing a Reed-Solomon control block (char or int symbols)
                                                                                                      // Copyright 2004 Phil Karn, KA9Q
                                                                                                      // May be used under the terms of the GNU Lesser General Public License (LGPL)

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function mask($width, $frame, $level)
                                                                                                  {
                                                                                                      $minDemerit = PHP_INT_MAX;
                                                                                                      $bestMaskNum = 0;
                                                                                                      $bestMask = [];

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public static function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
                                                                                                  {
                                                                                                      // Common code for intializing a Reed-Solomon control block (char or int symbols)
                                                                                                      // Copyright 2004 Phil Karn, KA9Q
                                                                                                      // May be used under the terms of the GNU Lesser General Public License (LGPL)

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function mask($width, $frame, $level)
                                                                                                  {
                                                                                                      $minDemerit = PHP_INT_MAX;
                                                                                                      $bestMaskNum = 0;
                                                                                                      $bestMask = [];

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public static function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
                                                                                                  {
                                                                                                      // Common code for intializing a Reed-Solomon control block (char or int symbols)
                                                                                                      // Copyright 2004 Phil Karn, KA9Q
                                                                                                      // May be used under the terms of the GNU Lesser General Public License (LGPL)

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function mask($width, $frame, $level)
                                                                                                  {
                                                                                                      $minDemerit = PHP_INT_MAX;
                                                                                                      $bestMaskNum = 0;
                                                                                                      $bestMask = [];

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

                                                                                                  public static function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
                                                                                                  {
                                                                                                      // Common code for intializing a Reed-Solomon control block (char or int symbols)
                                                                                                      // Copyright 2004 Phil Karn, KA9Q
                                                                                                      // May be used under the terms of the GNU Lesser General Public License (LGPL)

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

                                                                                                  public function mask($width, $frame, $level)
                                                                                                  {
                                                                                                      $minDemerit = PHP_INT_MAX;
                                                                                                      $bestMaskNum = 0;
                                                                                                      $bestMask = [];

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

                                                                                                  public function mask($width, $frame, $level)
                                                                                                  {
                                                                                                      $minDemerit = PHP_INT_MAX;
                                                                                                      $bestMaskNum = 0;
                                                                                                      $bestMask = [];

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

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

                                                                                                  public function mask($width, $frame, $level)
                                                                                                  {
                                                                                                      $minDemerit = PHP_INT_MAX;
                                                                                                      $bestMaskNum = 0;
                                                                                                      $bestMask = [];

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

                                                                                                  public static function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
                                                                                                  {
                                                                                                      // Common code for intializing a Reed-Solomon control block (char or int symbols)
                                                                                                      // Copyright 2004 Phil Karn, KA9Q
                                                                                                      // May be used under the terms of the GNU Lesser General Public License (LGPL)

                                                                                              CamelCaseMethodName

                                                                                              Since: 0.2

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

                                                                                              Example

                                                                                              class ClassName {
                                                                                                  public function get_name() {
                                                                                                  }
                                                                                              }

                                                                                              Source

                                                                                              The method encode_rs_char is not named in camelCase.
                                                                                              Open

                                                                                                  public function encode_rs_char($data, &$parity)
                                                                                                  {
                                                                                                      $MM = &$this->mm;
                                                                                                      $NN = &$this->nn;
                                                                                                      $ALPHA_TO = &$this->alpha_to;

                                                                                              CamelCaseMethodName

                                                                                              Since: 0.2

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

                                                                                              Example

                                                                                              class ClassName {
                                                                                                  public function get_name() {
                                                                                                  }
                                                                                              }

                                                                                              Source

                                                                                              The method init_rs is not named in camelCase.
                                                                                              Open

                                                                                                  public static function init_rs($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
                                                                                                  {
                                                                                                      foreach (self::$items as $rs) {
                                                                                                          if ($rs->pad != $pad) {
                                                                                                              continue;

                                                                                              CamelCaseMethodName

                                                                                              Since: 0.2

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

                                                                                              Example

                                                                                              class ClassName {
                                                                                                  public function get_name() {
                                                                                                  }
                                                                                              }

                                                                                              Source

                                                                                              There are no issues that match your filters.

                                                                                              Category
                                                                                              Status