XoopsModules25x/apcal

View on GitHub
thumbs/phpthumb.gif.php

Summary

Maintainability
F
1 wk
Test Coverage

File phpthumb.gif.php has 851 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
///////////////////////////////////////////////////////////////////////////////////////////////////
// GIF Util - (C) 2003 Yamasoft (S/C)
// http://www.yamasoft.com
// All Rights Reserved
Severity: Major
Found in thumbs/phpthumb.gif.php - About 2 days to fix

    Function getBmp has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
    Open

        public function getBmp($bgColor)
        {
            $out = '';
    
            if (!$this->m_bLoaded) {
    Severity: Minor
    Found in thumbs/phpthumb.gif.php - About 5 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 LZWCommand has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
    Open

        public function LZWCommand(&$data, $bInit)
        {
            if ($bInit) {
                $this->SetCodeSize = ord($data{0});
                $data              = substr($data, 1);
    Severity: Minor
    Found in thumbs/phpthumb.gif.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 getPng has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
    Open

        public function getPng($bgColor)
        {
            $out = '';
    
            if (!$this->m_bLoaded) {
    Severity: Minor
    Found in thumbs/phpthumb.gif.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

    Method LZWCommand has 87 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function LZWCommand(&$data, $bInit)
        {
            if ($bInit) {
                $this->SetCodeSize = ord($data{0});
                $data              = substr($data, 1);
    Severity: Major
    Found in thumbs/phpthumb.gif.php - About 3 hrs to fix

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

      class CGIF
      {
          public $m_gfh;
          public $m_lpData;
          public $m_img;
      Severity: Minor
      Found in thumbs/phpthumb.gif.php by phpmd

      Method getBmp has 74 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getBmp($bgColor)
          {
              $out = '';
      
              if (!$this->m_bLoaded) {
      Severity: Major
      Found in thumbs/phpthumb.gif.php - About 2 hrs to fix

        Method getPng has 73 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function getPng($bgColor)
            {
                $out = '';
        
                if (!$this->m_bLoaded) {
        Severity: Major
        Found in thumbs/phpthumb.gif.php - About 2 hrs to fix

          Function getGD_PixelPlotterVersion has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
          Open

              public function getGD_PixelPlotterVersion()
              {
                  if (!$this->m_bLoaded) {
                      return false;
                  }
          Severity: Minor
          Found in thumbs/phpthumb.gif.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 gif_outputAsJpeg has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
          Open

          function gif_outputAsJpeg($gif, $lpszFileName, $bgColor = -1)
          {
              // JPEG output that does not require cjpeg added by James Heinrich <info@silisoftware.com> - December 10, 2003
              if ((strtoupper(substr(PHP_OS, 0, 3)) != 'WIN') && (file_exists('/usr/local/bin/cjpeg') || `which cjpeg`)) {
                  if (gif_outputAsBmp($gif, $lpszFileName . '.bmp', $bgColor)) {
          Severity: Minor
          Found in thumbs/phpthumb.gif.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 GetCode has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
          Open

              public function GetCode(&$data, $bInit)
              {
                  if ($bInit) {
                      $this->CurBit   = 0;
                      $this->LastBit  = 0;
          Severity: Minor
          Found in thumbs/phpthumb.gif.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 getGD_PixelPlotterVersion has 39 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function getGD_PixelPlotterVersion()
              {
                  if (!$this->m_bLoaded) {
                      return false;
                  }
          Severity: Minor
          Found in thumbs/phpthumb.gif.php - About 1 hr to fix

            The class CGIFLZW has 19 fields. Consider redesigning CGIFLZW to keep the number of fields under 15.
            Open

            class CGIFLZW
            {
                public $MAX_LZW_BITS;
                public $Fresh;
                public $CodeSize;
            Severity: Minor
            Found in thumbs/phpthumb.gif.php by phpmd

            TooManyFields

            Since: 0.1

            Classes that have too many fields could be redesigned to have fewer fields, possibly through some nested object grouping of some of the information. For example, a class with city/state/zip fields could instead have one Address field.

            Example

            class Person {
               protected $one;
               private $two;
               private $three;
               [... many more fields ...]
            }

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

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

                public function GetCode(&$data, $bInit)
                {
                    if ($bInit) {
                        $this->CurBit   = 0;
                        $this->LastBit  = 0;
            Severity: Minor
            Found in thumbs/phpthumb.gif.php - About 1 hr to fix

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

                  public function load($data, &$datLen)
                  {
                      $datLen = 0;
              
                      while (true) {
              Severity: Minor
              Found in thumbs/phpthumb.gif.php - About 1 hr to fix

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

                    public function skipExt(&$data, &$extLen)
                    {
                        $extLen = 0;
                
                        $b    = ord($data{0});
                Severity: Minor
                Found in thumbs/phpthumb.gif.php - About 1 hr to fix

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

                      public function load($data, &$datLen)
                      {
                          $datLen = 0;
                  
                          while (true) {
                  Severity: Minor
                  Found in thumbs/phpthumb.gif.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 deInterlace has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function deInterlace()
                      {
                          $data = $this->m_data;
                  
                          for ($i = 0; $i < 4; $i++) {
                  Severity: Minor
                  Found in thumbs/phpthumb.gif.php - About 1 hr to fix

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

                        public function load($lpData, &$hdrLen)
                        {
                            $hdrLen = 0;
                    
                            $this->m_lpVer = substr($lpData, 0, 6);
                    Severity: Minor
                    Found in thumbs/phpthumb.gif.php - About 1 hr to fix

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

                          public function deInterlace()
                          {
                              $data = $this->m_data;
                      
                              for ($i = 0; $i < 4; $i++) {
                      Severity: Minor
                      Found in thumbs/phpthumb.gif.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 load has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function load($lpData, &$hdrLen)
                          {
                              $hdrLen = 0;
                      
                              $this->m_lpVer = substr($lpData, 0, 6);
                      Severity: Minor
                      Found in thumbs/phpthumb.gif.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 -2;
                      Severity: Major
                      Found in thumbs/phpthumb.gif.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return $Code;
                        Severity: Major
                        Found in thumbs/phpthumb.gif.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return $this->Stack[$this->sp];
                          Severity: Major
                          Found in thumbs/phpthumb.gif.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    return true;
                            Severity: Major
                            Found in thumbs/phpthumb.gif.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                                  return false;
                              Severity: Major
                              Found in thumbs/phpthumb.gif.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return false;
                                Severity: Major
                                Found in thumbs/phpthumb.gif.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                      return -1;
                                  Severity: Major
                                  Found in thumbs/phpthumb.gif.php - About 30 mins to fix

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

                                    function gif_loadFileToGDimageResource($gifFilename, $bgColor = -1)
                                    {
                                        if ($gif = gif_loadFile($gifFilename)) {
                                            if (!phpthumb_functions::FunctionIsDisabled('set_time_limit')) {
                                                // shouldn't take nearly this long
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.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 gif_getSize has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                    function gif_getSize($gif, &$width, &$height)
                                    {
                                        if (isset($gif) && (@get_class($gif) == 'cgif') && $gif->loaded()) {
                                            $width  = $gif->width();
                                            $height = $gif->height();
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.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 skipExt has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                        public function skipExt(&$data, &$extLen)
                                        {
                                            $extLen = 0;
                                    
                                            $b    = ord($data{0});
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.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 LZWCommand() has 117 lines of code. Current threshold is set to 100. Avoid really long methods.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    The method LZWCommand() has an NPath complexity of 14430. The configured NPath complexity threshold is 200.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    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 getGD_PixelPlotterVersion() has an NPath complexity of 204. The configured NPath complexity threshold is 200.
                                    Open

                                        public function getGD_PixelPlotterVersion()
                                        {
                                            if (!$this->m_bLoaded) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    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 getPng() has an NPath complexity of 800. The configured NPath complexity threshold is 200.
                                    Open

                                        public function getPng($bgColor)
                                        {
                                            $out = '';
                                    
                                            if (!$this->m_bLoaded) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    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 getBmp() has an NPath complexity of 840. The configured NPath complexity threshold is 200.
                                    Open

                                        public function getBmp($bgColor)
                                        {
                                            $out = '';
                                    
                                            if (!$this->m_bLoaded) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

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

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CyclomaticComplexity

                                    Since: 0.1

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

                                    Example

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

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

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

                                        public function getBmp($bgColor)
                                        {
                                            $out = '';
                                    
                                            if (!$this->m_bLoaded) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CyclomaticComplexity

                                    Since: 0.1

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

                                    Example

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

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

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

                                        public function getPng($bgColor)
                                        {
                                            $out = '';
                                    
                                            if (!$this->m_bLoaded) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CyclomaticComplexity

                                    Since: 0.1

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

                                    Example

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

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

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

                                        public function getGD_PixelPlotterVersion()
                                        {
                                            if (!$this->m_bLoaded) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CyclomaticComplexity

                                    Since: 0.1

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

                                    Example

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

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

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

                                                $ThisImageColor[$i] = imagecolorallocate($PlottingIMG, ord($pal{($i * 3) + 0}), ord($pal{($i * 3) + 1}), ord($pal{($i * 3) + 2}));
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    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 '$ThisImageColor' which will lead to PHP notices.
                                    Open

                                                            imagesetpixel($PlottingIMG, $x, $this->m_gfh->m_nHeight - $y - 1, $ThisImageColor[$this->m_gfh->m_nBgColor]);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    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 '$ThisImageColor' which will lead to PHP notices.
                                    Open

                                                            imagesetpixel($PlottingIMG, $x, $this->m_gfh->m_nHeight - $y - 1, $ThisImageColor[ord($data{$nPxl})]);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    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 '$ThisImageColor' which will lead to PHP notices.
                                    Open

                                                        imagesetpixel($PlottingIMG, $x, $this->m_gfh->m_nHeight - $y - 1, $ThisImageColor[$this->m_gfh->m_nBgColor]);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    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

                                    Missing class import via use statement (line '31', column '16').
                                    Open

                                        $gif = new CGIF();
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    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

                                    Remove error control operator '@' on line 148.
                                    Open

                                    function gif_outputAsJpeg($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        // JPEG output that does not require cjpeg added by James Heinrich <info@silisoftware.com> - December 10, 2003
                                        if ((strtoupper(substr(PHP_OS, 0, 3)) != 'WIN') && (file_exists('/usr/local/bin/cjpeg') || `which cjpeg`)) {
                                            if (gif_outputAsBmp($gif, $lpszFileName . '.bmp', $bgColor)) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 149.
                                    Open

                                    function gif_outputAsJpeg($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        // JPEG output that does not require cjpeg added by James Heinrich <info@silisoftware.com> - December 10, 2003
                                        if ((strtoupper(substr(PHP_OS, 0, 3)) != 'WIN') && (file_exists('/usr/local/bin/cjpeg') || `which cjpeg`)) {
                                            if (gif_outputAsBmp($gif, $lpszFileName . '.bmp', $bgColor)) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 160.
                                    Open

                                    function gif_outputAsJpeg($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        // JPEG output that does not require cjpeg added by James Heinrich <info@silisoftware.com> - December 10, 2003
                                        if ((strtoupper(substr(PHP_OS, 0, 3)) != 'WIN') && (file_exists('/usr/local/bin/cjpeg') || `which cjpeg`)) {
                                            if (gif_outputAsBmp($gif, $lpszFileName . '.bmp', $bgColor)) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Missing class import via use statement (line '638', column '39').
                                    Open

                                                $this->m_colorTable = new CGIFCOLORTABLE();
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    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

                                    Remove error control operator '@' on line 125.
                                    Open

                                    function gif_outputAsPng($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        if (!isset($gif) || (@get_class($gif) <> 'cgif') || !$gif->loaded() || ($lpszFileName == '')) {
                                            return false;
                                        }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 96.
                                    Open

                                    function gif_outputAsBmp($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        if (!isset($gif) || (@get_class($gif) <> 'cgif') || !$gif->loaded() || ($lpszFileName == '')) {
                                            return false;
                                        }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 93.
                                    Open

                                    function gif_outputAsBmp($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        if (!isset($gif) || (@get_class($gif) <> 'cgif') || !$gif->loaded() || ($lpszFileName == '')) {
                                            return false;
                                        }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Missing class import via use statement (line '724', column '39').
                                    Open

                                                $this->m_colorTable = new CGIFCOLORTABLE();
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    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

                                    Remove error control operator '@' on line 182.
                                    Open

                                    function gif_getSize($gif, &$width, &$height)
                                    {
                                        if (isset($gif) && (@get_class($gif) == 'cgif') && $gif->loaded()) {
                                            $width  = $gif->width();
                                            $height = $gif->height();
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 126.
                                    Open

                                    function gif_outputAsPng($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        if (!isset($gif) || (@get_class($gif) <> 'cgif') || !$gif->loaded() || ($lpszFileName == '')) {
                                            return false;
                                        }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 122.
                                    Open

                                    function gif_outputAsPng($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        if (!isset($gif) || (@get_class($gif) <> 'cgif') || !$gif->loaded() || ($lpszFileName == '')) {
                                            return false;
                                        }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 98.
                                    Open

                                    function gif_outputAsBmp($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        if (!isset($gif) || (@get_class($gif) <> 'cgif') || !$gif->loaded() || ($lpszFileName == '')) {
                                            return false;
                                        }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 97.
                                    Open

                                    function gif_outputAsBmp($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        if (!isset($gif) || (@get_class($gif) <> 'cgif') || !$gif->loaded() || ($lpszFileName == '')) {
                                            return false;
                                        }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 146.
                                    Open

                                    function gif_outputAsJpeg($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        // JPEG output that does not require cjpeg added by James Heinrich <info@silisoftware.com> - December 10, 2003
                                        if ((strtoupper(substr(PHP_OS, 0, 3)) != 'WIN') && (file_exists('/usr/local/bin/cjpeg') || `which cjpeg`)) {
                                            if (gif_outputAsBmp($gif, $lpszFileName . '.bmp', $bgColor)) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 978.
                                    Open

                                        public function loadFile($lpszFileName, $iIndex)
                                        {
                                            if ($iIndex < 0) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 56.
                                    Open

                                    function gif_loadFileToGDimageResource($gifFilename, $bgColor = -1)
                                    {
                                        if ($gif = gif_loadFile($gifFilename)) {
                                            if (!phpthumb_functions::FunctionIsDisabled('set_time_limit')) {
                                                // shouldn't take nearly this long
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 84.
                                    Open

                                    function gif_outputAsBmp($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        if (!isset($gif) || (@get_class($gif) <> 'cgif') || !$gif->loaded() || ($lpszFileName == '')) {
                                            return false;
                                        }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 127.
                                    Open

                                    function gif_outputAsPng($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        if (!isset($gif) || (@get_class($gif) <> 'cgif') || !$gif->loaded() || ($lpszFileName == '')) {
                                            return false;
                                        }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 981.
                                    Open

                                        public function loadFile($lpszFileName, $iIndex)
                                        {
                                            if ($iIndex < 0) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 113.
                                    Open

                                    function gif_outputAsPng($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        if (!isset($gif) || (@get_class($gif) <> 'cgif') || !$gif->loaded() || ($lpszFileName == '')) {
                                            return false;
                                        }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 1015.
                                    Open

                                        public function getSize($lpszFileName, &$width, &$height)
                                        {
                                            if (!($fh = @fopen($lpszFileName, 'rb'))) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 153.
                                    Open

                                    function gif_outputAsJpeg($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        // JPEG output that does not require cjpeg added by James Heinrich <info@silisoftware.com> - December 10, 2003
                                        if ((strtoupper(substr(PHP_OS, 0, 3)) != 'WIN') && (file_exists('/usr/local/bin/cjpeg') || `which cjpeg`)) {
                                            if (gif_outputAsBmp($gif, $lpszFileName . '.bmp', $bgColor)) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 179.
                                    Open

                                    function gif_getSize($gif, &$width, &$height)
                                    {
                                        if (isset($gif) && (@get_class($gif) == 'cgif') && $gif->loaded()) {
                                            $width  = $gif->width();
                                            $height = $gif->height();
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

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

                                            $myGIF = new CGIF();
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    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

                                    Remove error control operator '@' on line 1012.
                                    Open

                                        public function getSize($lpszFileName, &$width, &$height)
                                        {
                                            if (!($fh = @fopen($lpszFileName, 'rb'))) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 159.
                                    Open

                                    function gif_outputAsJpeg($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        // JPEG output that does not require cjpeg added by James Heinrich <info@silisoftware.com> - December 10, 2003
                                        if ((strtoupper(substr(PHP_OS, 0, 3)) != 'WIN') && (file_exists('/usr/local/bin/cjpeg') || `which cjpeg`)) {
                                            if (gif_outputAsBmp($gif, $lpszFileName . '.bmp', $bgColor)) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

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

                                            $gfh = new CGIFFILEHEADER();
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    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 '959', column '32').
                                    Open

                                            $this->m_img     = new CGIFIMAGE();
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    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

                                    Remove error control operator '@' on line 981.
                                    Open

                                        public function loadFile($lpszFileName, $iIndex)
                                        {
                                            if ($iIndex < 0) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Missing class import via use statement (line '958', column '32').
                                    Open

                                            $this->m_gfh     = new CGIFFILEHEADER();
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    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

                                    Remove error control operator '@' on line 1015.
                                    Open

                                        public function getSize($lpszFileName, &$width, &$height)
                                        {
                                            if (!($fh = @fopen($lpszFileName, 'rb'))) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 1074.
                                    Open

                                        public function getBmp($bgColor)
                                        {
                                            $out = '';
                                    
                                            if (!$this->m_bLoaded) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Missing class import via use statement (line '778', column '28').
                                    Open

                                            $this->m_lzw = new CGIFLZW();
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    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 '777', column '28').
                                    Open

                                            $this->m_gih = new CGIFIMAGEHEADER();
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    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

                                    Remove error control operator '@' on line 1280.
                                    Open

                                        public function getGD_PixelPlotterVersion()
                                        {
                                            if (!$this->m_bLoaded) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 1213.
                                    Open

                                        public function getPng($bgColor)
                                        {
                                            $out = '';
                                    
                                            if (!$this->m_bLoaded) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    Remove error control operator '@' on line 1016.
                                    Open

                                        public function getSize($lpszFileName, &$width, &$height)
                                        {
                                            if (!($fh = @fopen($lpszFileName, 'rb'))) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ErrorControlOperator

                                    Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                    Example

                                    function foo($filePath) {
                                        $file = @fopen($filPath); // hides exceptions
                                        $key = @$array[$notExistingKey]; // assigns null to $key
                                    }

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

                                    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 {
                                                    $this->Done = 1;
                                                }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ElseExpression

                                    Since: 1.4.0

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

                                    Example

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

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

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

                                    function gif_loadFileToGDimageResource($gifFilename, $bgColor = -1)
                                    {
                                        if ($gif = gif_loadFile($gifFilename)) {
                                            if (!phpthumb_functions::FunctionIsDisabled('set_time_limit')) {
                                                // shouldn't take nearly this long
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    IfStatementAssignment

                                    Since: 2.7.0

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

                                    Example

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

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

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

                                    function gif_outputAsPng($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        if (!isset($gif) || (@get_class($gif) <> 'cgif') || !$gif->loaded() || ($lpszFileName == '')) {
                                            return false;
                                        }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    IfStatementAssignment

                                    Since: 2.7.0

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

                                    Example

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

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

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

                                        } else {
                                            return false;
                                        }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ElseExpression

                                    Since: 1.4.0

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

                                    Example

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

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

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

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    IfStatementAssignment

                                    Since: 2.7.0

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

                                    Example

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

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

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

                                    function gif_loadFileToGDimageResource($gifFilename, $bgColor = -1)
                                    {
                                        if ($gif = gif_loadFile($gifFilename)) {
                                            if (!phpthumb_functions::FunctionIsDisabled('set_time_limit')) {
                                                // shouldn't take nearly this long
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    IfStatementAssignment

                                    Since: 2.7.0

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

                                    Example

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

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

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

                                    function gif_outputAsBmp($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        if (!isset($gif) || (@get_class($gif) <> 'cgif') || !$gif->loaded() || ($lpszFileName == '')) {
                                            return false;
                                        }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    IfStatementAssignment

                                    Since: 2.7.0

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

                                    Example

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

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

                                    Avoid using static access to class 'phpthumb_functions' in method 'gif_loadFileToGDimageResource'.
                                    Open

                                            if (!phpthumb_functions::FunctionIsDisabled('set_time_limit')) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    StaticAccess

                                    Since: 1.4.0

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

                                    Example

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

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

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

                                        public function load($data, &$datLen)
                                        {
                                            $datLen = 0;
                                    
                                            while (true) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    IfStatementAssignment

                                    Since: 2.7.0

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

                                    Example

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

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

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

                                        public function loadFile($lpszFileName, $iIndex)
                                        {
                                            if ($iIndex < 0) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    IfStatementAssignment

                                    Since: 2.7.0

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

                                    Example

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

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

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

                                        public function getSize($lpszFileName, &$width, &$height)
                                        {
                                            if (!($fh = @fopen($lpszFileName, 'rb'))) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    IfStatementAssignment

                                    Since: 2.7.0

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

                                    Example

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

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

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

                                    function gif_loadFileToGDimageResource($gifFilename, $bgColor = -1)
                                    {
                                        if ($gif = gif_loadFile($gifFilename)) {
                                            if (!phpthumb_functions::FunctionIsDisabled('set_time_limit')) {
                                                // shouldn't take nearly this long
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    IfStatementAssignment

                                    Since: 2.7.0

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

                                    Example

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

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

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

                                        } else {
                                    
                                            // either Windows, or cjpeg not found in path
                                            if ($img = @imagecreatefromstring($gif->getPng($bgColor))) {
                                                if (@imagejpeg($img, $lpszFileName)) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ElseExpression

                                    Since: 1.4.0

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

                                    Example

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

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

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

                                        public function load($data, &$datLen)
                                        {
                                            $datLen = 0;
                                    
                                            while (true) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    IfStatementAssignment

                                    Since: 2.7.0

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

                                    Example

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

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

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

                                        public function load($data, &$datLen)
                                        {
                                            $datLen = 0;
                                    
                                            while (true) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    IfStatementAssignment

                                    Since: 2.7.0

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

                                    Example

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

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

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

                                    function gif_outputAsJpeg($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        // JPEG output that does not require cjpeg added by James Heinrich <info@silisoftware.com> - December 10, 2003
                                        if ((strtoupper(substr(PHP_OS, 0, 3)) != 'WIN') && (file_exists('/usr/local/bin/cjpeg') || `which cjpeg`)) {
                                            if (gif_outputAsBmp($gif, $lpszFileName . '.bmp', $bgColor)) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    IfStatementAssignment

                                    Since: 2.7.0

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

                                    Example

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

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

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

                                        public function loadFile($lpszFileName, $iIndex)
                                        {
                                            if ($iIndex < 0) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    IfStatementAssignment

                                    Since: 2.7.0

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

                                    Example

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

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

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

                                                            } else {
                                                                $bmp .= chr($bgColor);
                                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ElseExpression

                                    Since: 1.4.0

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

                                    Example

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

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

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

                                                    } else {
                                                        // BACKGROUND
                                                        if ($bgColor == -1) {
                                                            $bmp .= chr($this->m_gfh->m_nBgColor);
                                                        } else {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ElseExpression

                                    Since: 1.4.0

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

                                    Example

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

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

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

                                            } else {
                                                die('No color table available in getGD_PixelPlotterVersion()');
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ElseExpression

                                    Since: 1.4.0

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

                                    Example

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

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

                                    Avoid using static access to class 'phpthumb_functions' in method 'getGD_PixelPlotterVersion'.
                                    Open

                                                if (!phpthumb_functions::FunctionIsDisabled('set_time_limit')) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    StaticAccess

                                    Since: 1.4.0

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

                                    Example

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

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

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

                                                    } else {
                                                        // BACKGROUND
                                                        imagesetpixel($PlottingIMG, $x, $this->m_gfh->m_nHeight - $y - 1, $ThisImageColor[$this->m_gfh->m_nBgColor]);
                                                    }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ElseExpression

                                    Since: 1.4.0

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

                                    Example

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

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

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

                                                        } else {
                                                            $bmp .= $data{$nPxl};
                                                        }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ElseExpression

                                    Since: 1.4.0

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

                                    Example

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

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

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

                                        public function load($data, &$datLen)
                                        {
                                            $datLen = 0;
                                    
                                            while (true) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    IfStatementAssignment

                                    Since: 2.7.0

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

                                    Example

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

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

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

                                        public function loadFile($lpszFileName, $iIndex)
                                        {
                                            if ($iIndex < 0) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    IfStatementAssignment

                                    Since: 2.7.0

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

                                    Example

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

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

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

                                            } else {
                                                $nColors = 0;
                                                $bgColor = -1;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ElseExpression

                                    Since: 1.4.0

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

                                    Example

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

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

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

                                                        } else {
                                                            $bmp .= chr($bgColor);
                                                        }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ElseExpression

                                    Since: 1.4.0

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

                                    Example

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

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

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

                                                    } else {
                                                        // BACKGROUND
                                                        if ($bgColor == -1) {
                                                            $bmp .= chr($this->m_gfh->m_nBgColor);
                                                        } else {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ElseExpression

                                    Since: 1.4.0

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

                                    Example

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

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

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

                                            } else {
                                                $nColors = 0;
                                                $bgColor = -1;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ElseExpression

                                    Since: 1.4.0

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

                                    Example

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

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

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

                                                        } else {
                                                            imagesetpixel($PlottingIMG, $x, $this->m_gfh->m_nHeight - $y - 1, $ThisImageColor[ord($data{$nPxl})]);
                                                        }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ElseExpression

                                    Since: 1.4.0

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

                                    Example

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

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

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

                                        public function getSize($lpszFileName, &$width, &$height)
                                        {
                                            if (!($fh = @fopen($lpszFileName, 'rb'))) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    IfStatementAssignment

                                    Since: 2.7.0

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

                                    Example

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

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

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

                                                        } else {
                                                            $bmp .= chr($bgColor);
                                                        }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ElseExpression

                                    Since: 1.4.0

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

                                    Example

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

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

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

                                            if (!$gfh->load($data, $len = 0)) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    UnusedLocalVariable

                                    Since: 0.2

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

                                    Example

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

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

                                    The method getGD_PixelPlotterVersion() contains an exit expression.
                                    Open

                                                die('No color table available in getGD_PixelPlotterVersion()');
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ExitExpression

                                    Since: 0.2

                                    An exit-expression within regular code is untestable and therefore it should be avoided. Consider to move the exit-expression into some kind of startup script where an error/exception code is returned to the calling environment.

                                    Example

                                    class Foo {
                                        public function bar($param)  {
                                            if ($param === 42) {
                                                exit(23);
                                            }
                                        }
                                    }

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

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

                                    function gif_outputAsBmp($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        if (!isset($gif) || (@get_class($gif) <> 'cgif') || !$gif->loaded() || ($lpszFileName == '')) {
                                            return false;
                                        }
                                    Severity: Major
                                    Found in thumbs/phpthumb.gif.php and 1 other location - About 5 hrs to fix
                                    thumbs/phpthumb.gif.php on lines 111..130

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

                                    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

                                    function gif_outputAsPng($gif, $lpszFileName, $bgColor = -1)
                                    {
                                        if (!isset($gif) || (@get_class($gif) <> 'cgif') || !$gif->loaded() || ($lpszFileName == '')) {
                                            return false;
                                        }
                                    Severity: Major
                                    Found in thumbs/phpthumb.gif.php and 1 other location - About 5 hrs to fix
                                    thumbs/phpthumb.gif.php on lines 82..101

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

                                    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

                                            if ($this->m_img->m_gih->m_bLocalClr) {
                                                $nColors = $this->m_img->m_gih->m_nTableSize;
                                                $rgbq    = $this->m_img->m_gih->m_colorTable->toRGBQuad();
                                                if ($bgColor != -1) {
                                                    $bgColor = $this->m_img->m_gih->m_colorTable->colorIndex($bgColor);
                                    Severity: Major
                                    Found in thumbs/phpthumb.gif.php and 1 other location - About 3 hrs to fix
                                    thumbs/phpthumb.gif.php on lines 1147..1162

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

                                    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

                                            if ($this->m_img->m_gih->m_bLocalClr) {
                                                $nColors = $this->m_img->m_gih->m_nTableSize;
                                                $pal     = $this->m_img->m_gih->m_colorTable->toString();
                                                if ($bgColor != -1) {
                                                    $bgColor = $this->m_img->m_gih->m_colorTable->colorIndex($bgColor);
                                    Severity: Major
                                    Found in thumbs/phpthumb.gif.php and 1 other location - About 3 hrs to fix
                                    thumbs/phpthumb.gif.php on lines 1044..1059

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

                                    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

                                    Each class must be in a namespace of at least one level (a top-level vendor name)
                                    Open

                                    class CGIFIMAGEHEADER
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Each class must be in a namespace of at least one level (a top-level vendor name)
                                    Open

                                    class CGIFFILEHEADER
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Each class must be in a namespace of at least one level (a top-level vendor name)
                                    Open

                                    class CGIFIMAGE
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Each class must be in a namespace of at least one level (a top-level vendor name)
                                    Open

                                    class CGIFCOLORTABLE
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Each class must be in a namespace of at least one level (a top-level vendor name)
                                    Open

                                    class CGIF
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Each class must be in a namespace of at least one level (a top-level vendor name)
                                    Open

                                    class CGIFLZW
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    The property $m_nColors is not named in camelCase.
                                    Open

                                    class CGIFCOLORTABLE
                                    {
                                        public $m_nColors;
                                        public $m_arColors;
                                    
                                    
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

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

                                            $r1  = ($rgb & 0x0000FF);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

                                    The property $m_nHeight is not named in camelCase.
                                    Open

                                    class CGIFFILEHEADER
                                    {
                                        public $m_lpVer;
                                        public $m_nWidth;
                                        public $m_nHeight;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

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

                                        if (!($fh = @fopen($lpszFileName, 'wb'))) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

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

                                                $b2 = ($this->m_arColors[$i] & 0x00FF0000) >> 16;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

                                    The property $m_colorTable is not named in camelCase.
                                    Open

                                    class CGIFFILEHEADER
                                    {
                                        public $m_lpVer;
                                        public $m_nWidth;
                                        public $m_nHeight;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_nTop is not named in camelCase.
                                    Open

                                    class CGIFIMAGEHEADER
                                    {
                                        public $m_nLeft;
                                        public $m_nTop;
                                        public $m_nWidth;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_gih is not named in camelCase.
                                    Open

                                    class CGIFIMAGE
                                    {
                                        public $m_disp;
                                        public $m_bUser;
                                        public $m_bTrans;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_bGlobalClr is not named in camelCase.
                                    Open

                                    class CGIFFILEHEADER
                                    {
                                        public $m_lpVer;
                                        public $m_nWidth;
                                        public $m_nHeight;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_bLocalClr is not named in camelCase.
                                    Open

                                    class CGIFIMAGEHEADER
                                    {
                                        public $m_nLeft;
                                        public $m_nTop;
                                        public $m_nWidth;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

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

                                        $fd = $gif->getPng($bgColor);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

                                    The property $MAX_LZW_BITS is not named in camelCase.
                                    Open

                                    class CGIFLZW
                                    {
                                        public $MAX_LZW_BITS;
                                        public $Fresh;
                                        public $CodeSize;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

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

                                            $b                   = ord(substr($lpData, 10, 1));
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

                                    The property $m_nTrans is not named in camelCase.
                                    Open

                                    class CGIFIMAGE
                                    {
                                        public $m_disp;
                                        public $m_bUser;
                                        public $m_bTrans;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_bUser is not named in camelCase.
                                    Open

                                    class CGIFIMAGE
                                    {
                                        public $m_disp;
                                        public $m_bUser;
                                        public $m_bTrans;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

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

                                        if (!($fh = @fopen($lpszFileName, 'wb'))) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

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

                                        public $sp;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

                                    The property $m_nWidth is not named in camelCase.
                                    Open

                                    class CGIFFILEHEADER
                                    {
                                        public $m_lpVer;
                                        public $m_nWidth;
                                        public $m_nHeight;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_data is not named in camelCase.
                                    Open

                                    class CGIFIMAGE
                                    {
                                        public $m_disp;
                                        public $m_bUser;
                                        public $m_bTrans;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_lzw is not named in camelCase.
                                    Open

                                    class CGIFIMAGE
                                    {
                                        public $m_disp;
                                        public $m_bUser;
                                        public $m_bTrans;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

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

                                        $fd = $gif->getBmp($bgColor);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

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

                                                $r2 = ($this->m_arColors[$i] & 0x000000FF);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

                                    The property $m_nBgColor is not named in camelCase.
                                    Open

                                    class CGIFFILEHEADER
                                    {
                                        public $m_lpVer;
                                        public $m_nWidth;
                                        public $m_nHeight;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_nHeight is not named in camelCase.
                                    Open

                                    class CGIFIMAGEHEADER
                                    {
                                        public $m_nLeft;
                                        public $m_nTop;
                                        public $m_nWidth;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_colorTable is not named in camelCase.
                                    Open

                                    class CGIFIMAGEHEADER
                                    {
                                        public $m_nLeft;
                                        public $m_nTop;
                                        public $m_nWidth;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_bInterlace is not named in camelCase.
                                    Open

                                    class CGIFIMAGEHEADER
                                    {
                                        public $m_nLeft;
                                        public $m_nTop;
                                        public $m_nWidth;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_lpComm is not named in camelCase.
                                    Open

                                    class CGIFIMAGE
                                    {
                                        public $m_disp;
                                        public $m_bUser;
                                        public $m_bTrans;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_arColors is not named in camelCase.
                                    Open

                                    class CGIFCOLORTABLE
                                    {
                                        public $m_nColors;
                                        public $m_arColors;
                                    
                                    
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

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

                                                $g2 = ($this->m_arColors[$i] & 0x0000FF00) >> 8;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

                                    The property $m_bSorted is not named in camelCase.
                                    Open

                                    class CGIFIMAGEHEADER
                                    {
                                        public $m_nLeft;
                                        public $m_nTop;
                                        public $m_nWidth;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_nColorRes is not named in camelCase.
                                    Open

                                    class CGIFFILEHEADER
                                    {
                                        public $m_lpVer;
                                        public $m_nWidth;
                                        public $m_nHeight;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_bTrans is not named in camelCase.
                                    Open

                                    class CGIFIMAGE
                                    {
                                        public $m_disp;
                                        public $m_bUser;
                                        public $m_bTrans;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

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

                                            $b1  = ($rgb & 0xFF0000) >> 16;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

                                    The property $m_bSorted is not named in camelCase.
                                    Open

                                    class CGIFFILEHEADER
                                    {
                                        public $m_lpVer;
                                        public $m_nWidth;
                                        public $m_nHeight;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_nTableSize is not named in camelCase.
                                    Open

                                    class CGIFIMAGEHEADER
                                    {
                                        public $m_nLeft;
                                        public $m_nTop;
                                        public $m_nWidth;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

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

                                            $b                  = ord($lpData{8});
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

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

                                                        $s = 8;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

                                    The property $m_nTableSize is not named in camelCase.
                                    Open

                                    class CGIFFILEHEADER
                                    {
                                        public $m_lpVer;
                                        public $m_nWidth;
                                        public $m_nHeight;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_bLoaded is not named in camelCase.
                                    Open

                                    class CGIF
                                    {
                                        public $m_gfh;
                                        public $m_lpData;
                                        public $m_img;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_nPixelRatio is not named in camelCase.
                                    Open

                                    class CGIFFILEHEADER
                                    {
                                        public $m_lpVer;
                                        public $m_nWidth;
                                        public $m_nHeight;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_nLeft is not named in camelCase.
                                    Open

                                    class CGIFIMAGEHEADER
                                    {
                                        public $m_nLeft;
                                        public $m_nTop;
                                        public $m_nWidth;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_nDelay is not named in camelCase.
                                    Open

                                    class CGIFIMAGE
                                    {
                                        public $m_disp;
                                        public $m_bUser;
                                        public $m_bTrans;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

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

                                            $g1  = ($rgb & 0x00FF00) >> 8;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

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

                                                $d  = abs($r2 - $r1) + abs($g2 - $g1) + abs($b2 - $b1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

                                    The property $m_lpVer is not named in camelCase.
                                    Open

                                    class CGIFFILEHEADER
                                    {
                                        public $m_lpVer;
                                        public $m_nWidth;
                                        public $m_nHeight;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_nWidth is not named in camelCase.
                                    Open

                                    class CGIFIMAGEHEADER
                                    {
                                        public $m_nLeft;
                                        public $m_nTop;
                                        public $m_nWidth;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_disp is not named in camelCase.
                                    Open

                                    class CGIFIMAGE
                                    {
                                        public $m_disp;
                                        public $m_bUser;
                                        public $m_bTrans;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

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

                                                        $y = 0;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

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

                                                $b    = ord($data{0});
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

                                    The property $m_lpData is not named in camelCase.
                                    Open

                                    class CGIF
                                    {
                                        public $m_gfh;
                                        public $m_lpData;
                                        public $m_img;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCasePropertyName

                                    Since: 0.2

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

                                    Example

                                    class ClassName {
                                        protected $property_name;
                                    }

                                    Source

                                    The property $m_img is not named in camelCase.
                                    Open

                                    class CGIF
                                    {
                                        public $m_gfh;
                                        public $m_lpData;
                                        public $m_img;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

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

                                            if (!($fh = @fopen($lpszFileName, 'rb'))) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

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

                                            if (!($fh = @fopen($lpszFileName, 'rb'))) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

                                    The property $m_gfh is not named in camelCase.
                                    Open

                                    class CGIF
                                    {
                                        public $m_gfh;
                                        public $m_lpData;
                                        public $m_img;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

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

                                            $b    = ord($data{0});
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    ShortVariable

                                    Since: 0.2

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

                                    Example

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

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

                                    Each class must be in a file by itself
                                    Open

                                    class CGIFCOLORTABLE
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Each class must be in a file by itself
                                    Open

                                    class CGIFIMAGEHEADER
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Each class must be in a file by itself
                                    Open

                                    class CGIF
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Each class must be in a file by itself
                                    Open

                                    class CGIFFILEHEADER
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Each class must be in a file by itself
                                    Open

                                    class CGIFIMAGE
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Blank line found at start of control structure
                                    Open

                                        } else {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Blank line found at start of control structure
                                    Open

                                            if ($img = @imagecreatefromstring($PNGdata)) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Blank line found at start of control structure
                                    Open

                                            } elseif ($img = $gif->getGD_PixelPlotterVersion()) {
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Method name "CGIFLZW::GetCode" is not in camel caps format
                                    Open

                                        public function GetCode(&$data, $bInit)
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Method name "CGIF::getGD_PixelPlotterVersion" is not in camel caps format
                                    Open

                                        public function getGD_PixelPlotterVersion()
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    The 'getSize()' method which returns a boolean should be named 'is...()' or 'has...()'
                                    Open

                                        public function getSize($lpszFileName, &$width, &$height)
                                        {
                                            if (!($fh = @fopen($lpszFileName, 'rb'))) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    BooleanGetMethodName

                                    Since: 0.2

                                    Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

                                    Example

                                    class Foo {
                                        /**
                                         * @return boolean
                                         */
                                        public function getFoo() {} // bad
                                        /**
                                         * @return bool
                                         */
                                        public function isFoo(); // ok
                                        /**
                                         * @return boolean
                                         */
                                        public function getFoo($bar); // ok, unless checkParameterizedMethods=true
                                    }

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

                                    Line exceeds 120 characters; contains 126 characters
                                    Open

                                                            imagesetpixel($PlottingIMG, $x, $this->m_gfh->m_nHeight - $y - 1, $ThisImageColor[ord($data{$nPxl})]);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Line exceeds 120 characters; contains 128 characters
                                    Open

                                                    $data = substr($data, 0, $y * $this->m_gih->m_nWidth) . $lne . substr($data, ($y + 1) * $this->m_gih->m_nWidth);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Line exceeds 120 characters; contains 124 characters
                                    Open

                                            return chr($val & 0xFF) . chr(($val & 0xFF00) >> 8) . chr(($val & 0xFF0000) >> 16) . chr(($val & 0xFF000000) >> 24);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Line exceeds 120 characters; contains 142 characters
                                    Open

                                                $ThisImageColor[$i] = imagecolorallocate($PlottingIMG, ord($pal{($i * 3) + 0}), ord($pal{($i * 3) + 1}), ord($pal{($i * 3) + 2}));
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Line exceeds 120 characters; contains 133 characters
                                    Open

                                                            imagesetpixel($PlottingIMG, $x, $this->m_gfh->m_nHeight - $y - 1, $ThisImageColor[$this->m_gfh->m_nBgColor]);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Line exceeds 120 characters; contains 124 characters
                                    Open

                                            return chr(($val & 0xFF000000) >> 24) . chr(($val & 0xFF0000) >> 16) . chr(($val & 0xFF00) >> 8) . chr($val & 0xFF);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    Line exceeds 120 characters; contains 129 characters
                                    Open

                                                        imagesetpixel($PlottingIMG, $x, $this->m_gfh->m_nHeight - $y - 1, $ThisImageColor[$this->m_gfh->m_nBgColor]);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpcodesniffer

                                    The variable $Code is not named in camelCase.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Count is not named in camelCase.
                                    Open

                                        public function GetCode(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->CurBit   = 0;
                                                $this->LastBit  = 0;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Code is not named in camelCase.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Count is not named in camelCase.
                                    Open

                                        public function GetCode(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->CurBit   = 0;
                                                $this->LastBit  = 0;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Count is not named in camelCase.
                                    Open

                                        public function GetCode(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->CurBit   = 0;
                                                $this->LastBit  = 0;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Code is not named in camelCase.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Code is not named in camelCase.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Code is not named in camelCase.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Count is not named in camelCase.
                                    Open

                                        public function GetCode(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->CurBit   = 0;
                                                $this->LastBit  = 0;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Count is not named in camelCase.
                                    Open

                                        public function GetCode(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->CurBit   = 0;
                                                $this->LastBit  = 0;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Code is not named in camelCase.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $PNGdata is not named in camelCase.
                                    Open

                                    function gif_loadFileToGDimageResource($gifFilename, $bgColor = -1)
                                    {
                                        if ($gif = gif_loadFile($gifFilename)) {
                                            if (!phpthumb_functions::FunctionIsDisabled('set_time_limit')) {
                                                // shouldn't take nearly this long
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Code is not named in camelCase.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $InCode is not named in camelCase.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Code is not named in camelCase.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Code is not named in camelCase.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Code is not named in camelCase.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $ThisImageColor is not named in camelCase.
                                    Open

                                        public function getGD_PixelPlotterVersion()
                                        {
                                            if (!$this->m_bLoaded) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $InCode is not named in camelCase.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Code is not named in camelCase.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $PlottingIMG is not named in camelCase.
                                    Open

                                        public function getGD_PixelPlotterVersion()
                                        {
                                            if (!$this->m_bLoaded) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $PlottingIMG is not named in camelCase.
                                    Open

                                        public function getGD_PixelPlotterVersion()
                                        {
                                            if (!$this->m_bLoaded) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Code is not named in camelCase.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Code is not named in camelCase.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Count is not named in camelCase.
                                    Open

                                        public function GetCode(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->CurBit   = 0;
                                                $this->LastBit  = 0;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $PlottingIMG is not named in camelCase.
                                    Open

                                        public function getGD_PixelPlotterVersion()
                                        {
                                            if (!$this->m_bLoaded) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $ThisImageColor is not named in camelCase.
                                    Open

                                        public function getGD_PixelPlotterVersion()
                                        {
                                            if (!$this->m_bLoaded) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Code is not named in camelCase.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Code is not named in camelCase.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Code is not named in camelCase.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $ThisImageColor is not named in camelCase.
                                    Open

                                        public function getGD_PixelPlotterVersion()
                                        {
                                            if (!$this->m_bLoaded) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $PlottingIMG is not named in camelCase.
                                    Open

                                        public function getGD_PixelPlotterVersion()
                                        {
                                            if (!$this->m_bLoaded) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $PNGdata is not named in camelCase.
                                    Open

                                    function gif_loadFileToGDimageResource($gifFilename, $bgColor = -1)
                                    {
                                        if ($gif = gif_loadFile($gifFilename)) {
                                            if (!phpthumb_functions::FunctionIsDisabled('set_time_limit')) {
                                                // shouldn't take nearly this long
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $Code is not named in camelCase.
                                    Open

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $PlottingIMG is not named in camelCase.
                                    Open

                                        public function getGD_PixelPlotterVersion()
                                        {
                                            if (!$this->m_bLoaded) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $ThisImageColor is not named in camelCase.
                                    Open

                                        public function getGD_PixelPlotterVersion()
                                        {
                                            if (!$this->m_bLoaded) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $PlottingIMG is not named in camelCase.
                                    Open

                                        public function getGD_PixelPlotterVersion()
                                        {
                                            if (!$this->m_bLoaded) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $NumColorsInPal is not named in camelCase.
                                    Open

                                        public function getGD_PixelPlotterVersion()
                                        {
                                            if (!$this->m_bLoaded) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The variable $NumColorsInPal is not named in camelCase.
                                    Open

                                        public function getGD_PixelPlotterVersion()
                                        {
                                            if (!$this->m_bLoaded) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    CamelCaseVariableName

                                    Since: 0.2

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

                                    Example

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

                                    Source

                                    The method GetCode is not named in camelCase.
                                    Open

                                        public function GetCode(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->CurBit   = 0;
                                                $this->LastBit  = 0;
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

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

                                        public function LZWCommand(&$data, $bInit)
                                        {
                                            if ($bInit) {
                                                $this->SetCodeSize = ord($data{0});
                                                $data              = substr($data, 1);
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

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

                                        public function getGD_PixelPlotterVersion()
                                        {
                                            if (!$this->m_bLoaded) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in thumbs/phpthumb.gif.php by phpmd

                                    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