XoopsModules25x/apcal

View on GitHub
thumbs/phpthumb.functions.php

Summary

Maintainability
F
1 wk
Test Coverage

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

<?php
//////////////////////////////////////////////////////////////
//   phpThumb() by James Heinrich <info@silisoftware.com>   //
//        available at http://phpthumb.sourceforge.net      //
//         and/or https://github.com/JamesHeinrich/phpThumb //
Severity: Major
Found in thumbs/phpthumb.functions.php - About 2 days to fix

    Function gd_info has a Cognitive Complexity of 62 (exceeds 5 allowed). Consider refactoring.
    Open

        function gd_info()
        {
            static $gd_info = array();
            if (empty($gd_info)) {
                // based on code by johnschaefer at gmx dot de
    Severity: Minor
    Found in thumbs/phpthumb.functions.php - About 1 day 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

    phpthumb_functions has 44 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class phpthumb_functions
    {
    
        /**
         * @param $functionname
    Severity: Minor
    Found in thumbs/phpthumb.functions.php - About 6 hrs to fix

      Function SafeURLread has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
      Open

          public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
          {
              $error = '';
      
              $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
      Severity: Minor
      Found in thumbs/phpthumb.functions.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

      Function URLreadFsock has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
      Open

          public static function URLreadFsock($host, $file, &$errstr, $successonly = true, $port = 80, $timeout = 10)
          {
              if (!function_exists('fsockopen') || phpthumb_functions::FunctionIsDisabled('fsockopen')) {
                  $errstr = 'fsockopen() unavailable';
      
      
      Severity: Minor
      Found in thumbs/phpthumb.functions.php - About 3 hrs to fix

      Cognitive Complexity

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

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

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

      Further reading

      The class phpthumb_functions has 41 public methods. Consider refactoring phpthumb_functions to keep number of public methods under 10.
      Open

      class phpthumb_functions
      {
      
          /**
           * @param $functionname
      Severity: Minor
      Found in thumbs/phpthumb.functions.php by phpmd

      TooManyPublicMethods

      Since: 0.1

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

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

      Example

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

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

      class phpthumb_functions
      {
      
          /**
           * @param $functionname
      Severity: Minor
      Found in thumbs/phpthumb.functions.php by phpmd

      TooManyMethods

      Since: 0.1

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

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

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

      Example

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

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

      class phpthumb_functions
      {
      
          /**
           * @param $functionname
      Severity: Minor
      Found in thumbs/phpthumb.functions.php by phpmd

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

          public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
          {
              $error = '';
      
              $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
      Severity: Major
      Found in thumbs/phpthumb.functions.php - About 2 hrs to fix

        Function EnsureDirectoryExists has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
        Open

            public static function EnsureDirectoryExists($dirname)
            {
                $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
        Severity: Minor
        Found in thumbs/phpthumb.functions.php - About 2 hrs to fix

        Cognitive Complexity

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

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

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

        Further reading

        Method gd_info has 58 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function gd_info()
            {
                static $gd_info = array();
                if (empty($gd_info)) {
                    // based on code by johnschaefer at gmx dot de
        Severity: Major
        Found in thumbs/phpthumb.functions.php - About 2 hrs to fix

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

              public static function version_compare_replacement_sub($version1, $version2, $operator = '')
              {
                  // If you specify the third optional operator argument, you can test for a particular relationship.
                  // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                  // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
          Severity: Minor
          Found in thumbs/phpthumb.functions.php - About 1 hr to fix

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

                public static function GetAllFilesInSubfolders($dirname)
                {
                    $AllFiles = array();
                    $dirname  = rtrim(realpath($dirname), '/\\');
                    if ($dirhandle = @opendir($dirname)) {
            Severity: Minor
            Found in thumbs/phpthumb.functions.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 URLreadFsock has 45 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public static function URLreadFsock($host, $file, &$errstr, $successonly = true, $port = 80, $timeout = 10)
                {
                    if (!function_exists('fsockopen') || phpthumb_functions::FunctionIsDisabled('fsockopen')) {
                        $errstr = 'fsockopen() unavailable';
            
            
            Severity: Minor
            Found in thumbs/phpthumb.functions.php - About 1 hr to fix

              Method SafeExec has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public static function SafeExec($command)
                  {
                      static $AllowedExecFunctions = array();
                      if (empty($AllowedExecFunctions)) {
                          $AllowedExecFunctions = array('shell_exec' => true, 'passthru' => true, 'system' => true, 'exec' => true);
              Severity: Minor
              Found in thumbs/phpthumb.functions.php - About 1 hr to fix

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

                    public static function ImageCopyResampleBicubic(
                        $dst_img,
                        $src_img,
                        $dst_x,
                        $dst_y,
                Severity: Minor
                Found in thumbs/phpthumb.functions.php - About 1 hr to fix

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

                      public static function CleanUpURLencoding($url, $queryseperator = '&')
                      {
                          if (!preg_match('#^http#i', $url)) {
                              return $url;
                          }
                  Severity: Minor
                  Found in thumbs/phpthumb.functions.php - About 1 hr to fix

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

                        public static function ApacheLookupURIarray($filename)
                        {
                            // apache_lookup_uri() only works when PHP is installed as an Apache module.
                            if (php_sapi_name() == 'apache') {
                                //$property_exists_exists = function_exists('property_exists');
                    Severity: Minor
                    Found in thumbs/phpthumb.functions.php - About 1 hr to fix

                      Method ImageCopyResampleBicubic has 10 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                              $dst_img,
                              $src_img,
                              $dst_x,
                              $dst_y,
                              $src_x,
                      Severity: Major
                      Found in thumbs/phpthumb.functions.php - About 1 hr to fix

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

                            public static function SafeExec($command)
                            {
                                static $AllowedExecFunctions = array();
                                if (empty($AllowedExecFunctions)) {
                                    $AllowedExecFunctions = array('shell_exec' => true, 'passthru' => true, 'system' => true, 'exec' => true);
                        Severity: Minor
                        Found in thumbs/phpthumb.functions.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 EnsureDirectoryExists has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public static function EnsureDirectoryExists($dirname)
                            {
                                $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                        Severity: Minor
                        Found in thumbs/phpthumb.functions.php - About 1 hr to fix

                          Method ImageCopyRespectAlpha has 9 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                                  &$dst_im,
                                  &$src_im,
                                  $dst_x,
                                  $dst_y,
                                  $src_x,
                          Severity: Major
                          Found in thumbs/phpthumb.functions.php - About 1 hr to fix

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

                                public static function ImageTypeToMIMEtype($imagetype)
                                {
                                    if (function_exists('image_type_to_mime_type') && ($imagetype >= 1) && ($imagetype <= 16)) {
                                        // PHP v4.3.0+
                                        return image_type_to_mime_type($imagetype);
                            Severity: Minor
                            Found in thumbs/phpthumb.functions.php - About 1 hr to fix

                              Function version_compare_replacement_sub has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')
                                  {
                                      // If you specify the third optional operator argument, you can test for a particular relationship.
                                      // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
                              Severity: Minor
                              Found in thumbs/phpthumb.functions.php - About 1 hr to fix

                              Cognitive Complexity

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

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

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

                              Further reading

                              Function exif_info has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  public static function exif_info()
                                  {
                                      static $exif_info = array();
                                      if (empty($exif_info)) {
                                          // based on code by johnschaefer at gmx dot de
                              Severity: Minor
                              Found in thumbs/phpthumb.functions.php - About 1 hr to fix

                              Cognitive Complexity

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

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

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

                              Further reading

                              Function CleanUpURLencoding has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                  {
                                      if (!preg_match('#^http#i', $url)) {
                                          return $url;
                                      }
                              Severity: Minor
                              Found in thumbs/phpthumb.functions.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 GetAllFilesInSubfolders has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public static function GetAllFilesInSubfolders($dirname)
                                  {
                                      $AllFiles = array();
                                      $dirname  = rtrim(realpath($dirname), '/\\');
                                      if ($dirhandle = @opendir($dirname)) {
                              Severity: Minor
                              Found in thumbs/phpthumb.functions.php - About 1 hr to fix

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

                                    public static function filesize_remote($remotefile, $timeout = 10)
                                    {
                                        $size = false;
                                        $url  = phpthumb_functions::ParseURLbetter($remotefile);
                                        if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                Severity: Minor
                                Found in thumbs/phpthumb.functions.php - About 55 mins to fix

                                Cognitive Complexity

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

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

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

                                Further reading

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

                                    public static function filedate_remote($remotefile, $timeout = 10)
                                    {
                                        $date = false;
                                        $url  = phpthumb_functions::ParseURLbetter($remotefile);
                                        if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                Severity: Minor
                                Found in thumbs/phpthumb.functions.php - About 55 mins to fix

                                Cognitive Complexity

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

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

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

                                Further reading

                                Avoid deeply nested control flow statements.
                                Open

                                                    if ($imagetypes & IMG_JPG) {
                                                        $gd_info['JPG Support'] = true;
                                                    }
                                Severity: Major
                                Found in thumbs/phpthumb.functions.php - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                      if ($imagetypes & IMG_GIF) {
                                                          $gd_info['GIF Create Support'] = true;
                                                      }
                                  Severity: Major
                                  Found in thumbs/phpthumb.functions.php - About 45 mins to fix

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

                                            $width,
                                            $height,
                                            $maxwidth = null,
                                            $maxheight = null,
                                            $allow_enlarge = true,
                                    Severity: Minor
                                    Found in thumbs/phpthumb.functions.php - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                          if ($imagetypes & IMG_PNG) {
                                                              $gd_info['PNG Support'] = true;
                                                          }
                                      Severity: Major
                                      Found in thumbs/phpthumb.functions.php - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                            if ($imagetypes & IMG_WBMP) {
                                                                $gd_info['WBMP Support'] = true;
                                                            }
                                        Severity: Major
                                        Found in thumbs/phpthumb.functions.php - About 45 mins to fix

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

                                              public static function URLreadFsock($host, $file, &$errstr, $successonly = true, $port = 80, $timeout = 10)
                                          Severity: Minor
                                          Found in thumbs/phpthumb.functions.php - About 45 mins to fix

                                            Avoid deeply nested control flow statements.
                                            Open

                                                                    switch ($errno) {
                                                                        case 200:
                                                                            // great, continue
                                                                            break;
                                            
                                            
                                            Severity: Major
                                            Found in thumbs/phpthumb.functions.php - About 45 mins to fix

                                              Avoid deeply nested control flow statements.
                                              Open

                                                                  if ($tempfilename = phpthumb::phpThumb_tempnam()) {
                                                                      if ($fp_tempfile = @fopen($tempfilename, 'wb')) {
                                                                          fwrite($fp_tempfile, base64_decode('R0lGODlhAQABAIAAAH//AP///ywAAAAAAQABAAACAUQAOw==')); // very simple 1px GIF file base64-encoded as string
                                                                          fclose($fp_tempfile);
                                              
                                              
                                              Severity: Major
                                              Found in thumbs/phpthumb.functions.php - About 45 mins to fix

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

                                                    public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                                                Severity: Minor
                                                Found in thumbs/phpthumb.functions.php - About 35 mins to fix

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

                                                      public static function FunctionIsDisabled($function)
                                                      {
                                                          static $DisabledFunctions = null;
                                                          if (is_null($DisabledFunctions)) {
                                                              $disable_functions_local  = explode(',', strtolower(@ini_get('disable_functions')));
                                                  Severity: Minor
                                                  Found in thumbs/phpthumb.functions.php - About 35 mins to fix

                                                  Cognitive Complexity

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

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

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

                                                  Further reading

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

                                                      public static function ImageCopyResampleBicubic(
                                                          $dst_img,
                                                          $src_img,
                                                          $dst_x,
                                                          $dst_y,
                                                  Severity: Minor
                                                  Found in thumbs/phpthumb.functions.php - About 35 mins to fix

                                                  Cognitive Complexity

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

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

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

                                                  Further reading

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

                                                      public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                      {
                                                          $old_aspect_ratio = $old_width / $old_height;
                                                          if (($new_width === false) && ($new_height === false)) {
                                                              return false;
                                                  Severity: Minor
                                                  Found in thumbs/phpthumb.functions.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 (int)($version1 != $version2);
                                                  Severity: Major
                                                  Found in thumbs/phpthumb.functions.php - About 30 mins to fix

                                                    Avoid too many return statements within this method.
                                                    Open

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

                                                      Avoid too many return statements within this method.
                                                      Open

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

                                                        Avoid too many return statements within this method.
                                                        Open

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

                                                          Avoid too many return statements within this method.
                                                          Open

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

                                                            Avoid too many return statements within this method.
                                                            Open

                                                                            return (int)($version1 == $version2);
                                                            Severity: Major
                                                            Found in thumbs/phpthumb.functions.php - About 30 mins to fix

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

                                                                  public static function ApacheLookupURIarray($filename)
                                                                  {
                                                                      // apache_lookup_uri() only works when PHP is installed as an Apache module.
                                                                      if (php_sapi_name() == 'apache') {
                                                                          //$property_exists_exists = function_exists('property_exists');
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php - About 25 mins to fix

                                                              Cognitive Complexity

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

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

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

                                                              Further reading

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

                                                              class phpthumb_functions
                                                              {
                                                              
                                                                  /**
                                                                   * @param $functionname
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              The method version_compare_replacement_sub() has an NPath complexity of 336. The configured NPath complexity threshold is 200.
                                                              Open

                                                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')
                                                                  {
                                                                      // If you specify the third optional operator argument, you can test for a particular relationship.
                                                                      // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                                                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 ImageCopyResampleBicubic has 10 parameters. Consider reducing the number of parameters to less than 10.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              The function gd_info() has an NPath complexity of 1365. The configured NPath complexity threshold is 200.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 CleanUpURLencoding() has an NPath complexity of 5184. The configured NPath complexity threshold is 200.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 SafeURLread() has an NPath complexity of 1248. The configured NPath complexity threshold is 200.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 version_compare_replacement_sub() has a Cyclomatic Complexity of 20. The configured cyclomatic complexity threshold is 10.
                                                              Open

                                                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')
                                                                  {
                                                                      // If you specify the third optional operator argument, you can test for a particular relationship.
                                                                      // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                                                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 URLreadFsock() has a Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10.
                                                              Open

                                                                  public static function URLreadFsock($host, $file, &$errstr, $successonly = true, $port = 80, $timeout = 10)
                                                                  {
                                                                      if (!function_exists('fsockopen') || phpthumb_functions::FunctionIsDisabled('fsockopen')) {
                                                                          $errstr = 'fsockopen() unavailable';
                                                              
                                                              
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 CleanUpURLencoding() has a Cyclomatic Complexity of 15. The configured cyclomatic complexity threshold is 10.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 function gd_info() has a Cyclomatic Complexity of 18. The configured cyclomatic complexity threshold is 10.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 EnsureDirectoryExists() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 SafeURLread() has a Cyclomatic Complexity of 16. The configured cyclomatic complexity threshold is 10.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '$alreadyLookedAtURLs' which will lead to PHP notices.
                                                              Open

                                                                      $alreadyLookedAtURLs[trim($url)] = true;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '$alreadyLookedAtURLs' which will lead to PHP notices.
                                                              Open

                                                                                  $alreadyLookedAtURLs[$matches[1]] = true;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '$errstr' which will lead to PHP notices.
                                                              Open

                                                                          $rawData  = phpthumb_functions::URLreadFsock(@$parsed_url['host'], @$parsed_url['path'] . '?' . @$parsed_url['query'], $errstr, true, (@$parsed_url['port'] ?: 80), $timeout);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '$errstr' which will lead to PHP notices.
                                                              Open

                                                                          $error .= 'Error opening "' . $url . '":' . "\n\n" . $errstr;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '$errstr' which will lead to PHP notices.
                                                              Open

                                                                          $error .= 'Error opening "' . $url . '":' . "\n\n" . $errstr;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '$alreadyLookedAtURLs' which will lead to PHP notices.
                                                              Open

                                                                              if (!@$alreadyLookedAtURLs[$matches[1]]) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '$strtr_preg_quote' which will lead to PHP notices.
                                                              Open

                                                                      return strtr($string, $strtr_preg_quote);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '$strtr_preg_quote' which will lead to PHP notices.
                                                              Open

                                                                              $strtr_preg_quote[$escapeables{$i}] = $delimiter . $escapeables{$i};
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '$error' which will lead to PHP notices.
                                                              Open

                                                                          return SafeURLread($filename, $error);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '$errstr' which will lead to PHP notices.
                                                              Open

                                                                          if (preg_match('#302 [a-z ]+; Location\\: (http.*)#i', $errstr, $matches)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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

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

                                                                  public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              BooleanArgumentFlag

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                      $alpha = false
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              BooleanArgumentFlag

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                  public static function GetPixelColor(&$img, $x, $y)
                                                                  {
                                                                      if (!is_resource($img)) {
                                                                          return false;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 ImageHexColorAllocate has a boolean flag argument $dieOnInvalid, which is a certain sign of a Single Responsibility Principle violation.
                                                              Open

                                                                      $dieOnInvalid = false,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              BooleanArgumentFlag

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                      $allow_reduce = true
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              BooleanArgumentFlag

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                  public static function GetPixelColor(&$img, $x, $y)
                                                                  {
                                                                      if (!is_resource($img)) {
                                                                          return false;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 ScaleToFitInBox has a boolean flag argument $allow_enlarge, which is a certain sign of a Single Responsibility Principle violation.
                                                              Open

                                                                      $allow_enlarge = true,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              BooleanArgumentFlag

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                  public static function FunctionIsDisabled($function)
                                                                  {
                                                                      static $DisabledFunctions = null;
                                                                      if (is_null($DisabledFunctions)) {
                                                                          $disable_functions_local  = explode(',', strtolower(@ini_get('disable_functions')));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 726.
                                                              Open

                                                                  public static function ApacheLookupURIarray($filename)
                                                                  {
                                                                      // apache_lookup_uri() only works when PHP is installed as an Apache module.
                                                                      if (php_sapi_name() == 'apache') {
                                                                          //$property_exists_exists = function_exists('property_exists');
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 gd_version has a boolean flag argument $fullstring, which is a certain sign of a Single Responsibility Principle violation.
                                                              Open

                                                                  public static function gd_version($fullstring = false)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              BooleanArgumentFlag

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                  public static function filesize_remote($remotefile, $timeout = 10)
                                                                  {
                                                                      $size = false;
                                                                      $url  = phpthumb_functions::ParseURLbetter($remotefile);
                                                                      if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 811.
                                                              Open

                                                                  public static function filedate_remote($remotefile, $timeout = 10)
                                                                  {
                                                                      $date = false;
                                                                      $url  = phpthumb_functions::ParseURLbetter($remotefile);
                                                                      if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 784.
                                                              Open

                                                                  public static function filesize_remote($remotefile, $timeout = 10)
                                                                  {
                                                                      $size = false;
                                                                      $url  = phpthumb_functions::ParseURLbetter($remotefile);
                                                                      if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 810.
                                                              Open

                                                                  public static function filedate_remote($remotefile, $timeout = 10)
                                                                  {
                                                                      $date = false;
                                                                      $url  = phpthumb_functions::ParseURLbetter($remotefile);
                                                                      if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 811.
                                                              Open

                                                                  public static function filedate_remote($remotefile, $timeout = 10)
                                                                  {
                                                                      $date = false;
                                                                      $url  = phpthumb_functions::ParseURLbetter($remotefile);
                                                                      if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 811.
                                                              Open

                                                                  public static function filedate_remote($remotefile, $timeout = 10)
                                                                  {
                                                                      $date = false;
                                                                      $url  = phpthumb_functions::ParseURLbetter($remotefile);
                                                                      if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 URLreadFsock has a boolean flag argument $successonly, which is a certain sign of a Single Responsibility Principle violation.
                                                              Open

                                                                  public static function URLreadFsock($host, $file, &$errstr, $successonly = true, $port = 80, $timeout = 10)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              BooleanArgumentFlag

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              BooleanArgumentFlag

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                  public static function FunctionIsDisabled($function)
                                                                  {
                                                                      static $DisabledFunctions = null;
                                                                      if (is_null($DisabledFunctions)) {
                                                                          $disable_functions_local  = explode(',', strtolower(@ini_get('disable_functions')));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 783.
                                                              Open

                                                                  public static function filesize_remote($remotefile, $timeout = 10)
                                                                  {
                                                                      $size = false;
                                                                      $url  = phpthumb_functions::ParseURLbetter($remotefile);
                                                                      if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 936.
                                                              Open

                                                                  public static function URLreadFsock($host, $file, &$errstr, $successonly = true, $port = 80, $timeout = 10)
                                                                  {
                                                                      if (!function_exists('fsockopen') || phpthumb_functions::FunctionIsDisabled('fsockopen')) {
                                                                          $errstr = 'fsockopen() unavailable';
                                                              
                                                              
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 ProportionalResize has a boolean flag argument $new_width, which is a certain sign of a Single Responsibility Principle violation.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              BooleanArgumentFlag

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                  public static function md5_file_safe($filename)
                                                                  {
                                                                      // md5_file() doesn't exist in PHP < 4.2.0
                                                                      if (function_exists('md5_file')) {
                                                                          return md5_file($filename);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1073.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1122.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1198.
                                                              Open

                                                                  public static function GetAllFilesInSubfolders($dirname)
                                                                  {
                                                                      $AllFiles = array();
                                                                      $dirname  = rtrim(realpath($dirname), '/\\');
                                                                      if ($dirhandle = @opendir($dirname)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1323.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1325.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 631.
                                                              Open

                                                                  public static function FunctionIsDisabled($function)
                                                                  {
                                                                      static $DisabledFunctions = null;
                                                                      if (is_null($DisabledFunctions)) {
                                                                          $disable_functions_local  = explode(',', strtolower(@ini_get('disable_functions')));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 729.
                                                              Open

                                                                  public static function ApacheLookupURIarray($filename)
                                                                  {
                                                                      // apache_lookup_uri() only works when PHP is installed as an Apache module.
                                                                      if (php_sapi_name() == 'apache') {
                                                                          //$property_exists_exists = function_exists('property_exists');
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 784.
                                                              Open

                                                                  public static function filesize_remote($remotefile, $timeout = 10)
                                                                  {
                                                                      $size = false;
                                                                      $url  = phpthumb_functions::ParseURLbetter($remotefile);
                                                                      if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1070.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1175.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1181.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1011.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1070.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1070.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1313.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1174.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 SafeURLread has a boolean flag argument $followredirects, which is a certain sign of a Single Responsibility Principle violation.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              BooleanArgumentFlag

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1021.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1037.
                                                              Open

                                                                  public static function ParseURLbetter($url)
                                                                  {
                                                                      $parsedURL = @parse_url($url);
                                                                      if (!@$parsedURL['port']) {
                                                                          switch (strtolower(@$parsedURL['scheme'])) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1072.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1025.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1038.
                                                              Open

                                                                  public static function ParseURLbetter($url)
                                                                  {
                                                                      $parsedURL = @parse_url($url);
                                                                      if (!@$parsedURL['port']) {
                                                                          switch (strtolower(@$parsedURL['scheme'])) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1070.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1181.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1036.
                                                              Open

                                                                  public static function ParseURLbetter($url)
                                                                  {
                                                                      $parsedURL = @parse_url($url);
                                                                      if (!@$parsedURL['port']) {
                                                                          switch (strtolower(@$parsedURL['scheme'])) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1179.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 imagealphablending has a boolean flag argument $blendmode, which is a certain sign of a Single Responsibility Principle violation.
                                                              Open

                                                                  function imagealphablending(&$img, $blendmode = true)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              BooleanArgumentFlag

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1404.
                                                              Open

                                                                  function file_put_contents($filename, $filedata)
                                                                  {
                                                                      if ($fp = @fopen($filename, 'wb')) {
                                                                          fwrite($fp, $filedata);
                                                                          fclose($fp);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1380.
                                                              Open

                                                                  function file_get_contents($filename)
                                                                  {
                                                                      if (preg_match('#^(f|ht)tp\://#i', $filename)) {
                                                                          return SafeURLread($filename, $error);
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 1318.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 imagesavealpha has a boolean flag argument $blendmode, which is a certain sign of a Single Responsibility Principle violation.
                                                              Open

                                                                  function imagesavealpha(&$img, $blendmode = true)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              BooleanArgumentFlag

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                          $phpinfo_array = phpthumb_functions::phpinfo_array();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 ImageCopyResampleBicubic uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                              Open

                                                                              } else {
                                                                                  $c1 = imagecolorsforindex($src_img, imagecolorat($src_img, $siX, $siY2));
                                                                                  $c2 = imagecolorsforindex($src_img, imagecolorat($src_img, $siX, $siY));
                                                                                  $c3 = imagecolorsforindex($src_img, imagecolorat($src_img, $siX2, $siY2));
                                                                                  $c4 = imagecolorsforindex($src_img, imagecolorat($src_img, $siX2, $siY));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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' in method 'ImageCreateFunction'.
                                                              Open

                                                                          return phpthumb::ErrorImage($ImageCreateFunction . '() does not exist - no GD support?');
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              StaticAccess

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                      if (phpthumb_functions::gd_version() >= 2.0) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              StaticAccess

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                      if (function_exists('escapeshellarg') && !phpthumb_functions::FunctionIsDisabled('escapeshellarg')) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              StaticAccess

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                      $gray = phpthumb_functions::GrayscaleValue($OriginalPixel['red'], $OriginalPixel['green'], $OriginalPixel['blue']);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              StaticAccess

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                          return phpthumb_functions::ImageColorAllocateAlphaSafe($gdimg_hexcolorallocate, $R, $G, $B, $alpha);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              StaticAccess

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                      if (phpthumb_functions::IsHexColor($HexColorString)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 ImageColorAllocateAlphaSafe uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                              Open

                                                                      } else {
                                                                          return imagecolorallocate($gdimg_hexcolorallocate, $R, $G, $B);
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 'version_compare_replacement'.
                                                              Open

                                                                          $comparison = phpthumb_functions::version_compare_replacement_sub($version1, $version2, $operator);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              StaticAccess

                                                              Since: 1.4.0

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

                                                              Example

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

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

                                                              Avoid using static access to class 'phpthumb' in method 'ImageCreateFunction'.
                                                              Open

                                                                          return phpthumb::ErrorImage('Invalid image dimensions: ' . $ImageCreateFunction . '(' . $x_size . ', ' . $y_size . ')');
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              StaticAccess

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                      if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.3.2', '>=') && ($alpha !== false)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              StaticAccess

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                          if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.3.0', '>=')) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              StaticAccess

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                              $OverlayPixel = phpthumb_functions::GetPixelColor($src_im, $x, $y);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '783', column '13').
                                                              Open

                                                                  public static function filesize_remote($remotefile, $timeout = 10)
                                                                  {
                                                                      $size = false;
                                                                      $url  = phpthumb_functions::ParseURLbetter($remotefile);
                                                                      if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '810', column '13').
                                                              Open

                                                                  public static function filedate_remote($remotefile, $timeout = 10)
                                                                  {
                                                                      $date = false;
                                                                      $url  = phpthumb_functions::ParseURLbetter($remotefile);
                                                                      if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 'filedate_remote'.
                                                              Open

                                                                      $url  = phpthumb_functions::ParseURLbetter($remotefile);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '726', column '17').
                                                              Open

                                                                  public static function ApacheLookupURIarray($filename)
                                                                  {
                                                                      // apache_lookup_uri() only works when PHP is installed as an Apache module.
                                                                      if (php_sapi_name() == 'apache') {
                                                                          //$property_exists_exists = function_exists('property_exists');
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '936', column '13').
                                                              Open

                                                                  public static function URLreadFsock($host, $file, &$errstr, $successonly = true, $port = 80, $timeout = 10)
                                                                  {
                                                                      if (!function_exists('fsockopen') || phpthumb_functions::FunctionIsDisabled('fsockopen')) {
                                                                          $errstr = 'fsockopen() unavailable';
                                                              
                                                              
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 'ImageCopyRespectAlpha'.
                                                              Open

                                                                              $RealPixel    = phpthumb_functions::GetPixelColor($dst_im, $dst_x + $x, $dst_y + $y);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              StaticAccess

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                              $AllowedExecFunctions[$key] = !phpthumb_functions::FunctionIsDisabled($key);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              StaticAccess

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                          if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.3.0', '>=')) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              StaticAccess

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                              $newcolor = phpthumb_functions::ImageColorAllocateAlphaSafe($dst_im, round($RealPixel['red'] * (1 - $overlaypct)) + ($OverlayPixel['red'] * $overlaypct),
                                                                                                                                          round($RealPixel['green'] * (1 - $overlaypct)) + ($OverlayPixel['green'] * $overlaypct),
                                                                                                                                          round($RealPixel['blue'] * (1 - $overlaypct)) + ($OverlayPixel['blue'] * $overlaypct), //$RealPixel['alpha']);
                                                                                                                                          0);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              StaticAccess

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                      $url  = phpthumb_functions::ParseURLbetter($remotefile);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '838', column '13').
                                                              Open

                                                                  public static function md5_file_safe($filename)
                                                                  {
                                                                      // md5_file() doesn't exist in PHP < 4.2.0
                                                                      if (function_exists('md5_file')) {
                                                                          return md5_file($filename);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 gd_version uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                              Open

                                                                          } else {
                                                                              $cache_gd_version[1] = $gd_info['GD Version'];                       // e.g. "1.6.2 or higher"
                                                                              $cache_gd_version[0] = (float)substr($gd_info['GD Version'], 0, 3); // e.g. "1.6" (not "1.6.2 or higher")
                                                                          }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 SafeURLread uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                              Open

                                                                      } else {
                                                                          $error .= '"allow_url_fopen" disabled; ';
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 'GetAllFilesInSubfolders'.
                                                              Open

                                                                                          $subfiles   = phpthumb_functions::GetAllFilesInSubfolders($fullfilename);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              StaticAccess

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                      if (!function_exists('fsockopen') || phpthumb_functions::FunctionIsDisabled('fsockopen')) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 SafeURLread uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                              Open

                                                                      } else {
                                                                          return $rawData;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 'SanitizeFilename'.
                                                              Open

                                                                      if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.1.0', '>=')) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              StaticAccess

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                      $parse_url         = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              StaticAccess

                                                              Since: 1.4.0

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

                                                              Example

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

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

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

                                                                                  $parsed_url                       = phpthumb_functions::ParseURLbetter($matches[1]);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '1198', column '13').
                                                              Open

                                                                  public static function GetAllFilesInSubfolders($dirname)
                                                                  {
                                                                      $AllFiles = array();
                                                                      $dirname  = rtrim(realpath($dirname), '/\\');
                                                                      if ($dirhandle = @opendir($dirname)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 'SafeURLread'.
                                                              Open

                                                                      if (function_exists('curl_version') && !phpthumb_functions::FunctionIsDisabled('curl_exec')) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '1126', column '17').
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 'SafeURLread'.
                                                              Open

                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '1313', column '29').
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '1312', column '25').
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 'SafeURLread'.
                                                              Open

                                                                          $rawData  = phpthumb_functions::URLreadFsock(@$parsed_url['host'], @$parsed_url['path'] . '?' . @$parsed_url['query'], $errstr, true, (@$parsed_url['port'] ?: 80), $timeout);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 SafeURLread uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                              Open

                                                                          } else {
                                                                              $error_fopen .= trim(strip_tags(ob_get_contents()));
                                                                          }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 'gd_info'.
                                                              Open

                                                                          $phpinfo_array = phpthumb_functions::phpinfo_array();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 SafeURLread uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                              Open

                                                                      } else {
                                                                          $error .= 'CURL unavailable; ';
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 URLreadFsock uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                              Open

                                                                              } else {
                                                                                  $Data_body .= $line;
                                                                              }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 GetAllFilesInSubfolders uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                              Open

                                                                              } else {
                                                                                  // ignore?
                                                                              }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '1380', column '13').
                                                              Open

                                                                  function file_get_contents($filename)
                                                                  {
                                                                      if (preg_match('#^(f|ht)tp\://#i', $filename)) {
                                                                          return SafeURLread($filename, $error);
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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' in method 'gd_info'.
                                                              Open

                                                                                  if ($tempfilename = phpthumb::phpThumb_tempnam()) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 '1404', column '13').
                                                              Open

                                                                  function file_put_contents($filename, $filedata)
                                                                  {
                                                                      if ($fp = @fopen($filename, 'wb')) {
                                                                          fwrite($fp, $filedata);
                                                                          fclose($fp);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              IfStatementAssignment

                                                              Since: 2.7.0

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

                                                              Example

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

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

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

                                                                              foreach ($exif_info as $key => $value) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              UnusedLocalVariable

                                                              Since: 0.2

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

                                                              Example

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

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

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

                                                                      foreach ($targetPixel as $channel => $currentvalue) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 ImageHexColorAllocate() contains an exit expression.
                                                              Open

                                                                          die('Invalid hex color string: "' . $HexColorString . '"');
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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

                                                              The method ImageHexColorAllocate() contains an exit expression.
                                                              Open

                                                                          die('$gdimg_hexcolorallocate is not a GD resource in ImageHexColorAllocate()');
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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

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

                                                                      if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              UnusedLocalVariable

                                                              Since: 0.2

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

                                                              Example

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

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

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

                                                                      foreach ($haystack as $key => $value) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              UnusedLocalVariable

                                                              Since: 0.2

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

                                                              Example

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

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

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

                                                                      if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              UnusedLocalVariable

                                                              Since: 0.2

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

                                                              Example

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

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

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

                                                                      if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              UnusedLocalVariable

                                                              Since: 0.2

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

                                                              Example

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

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

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

                                                                      foreach ($arg_list as $key => $value) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              UnusedLocalVariable

                                                              Since: 0.2

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

                                                              Example

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

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

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

                                                                                  $lastline    = $execfunction($command, $output);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              UnusedLocalVariable

                                                              Since: 0.2

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

                                                              Example

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

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

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

                                                                          foreach ($AllowedExecFunctions as $key => $value) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              UnusedLocalVariable

                                                              Since: 0.2

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

                                                              Example

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

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

                                                              Avoid unused parameters such as '$followredirects'.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              UnusedFormalParameter

                                                              Since: 0.2

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

                                                              Example

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

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

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

                                                                      if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              UnusedLocalVariable

                                                              Since: 0.2

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

                                                              Example

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

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

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

                                                                      foreach ($open_basedirs as $key => $open_basedir) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              UnusedLocalVariable

                                                              Since: 0.2

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

                                                              Example

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

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

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

                                                                          $Data_header        = '';
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              UnusedLocalVariable

                                                              Since: 0.2

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

                                                              Example

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

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

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

                                                                                  list($dummy, $errno, $errstr) = $matches;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              UnusedLocalVariable

                                                              Since: 0.2

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

                                                              Example

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

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

                                                              Avoid unused parameters such as '$img'.
                                                              Open

                                                                  function imagealphablending(&$img, $blendmode = true)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              UnusedFormalParameter

                                                              Since: 0.2

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

                                                              Example

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

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

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

                                                                          return SafeURLread($filename, $error);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              UnusedLocalVariable

                                                              Since: 0.2

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

                                                              Example

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

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

                                                              Avoid unused parameters such as '$blendmode'.
                                                              Open

                                                                  function imagealphablending(&$img, $blendmode = true)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              UnusedFormalParameter

                                                              Since: 0.2

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

                                                              Example

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

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

                                                              Avoid unused parameters such as '$img'.
                                                              Open

                                                                  function imagesavealpha(&$img, $blendmode = true)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              UnusedFormalParameter

                                                              Since: 0.2

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

                                                              Example

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

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

                                                              Avoid unused parameters such as '$blendmode'.
                                                              Open

                                                                  function imagesavealpha(&$img, $blendmode = true)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              UnusedFormalParameter

                                                              Since: 0.2

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

                                                              Example

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

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

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

                                                                              foreach ($gd_info as $key => $value) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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

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

                                                                          foreach ($phpinfo_array as $line) {
                                                                              $line = trim(strip_tags($line));
                                                                              foreach ($gd_info as $key => $value) {
                                                                                  //if (strpos($line, $key) !== false) {
                                                                                  if (strpos($line, $key) === 0) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php and 1 other location - About 35 mins to fix
                                                              thumbs/phpthumb.functions.php on lines 202..210

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

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

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

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

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

                                                              Refactorings

                                                              Further Reading

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

                                                                          foreach ($phpinfo_array as $line) {
                                                                              $line = trim(strip_tags($line));
                                                                              foreach ($exif_info as $key => $value) {
                                                                                  if (strpos($line, $key) === 0) {
                                                                                      $newvalue        = trim(str_replace($key, '', $line));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php and 1 other location - About 35 mins to fix
                                                              thumbs/phpthumb.functions.php on lines 1283..1292

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

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

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

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

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

                                                              Refactorings

                                                              Further Reading

                                                              Avoid excessively long variable names like $image_type_to_mime_type. Keep variable name length under 20.
                                                              Open

                                                                      static $image_type_to_mime_type = array(
                                                                          1  => 'image/gif',                     // IMAGETYPE_GIF
                                                                          2  => 'image/jpeg',                    // IMAGETYPE_JPEG
                                                                          3  => 'image/png',                     // IMAGETYPE_PNG
                                                                          4  => 'application/x-shockwave-flash', // IMAGETYPE_SWF
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              LongVariable

                                                              Since: 0.2

                                                              Detects when a field, formal or local variable is declared with a long name.

                                                              Example

                                                              class Something {
                                                                  protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                  public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                      $otherReallyLongName = -5; // VIOLATION - Local
                                                                      for ($interestingIntIndex = 0; // VIOLATION - For
                                                                           $interestingIntIndex < 10;
                                                                           $interestingIntIndex++ ) {
                                                                      }
                                                                  }
                                                              }

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

                                                              Avoid excessively long variable names like $get_defined_functions. Keep variable name length under 20.
                                                              Open

                                                                          static $get_defined_functions = array();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              LongVariable

                                                              Since: 0.2

                                                              Detects when a field, formal or local variable is declared with a long name.

                                                              Example

                                                              class Something {
                                                                  protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                  public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                      $otherReallyLongName = -5; // VIOLATION - Local
                                                                      for ($interestingIntIndex = 0; // VIOLATION - For
                                                                           $interestingIntIndex < 10;
                                                                           $interestingIntIndex++ ) {
                                                                      }
                                                                  }
                                                              }

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

                                                              Avoid excessively long variable names like $gdimg_hexcolorallocate. Keep variable name length under 20.
                                                              Open

                                                                  public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              LongVariable

                                                              Since: 0.2

                                                              Detects when a field, formal or local variable is declared with a long name.

                                                              Example

                                                              class Something {
                                                                  protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                  public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                      $otherReallyLongName = -5; // VIOLATION - Local
                                                                      for ($interestingIntIndex = 0; // VIOLATION - For
                                                                           $interestingIntIndex < 10;
                                                                           $interestingIntIndex++ ) {
                                                                      }
                                                                  }
                                                              }

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

                                                              Avoid excessively long variable names like $get_defined_functions. Keep variable name length under 20.
                                                              Open

                                                                          static $get_defined_functions = array();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              LongVariable

                                                              Since: 0.2

                                                              Detects when a field, formal or local variable is declared with a long name.

                                                              Example

                                                              class Something {
                                                                  protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                  public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                      $otherReallyLongName = -5; // VIOLATION - Local
                                                                      for ($interestingIntIndex = 0; // VIOLATION - For
                                                                           $interestingIntIndex < 10;
                                                                           $interestingIntIndex++ ) {
                                                                      }
                                                                  }
                                                              }

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

                                                              Avoid excessively long variable names like $gdimg_hexcolorallocate. Keep variable name length under 20.
                                                              Open

                                                                      &$gdimg_hexcolorallocate,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              LongVariable

                                                              Since: 0.2

                                                              Detects when a field, formal or local variable is declared with a long name.

                                                              Example

                                                              class Something {
                                                                  protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                  public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                      $otherReallyLongName = -5; // VIOLATION - Local
                                                                      for ($interestingIntIndex = 0; // VIOLATION - For
                                                                           $interestingIntIndex < 10;
                                                                           $interestingIntIndex++ ) {
                                                                      }
                                                                  }
                                                              }

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

                                                              Avoid excessively long variable names like $disable_functions_local. Keep variable name length under 20.
                                                              Open

                                                                          $disable_functions_local  = explode(',', strtolower(@ini_get('disable_functions')));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              LongVariable

                                                              Since: 0.2

                                                              Detects when a field, formal or local variable is declared with a long name.

                                                              Example

                                                              class Something {
                                                                  protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                  public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                      $otherReallyLongName = -5; // VIOLATION - Local
                                                                      for ($interestingIntIndex = 0; // VIOLATION - For
                                                                           $interestingIntIndex < 10;
                                                                           $interestingIntIndex++ ) {
                                                                      }
                                                                  }
                                                              }

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

                                                              Avoid excessively long variable names like $disable_functions_global. Keep variable name length under 20.
                                                              Open

                                                                          $disable_functions_global = explode(',', strtolower(@get_cfg_var('disable_functions')));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              LongVariable

                                                              Since: 0.2

                                                              Detects when a field, formal or local variable is declared with a long name.

                                                              Example

                                                              class Something {
                                                                  protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                  public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                      $otherReallyLongName = -5; // VIOLATION - Local
                                                                      for ($interestingIntIndex = 0; // VIOLATION - For
                                                                           $interestingIntIndex < 10;
                                                                           $interestingIntIndex++ ) {
                                                                      }
                                                                  }
                                                              }

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

                                                              Avoid excessively long variable names like $apacheLookupURIobject. Keep variable name length under 20.
                                                              Open

                                                                          if ($apacheLookupURIobject = @apache_lookup_uri($filename)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              LongVariable

                                                              Since: 0.2

                                                              Detects when a field, formal or local variable is declared with a long name.

                                                              Example

                                                              class Something {
                                                                  protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                  public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                      $otherReallyLongName = -5; // VIOLATION - Local
                                                                      for ($interestingIntIndex = 0; // VIOLATION - For
                                                                           $interestingIntIndex < 10;
                                                                           $interestingIntIndex++ ) {
                                                                      }
                                                                  }
                                                              }

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

                                                              Avoid excessively long variable names like $BrokenURLfopenPHPversions. Keep variable name length under 20.
                                                              Open

                                                                      $BrokenURLfopenPHPversions = array('4.4.2');
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              LongVariable

                                                              Since: 0.2

                                                              Detects when a field, formal or local variable is declared with a long name.

                                                              Example

                                                              class Something {
                                                                  protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                  public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                      $otherReallyLongName = -5; // VIOLATION - Local
                                                                      for ($interestingIntIndex = 0; // VIOLATION - For
                                                                           $interestingIntIndex < 10;
                                                                           $interestingIntIndex++ ) {
                                                                      }
                                                                  }
                                                              }

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

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

                                                              class phpthumb_functions

                                                              The parameter $R is not named in camelCase.
                                                              Open

                                                                  public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                                                                  {
                                                                      if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.3.2', '>=') && ($alpha !== false)) {
                                                                          return imagecolorallocatealpha($gdimg_hexcolorallocate, $R, $G, $B, (int)$alpha);
                                                                      } else {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $B is not named in camelCase.
                                                              Open

                                                                  public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                                                                  {
                                                                      if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.3.2', '>=') && ($alpha !== false)) {
                                                                          return imagecolorallocatealpha($gdimg_hexcolorallocate, $R, $G, $B, (int)$alpha);
                                                                      } else {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $G is not named in camelCase.
                                                              Open

                                                                  public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                                                                  {
                                                                      if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.3.2', '>=') && ($alpha !== false)) {
                                                                          return imagecolorallocatealpha($gdimg_hexcolorallocate, $R, $G, $B, (int)$alpha);
                                                                      } else {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

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

                                                                  public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $G. Configured minimum length is 3.
                                                              Open

                                                                  public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 class phpthumb_functions is not named in CamelCase.
                                                              Open

                                                              class phpthumb_functions
                                                              {
                                                              
                                                                  /**
                                                                   * @param $functionname
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseClassName

                                                              Since: 0.2

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

                                                              Example

                                                              class class_name {
                                                              }

                                                              Source

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

                                                                                  $c3 = imagecolorat($src_img, $siX2, $siY2);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 = hexdec(substr($HexColorString, 4, 2));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 parameter $src_h is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

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

                                                                  public static function GetPixelColor(&$img, $x, $y)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 parameter $x_size is not named in camelCase.
                                                              Open

                                                                  public static function ImageCreateFunction($x_size, $y_size)
                                                                  {
                                                                      $ImageCreateFunction = 'ImageCreate';
                                                                      if (phpthumb_functions::gd_version() >= 2.0) {
                                                                          $ImageCreateFunction = 'ImageCreateTrueColor';
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $dst_im is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $dst_y is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

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

                                                                          $G = hexdec(substr($HexColorString, 2, 2));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 parameter $dst_y is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

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

                                                                  public static function GetPixelColor(&$img, $x, $y)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $r. Configured minimum length is 3.
                                                              Open

                                                                  public static function GrayscaleValue($r, $g, $b)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 parameter $allow_enlarge is not named in camelCase.
                                                              Open

                                                                  public static function ScaleToFitInBox(
                                                                      $width,
                                                                      $height,
                                                                      $maxwidth = null,
                                                                      $maxheight = null,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $dst_img is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $gdimg_hexcolorallocate is not named in camelCase.
                                                              Open

                                                                  public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                                                                  {
                                                                      if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.3.2', '>=') && ($alpha !== false)) {
                                                                          return imagecolorallocatealpha($gdimg_hexcolorallocate, $R, $G, $B, (int)$alpha);
                                                                      } else {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $HexColorString is not named in camelCase.
                                                              Open

                                                                  public static function ImageHexColorAllocate(
                                                                      &$gdimg_hexcolorallocate,
                                                                      $HexColorString,
                                                                      $dieOnInvalid = false,
                                                                      $alpha = false
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

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

                                                                  public static function GrayscaleValue($r, $g, $b)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $sY. Configured minimum length is 3.
                                                              Open

                                                                          $sY   = $y * $scaleY;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $sX. Configured minimum length is 3.
                                                              Open

                                                                              $sX   = $x * $scaleX;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $g. Configured minimum length is 3.
                                                              Open

                                                                  public static function GrayscaleValue($r, $g, $b)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 parameter $dst_h is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

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

                                                                                  $c1 = imagecolorat($src_img, $siX, $siY2);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 = $rgb & 0xFF;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $g. Configured minimum length is 3.
                                                              Open

                                                                      $g = ($rgb >> 8) & 0xFF;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $g. Configured minimum length is 3.
                                                              Open

                                                                                  $g = ((($c1 & 0x00FF00) + ($c2 & 0x00FF00) + ($c3 & 0x00FF00) + ($c4 & 0x00FF00)) >> 2) & 0x00FF00;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 parameter $src_w is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

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

                                                                          $R = hexdec(substr($HexColorString, 0, 2));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $r. Configured minimum length is 3.
                                                              Open

                                                                      $r = ($rgb >> 16) & 0xFF;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 parameter $allow_reduce is not named in camelCase.
                                                              Open

                                                                  public static function ScaleToFitInBox(
                                                                      $width,
                                                                      $height,
                                                                      $maxwidth = null,
                                                                      $maxheight = null,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $src_y is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

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

                                                                                  $b = ((($c1 & 0x0000FF) + ($c2 & 0x0000FF) + ($c3 & 0x0000FF) + ($c4 & 0x0000FF)) >> 2);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 parameter $dst_x is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $src_y is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $HexColorString is not named in camelCase.
                                                              Open

                                                                  public static function IsHexColor($HexColorString)
                                                                  {
                                                                      return preg_match('#^[0-9A-F]{6}$#i', $HexColorString);
                                                                  }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $dst_x is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $dst_w is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

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

                                                                                  $c2 = imagecolorat($src_img, $siX, $siY);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $R. Configured minimum length is 3.
                                                              Open

                                                                  public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 parameter $src_img is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $gdimg_hexcolorallocate is not named in camelCase.
                                                              Open

                                                                  public static function ImageHexColorAllocate(
                                                                      &$gdimg_hexcolorallocate,
                                                                      $HexColorString,
                                                                      $dieOnInvalid = false,
                                                                      $alpha = false
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

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

                                                                                  $c4 = imagecolorat($src_img, $siX2, $siY);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $r. Configured minimum length is 3.
                                                              Open

                                                                                  $r = (($c1 + $c2 + $c3 + $c4) >> 2) & 0xFF0000;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 parameter $src_x is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $OriginalPixel is not named in camelCase.
                                                              Open

                                                                  public static function GrayscalePixel($OriginalPixel)
                                                                  {
                                                                      $gray = phpthumb_functions::GrayscaleValue($OriginalPixel['red'], $OriginalPixel['green'], $OriginalPixel['blue']);
                                                              
                                                                      return array('red' => $gray, 'green' => $gray, 'blue' => $gray);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $src_w is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $src_im is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $opacity_pct is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $src_x is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $y_size is not named in camelCase.
                                                              Open

                                                                  public static function ImageCreateFunction($x_size, $y_size)
                                                                  {
                                                                      $ImageCreateFunction = 'ImageCreate';
                                                                      if (phpthumb_functions::gd_version() >= 2.0) {
                                                                          $ImageCreateFunction = 'ImageCreateTrueColor';
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $src_h is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

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

                                                                      if ($fp = @fopen($filename, 'rb')) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 parameter $old_width is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $new_width is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $new_height is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

                                                              The parameter $old_height is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.php by phpmd

                                                              CamelCaseParameterName

                                                              Since: 0.2

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

                                                              Example

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

                                                              Source

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

                                                                      if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $fp. Configured minimum length is 3.
                                                              Open

                                                                      if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $fp. Configured minimum length is 3.
                                                              Open

                                                                          if ($fp = fopen($url, 'rb')) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $fp. Configured minimum length is 3.
                                                              Open

                                                                      if ($fp = @fsockopen((($port == 443) ? 'ssl://' : '') . $host, $port, $errno, $errstr, $timeout)) { // https://github.com/JamesHeinrich/phpThumb/issues/39
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $fp. Configured minimum length is 3.
                                                              Open

                                                                      if ($fp = @fopen($filename, 'wb')) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $i. Configured minimum length is 3.
                                                              Open

                                                                      $i         = $startoffset;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $ch. Configured minimum length is 3.
                                                              Open

                                                                          $ch = curl_init();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $fp. Configured minimum length is 3.
                                                              Open

                                                                      if ($fp = @fopen($filename, 'rb')) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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

                                                              Method name "phpthumb_functions::ImageTypeToMIMEtype" is not in camel caps format
                                                              Open

                                                                  public static function ImageTypeToMIMEtype($imagetype)

                                                              Method name "phpthumb_functions::ImageColorAllocateAlphaSafe" is not in camel caps format
                                                              Open

                                                                  public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)

                                                              Method name "phpthumb_functions::exif_info" is not in camel caps format
                                                              Open

                                                                  public static function exif_info()

                                                              Method name "phpthumb_functions::IsHexColor" is not in camel caps format
                                                              Open

                                                                  public static function IsHexColor($HexColorString)

                                                              Method name "phpthumb_functions::ImageHexColorAllocate" is not in camel caps format
                                                              Open

                                                                  public static function ImageHexColorAllocate(

                                                              Method name "phpthumb_functions::HexColorXOR" is not in camel caps format
                                                              Open

                                                                  public static function HexColorXOR($hexcolor)

                                                              Method name "phpthumb_functions::user_function_exists" is not in camel caps format
                                                              Open

                                                                  public static function user_function_exists($functionname)

                                                              Method name "phpthumb_functions::version_compare_replacement_sub" is not in camel caps format
                                                              Open

                                                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')

                                                              Method name "phpthumb_functions::PixelColorDifferencePercent" is not in camel caps format
                                                              Open

                                                                  public static function PixelColorDifferencePercent($currentPixel, $targetPixel)

                                                              Method name "phpthumb_functions::ImageCreateFunction" is not in camel caps format
                                                              Open

                                                                  public static function ImageCreateFunction($x_size, $y_size)

                                                              Method name "phpthumb_functions::OneOfThese" is not in camel caps format
                                                              Open

                                                                  public static function OneOfThese()

                                                              Method name "phpthumb_functions::ParseURLbetter" is not in camel caps format
                                                              Open

                                                                  public static function ParseURLbetter($url)

                                                              Method name "phpthumb_functions::escapeshellarg_replacement" is not in camel caps format
                                                              Open

                                                                  public static function escapeshellarg_replacement($arg)

                                                              Method name "phpthumb_functions::TranslateWHbyAngle" is not in camel caps format
                                                              Open

                                                                  public static function TranslateWHbyAngle($width, $height, $angle)

                                                              Method name "phpthumb_functions::GrayscaleValue" is not in camel caps format
                                                              Open

                                                                  public static function GrayscaleValue($r, $g, $b)

                                                              Method name "phpthumb_functions::ProportionalResize" is not in camel caps format
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)

                                                              Method name "phpthumb_functions::gd_version" is not in camel caps format
                                                              Open

                                                                  public static function gd_version($fullstring = false)

                                                              Method name "phpthumb_functions::CleanUpURLencoding" is not in camel caps format
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')

                                                              Method name "phpthumb_functions::SafeURLread" is not in camel caps format
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)

                                                              Method name "phpthumb_functions::GetPixelColor" is not in camel caps format
                                                              Open

                                                                  public static function GetPixelColor(&$img, $x, $y)

                                                              Method name "phpthumb_functions::FunctionIsDisabled" is not in camel caps format
                                                              Open

                                                                  public static function FunctionIsDisabled($function)

                                                              Method name "phpthumb_functions::SanitizeFilename" is not in camel caps format
                                                              Open

                                                                  public static function SanitizeFilename($filename)

                                                              Method name "phpthumb_functions::version_compare_replacement" is not in camel caps format
                                                              Open

                                                                  public static function version_compare_replacement($version1, $version2, $operator = '')

                                                              Method name "phpthumb_functions::LittleEndian2String" is not in camel caps format
                                                              Open

                                                                  public static function LittleEndian2String($number, $minbytes = 1)

                                                              Method name "phpthumb_functions::ImageCopyResampleBicubic" is not in camel caps format
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(

                                                              Method name "phpthumb_functions::GetAllFilesInSubfolders" is not in camel caps format
                                                              Open

                                                                  public static function GetAllFilesInSubfolders($dirname)

                                                              Method name "phpthumb_functions::phpinfo_array" is not in camel caps format
                                                              Open

                                                                  public static function phpinfo_array()

                                                              Method name "phpthumb_functions::md5_file_safe" is not in camel caps format
                                                              Open

                                                                  public static function md5_file_safe($filename)

                                                              Method name "phpthumb_functions::SafeExec" is not in camel caps format
                                                              Open

                                                                  public static function SafeExec($command)

                                                              Method name "phpthumb_functions::nonempty_min" is not in camel caps format
                                                              Open

                                                                  public static function nonempty_min()

                                                              Method name "phpthumb_functions::EnsureDirectoryExists" is not in camel caps format
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)

                                                              Method name "phpthumb_functions::GrayscalePixel" is not in camel caps format
                                                              Open

                                                                  public static function GrayscalePixel($OriginalPixel)

                                                              Method name "phpthumb_functions::filesize_remote" is not in camel caps format
                                                              Open

                                                                  public static function filesize_remote($remotefile, $timeout = 10)

                                                              Method name "phpthumb_functions::filedate_remote" is not in camel caps format
                                                              Open

                                                                  public static function filedate_remote($remotefile, $timeout = 10)

                                                              Method name "phpthumb_functions::ScaleToFitInBox" is not in camel caps format
                                                              Open

                                                                  public static function ScaleToFitInBox(

                                                              Method name "phpthumb_functions::CaseInsensitiveInArray" is not in camel caps format
                                                              Open

                                                                  public static function CaseInsensitiveInArray($needle, $haystack)

                                                              Method name "phpthumb_functions::GrayscalePixelRGB" is not in camel caps format
                                                              Open

                                                                  public static function GrayscalePixelRGB($rgb)

                                                              Method name "phpthumb_functions::gd_is_bundled" is not in camel caps format
                                                              Open

                                                                  public static function gd_is_bundled()

                                                              Method name "phpthumb_functions::PasswordStrength" is not in camel caps format
                                                              Open

                                                                  public static function PasswordStrength($password)

                                                              Method name "phpthumb_functions::builtin_function_exists" is not in camel caps format
                                                              Open

                                                                  public static function builtin_function_exists($functionname)

                                                              Method name "phpthumb_functions::HexCharDisplay" is not in camel caps format
                                                              Open

                                                                  public static function HexCharDisplay($string)

                                                              Method name "phpthumb_functions::ApacheLookupURIarray" is not in camel caps format
                                                              Open

                                                                  public static function ApacheLookupURIarray($filename)

                                                              Method name "phpthumb_functions::ImageCopyRespectAlpha" is not in camel caps format
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(

                                                              Only one argument is allowed per line in a multi-line function call
                                                              Open

                                                                              $newcolor = phpthumb_functions::ImageColorAllocateAlphaSafe($dst_im, round($RealPixel['red'] * (1 - $overlaypct)) + ($OverlayPixel['red'] * $overlaypct),

                                                              Line exceeds 120 characters; contains 135 characters
                                                              Open

                                                                      // Then it splits the results like if you were using explode('.',$ver). Then it compares the parts starting from left to right.

                                                              Line exceeds 120 characters; contains 121 characters
                                                              Open

                                                                              $cache_gd_version[0] = (float)substr($gd_info['GD Version'], 0, 3); // e.g. "1.6" (not "1.6.2 or higher")

                                                              Line exceeds 120 characters; contains 146 characters
                                                              Open

                                                                      $cleaned_url .= (@$parse_url['username'] ? $parse_url['host'] . (@$parse_url['password'] ? ':' . $parse_url['password'] : '') . '@' : '');

                                                              Line exceeds 120 characters; contains 123 characters
                                                              Open

                                                                      $gray = phpthumb_functions::GrayscaleValue($OriginalPixel['red'], $OriginalPixel['green'], $OriginalPixel['blue']);

                                                              Line exceeds 120 characters; contains 129 characters
                                                              Open

                                                                          fwrite($fp, 'HEAD ' . @$url['path'] . @$url['query'] . ' HTTP/1.0' . "\r\n" . 'Host: ' . @$url['host'] . "\r\n\r\n");

                                                              Line exceeds 120 characters; contains 148 characters
                                                              Open

                                                                          $diff = max($diff, (max($currentPixel[$channel], $targetPixel[$channel]) - min($currentPixel[$channel], $targetPixel[$channel])) / 255);

                                                              Line exceeds 120 characters; contains 164 characters
                                                              Open

                                                                                                                                          round($RealPixel['green'] * (1 - $overlaypct)) + ($OverlayPixel['green'] * $overlaypct),

                                                              Line exceeds 120 characters; contains 129 characters
                                                              Open

                                                                          fwrite($fp, 'HEAD ' . @$url['path'] . @$url['query'] . ' HTTP/1.0' . "\r\n" . 'Host: ' . @$url['host'] . "\r\n\r\n");

                                                              Line exceeds 120 characters; contains 129 characters
                                                              Open

                                                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.

                                                              Line exceeds 120 characters; contains 122 characters
                                                              Open

                                                                          $CleanQueries[] = strtr($param, $TranslationMatrix) . ($value ? '=' . strtr($value, $TranslationMatrix) : '');

                                                              Line exceeds 120 characters; contains 174 characters
                                                              Open

                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element

                                                              Line exceeds 120 characters; contains 135 characters
                                                              Open

                                                                                          // if we can convert the GIF file to a GD image then GIF create support must be enabled, otherwise it's not

                                                              Line exceeds 120 characters; contains 133 characters
                                                              Open

                                                                                              $errstr = $errno . ' ' . $errstr . ($header_newlocation ? '; Location: ' . $header_newlocation : '');

                                                              Line exceeds 120 characters; contains 126 characters
                                                              Open

                                                                      $strength += strlen(preg_replace('#[a-zA-Z0-9]#', '', $password)) * 2.0; // other non-alphanumeric characters are best

                                                              Line exceeds 120 characters; contains 132 characters
                                                              Open

                                                                          return phpthumb::ErrorImage('Invalid image dimensions: ' . $ImageCreateFunction . '(' . $x_size . ', ' . $y_size . ')');

                                                              Line exceeds 120 characters; contains 169 characters
                                                              Open

                                                                              $newcolor = phpthumb_functions::ImageColorAllocateAlphaSafe($dst_im, round($RealPixel['red'] * (1 - $overlaypct)) + ($OverlayPixel['red'] * $overlaypct),

                                                              Line exceeds 120 characters; contains 186 characters
                                                              Open

                                                                          $rawData  = phpthumb_functions::URLreadFsock(@$parsed_url['host'], @$parsed_url['path'] . '?' . @$parsed_url['query'], $errstr, true, (@$parsed_url['port'] ?: 80), $timeout);

                                                              Multi-line function call not indented correctly; expected 20 spaces but found 76
                                                              Open

                                                                                                                                          round($RealPixel['green'] * (1 - $overlaypct)) + ($OverlayPixel['green'] * $overlaypct),

                                                              Multi-line function call not indented correctly; expected 16 spaces but found 76
                                                              Open

                                                                                                                                          0);

                                                              Class name "phpthumb_functions" is not in camel caps format
                                                              Open

                                                              class phpthumb_functions

                                                              Closing parenthesis of a multi-line function call must be on a line by itself
                                                              Open

                                                                                                                                          0);

                                                              Multi-line function call not indented correctly; expected 20 spaces but found 76
                                                              Open

                                                                                                                                          round($RealPixel['blue'] * (1 - $overlaypct)) + ($OverlayPixel['blue'] * $overlaypct), //$RealPixel['alpha']);

                                                              Opening parenthesis of a multi-line function call must be the last content on the line
                                                              Open

                                                                              $newcolor = phpthumb_functions::ImageColorAllocateAlphaSafe($dst_im, round($RealPixel['red'] * (1 - $overlaypct)) + ($OverlayPixel['red'] * $overlaypct),

                                                              The variable $get_defined_functions is not named in camelCase.
                                                              Open

                                                                  public static function user_function_exists($functionname)
                                                                  {
                                                                      if (function_exists('get_defined_functions')) {
                                                                          static $get_defined_functions = array();
                                                                          if (empty($get_defined_functions)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $versiontype_lookup is not named in camelCase.
                                                              Open

                                                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')
                                                                  {
                                                                      // If you specify the third optional operator argument, you can test for a particular relationship.
                                                                      // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                                                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $versiontype_lookup is not named in camelCase.
                                                              Open

                                                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')
                                                                  {
                                                                      // If you specify the third optional operator argument, you can test for a particular relationship.
                                                                      // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                                                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $B is not named in camelCase.
                                                              Open

                                                                  public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                                                                  {
                                                                      if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.3.2', '>=') && ($alpha !== false)) {
                                                                          return imagecolorallocatealpha($gdimg_hexcolorallocate, $R, $G, $B, (int)$alpha);
                                                                      } else {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parts_count is not named in camelCase.
                                                              Open

                                                                  public static function version_compare_replacement($version1, $version2, $operator = '')
                                                                  {
                                                                      if (function_exists('version_compare')) {
                                                                          // built into PHP v4.1.0+
                                                                          return version_compare($version1, $version2, $operator);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $image_type_to_mime_type is not named in camelCase.
                                                              Open

                                                                  public static function ImageTypeToMIMEtype($imagetype)
                                                                  {
                                                                      if (function_exists('image_type_to_mime_type') && ($imagetype >= 1) && ($imagetype <= 16)) {
                                                                          // PHP v4.3.0+
                                                                          return image_type_to_mime_type($imagetype);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $R is not named in camelCase.
                                                              Open

                                                                  public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                                                                  {
                                                                      if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.3.2', '>=') && ($alpha !== false)) {
                                                                          return imagecolorallocatealpha($gdimg_hexcolorallocate, $R, $G, $B, (int)$alpha);
                                                                      } else {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $get_defined_functions is not named in camelCase.
                                                              Open

                                                                  public static function builtin_function_exists($functionname)
                                                                  {
                                                                      if (function_exists('get_defined_functions')) {
                                                                          static $get_defined_functions = array();
                                                                          if (empty($get_defined_functions)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parts_count is not named in camelCase.
                                                              Open

                                                                  public static function version_compare_replacement($version1, $version2, $operator = '')
                                                                  {
                                                                      if (function_exists('version_compare')) {
                                                                          // built into PHP v4.1.0+
                                                                          return version_compare($version1, $version2, $operator);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $phpinfo_array is not named in camelCase.
                                                              Open

                                                                  public static function exif_info()
                                                                  {
                                                                      static $exif_info = array();
                                                                      if (empty($exif_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $HexColorString is not named in camelCase.
                                                              Open

                                                                  public static function IsHexColor($HexColorString)
                                                                  {
                                                                      return preg_match('#^[0-9A-F]{6}$#i', $HexColorString);
                                                                  }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $R is not named in camelCase.
                                                              Open

                                                                  public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                                                                  {
                                                                      if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.3.2', '>=') && ($alpha !== false)) {
                                                                          return imagecolorallocatealpha($gdimg_hexcolorallocate, $R, $G, $B, (int)$alpha);
                                                                      } else {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $B is not named in camelCase.
                                                              Open

                                                                  public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                                                                  {
                                                                      if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.3.2', '>=') && ($alpha !== false)) {
                                                                          return imagecolorallocatealpha($gdimg_hexcolorallocate, $R, $G, $B, (int)$alpha);
                                                                      } else {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $get_defined_functions is not named in camelCase.
                                                              Open

                                                                  public static function user_function_exists($functionname)
                                                                  {
                                                                      if (function_exists('get_defined_functions')) {
                                                                          static $get_defined_functions = array();
                                                                          if (empty($get_defined_functions)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $versiontype_lookup is not named in camelCase.
                                                              Open

                                                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')
                                                                  {
                                                                      // If you specify the third optional operator argument, you can test for a particular relationship.
                                                                      // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                                                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $versiontype_lookup is not named in camelCase.
                                                              Open

                                                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')
                                                                  {
                                                                      // If you specify the third optional operator argument, you can test for a particular relationship.
                                                                      // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                                                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $image_type_to_mime_type is not named in camelCase.
                                                              Open

                                                                  public static function ImageTypeToMIMEtype($imagetype)
                                                                  {
                                                                      if (function_exists('image_type_to_mime_type') && ($imagetype >= 1) && ($imagetype <= 16)) {
                                                                          // PHP v4.3.0+
                                                                          return image_type_to_mime_type($imagetype);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $get_defined_functions is not named in camelCase.
                                                              Open

                                                                  public static function builtin_function_exists($functionname)
                                                                  {
                                                                      if (function_exists('get_defined_functions')) {
                                                                          static $get_defined_functions = array();
                                                                          if (empty($get_defined_functions)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gdimg_hexcolorallocate is not named in camelCase.
                                                              Open

                                                                  public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                                                                  {
                                                                      if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.3.2', '>=') && ($alpha !== false)) {
                                                                          return imagecolorallocatealpha($gdimg_hexcolorallocate, $R, $G, $B, (int)$alpha);
                                                                      } else {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $get_defined_functions is not named in camelCase.
                                                              Open

                                                                  public static function builtin_function_exists($functionname)
                                                                  {
                                                                      if (function_exists('get_defined_functions')) {
                                                                          static $get_defined_functions = array();
                                                                          if (empty($get_defined_functions)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $versiontype_lookup is not named in camelCase.
                                                              Open

                                                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')
                                                                  {
                                                                      // If you specify the third optional operator argument, you can test for a particular relationship.
                                                                      // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                                                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $versiontype_lookup is not named in camelCase.
                                                              Open

                                                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')
                                                                  {
                                                                      // If you specify the third optional operator argument, you can test for a particular relationship.
                                                                      // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                                                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $versiontype_lookup is not named in camelCase.
                                                              Open

                                                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')
                                                                  {
                                                                      // If you specify the third optional operator argument, you can test for a particular relationship.
                                                                      // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                                                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $phpinfo_array is not named in camelCase.
                                                              Open

                                                                  public static function phpinfo_array()
                                                                  {
                                                                      static $phpinfo_array = array();
                                                                      if (empty($phpinfo_array)) {
                                                                          ob_start();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $exif_info is not named in camelCase.
                                                              Open

                                                                  public static function exif_info()
                                                                  {
                                                                      static $exif_info = array();
                                                                      if (empty($exif_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $phpinfo_array is not named in camelCase.
                                                              Open

                                                                  public static function exif_info()
                                                                  {
                                                                      static $exif_info = array();
                                                                      if (empty($exif_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $y_size is not named in camelCase.
                                                              Open

                                                                  public static function ImageCreateFunction($x_size, $y_size)
                                                                  {
                                                                      $ImageCreateFunction = 'ImageCreate';
                                                                      if (phpthumb_functions::gd_version() >= 2.0) {
                                                                          $ImageCreateFunction = 'ImageCreateTrueColor';
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $exif_info is not named in camelCase.
                                                              Open

                                                                  public static function exif_info()
                                                                  {
                                                                      static $exif_info = array();
                                                                      if (empty($exif_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $exif_info is not named in camelCase.
                                                              Open

                                                                  public static function exif_info()
                                                                  {
                                                                      static $exif_info = array();
                                                                      if (empty($exif_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $G is not named in camelCase.
                                                              Open

                                                                  public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                                                                  {
                                                                      if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.3.2', '>=') && ($alpha !== false)) {
                                                                          return imagecolorallocatealpha($gdimg_hexcolorallocate, $R, $G, $B, (int)$alpha);
                                                                      } else {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $HexColorString is not named in camelCase.
                                                              Open

                                                                  public static function ImageHexColorAllocate(
                                                                      &$gdimg_hexcolorallocate,
                                                                      $HexColorString,
                                                                      $dieOnInvalid = false,
                                                                      $alpha = false
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gdimg_hexcolorallocate is not named in camelCase.
                                                              Open

                                                                  public static function ImageHexColorAllocate(
                                                                      &$gdimg_hexcolorallocate,
                                                                      $HexColorString,
                                                                      $dieOnInvalid = false,
                                                                      $alpha = false
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $OriginalPixel is not named in camelCase.
                                                              Open

                                                                  public static function GrayscalePixel($OriginalPixel)
                                                                  {
                                                                      $gray = phpthumb_functions::GrayscaleValue($OriginalPixel['red'], $OriginalPixel['green'], $OriginalPixel['blue']);
                                                              
                                                                      return array('red' => $gray, 'green' => $gray, 'blue' => $gray);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_img is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_y is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_x is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_img is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $HexColorString is not named in camelCase.
                                                              Open

                                                                  public static function ImageHexColorAllocate(
                                                                      &$gdimg_hexcolorallocate,
                                                                      $HexColorString,
                                                                      $dieOnInvalid = false,
                                                                      $alpha = false
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $R is not named in camelCase.
                                                              Open

                                                                  public static function ImageHexColorAllocate(
                                                                      &$gdimg_hexcolorallocate,
                                                                      $HexColorString,
                                                                      $dieOnInvalid = false,
                                                                      $alpha = false
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $HexColorString is not named in camelCase.
                                                              Open

                                                                  public static function ImageHexColorAllocate(
                                                                      &$gdimg_hexcolorallocate,
                                                                      $HexColorString,
                                                                      $dieOnInvalid = false,
                                                                      $alpha = false
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gdimg_hexcolorallocate is not named in camelCase.
                                                              Open

                                                                  public static function ImageHexColorAllocate(
                                                                      &$gdimg_hexcolorallocate,
                                                                      $HexColorString,
                                                                      $dieOnInvalid = false,
                                                                      $alpha = false
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $allow_reduce is not named in camelCase.
                                                              Open

                                                                  public static function ScaleToFitInBox(
                                                                      $width,
                                                                      $height,
                                                                      $maxwidth = null,
                                                                      $maxheight = null,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $ImageCreateFunction is not named in camelCase.
                                                              Open

                                                                  public static function ImageCreateFunction($x_size, $y_size)
                                                                  {
                                                                      $ImageCreateFunction = 'ImageCreate';
                                                                      if (phpthumb_functions::gd_version() >= 2.0) {
                                                                          $ImageCreateFunction = 'ImageCreateTrueColor';
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $x_size is not named in camelCase.
                                                              Open

                                                                  public static function ImageCreateFunction($x_size, $y_size)
                                                                  {
                                                                      $ImageCreateFunction = 'ImageCreate';
                                                                      if (phpthumb_functions::gd_version() >= 2.0) {
                                                                          $ImageCreateFunction = 'ImageCreateTrueColor';
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $HexColorString is not named in camelCase.
                                                              Open

                                                                  public static function ImageHexColorAllocate(
                                                                      &$gdimg_hexcolorallocate,
                                                                      $HexColorString,
                                                                      $dieOnInvalid = false,
                                                                      $alpha = false
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_w is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $x_size is not named in camelCase.
                                                              Open

                                                                  public static function ImageCreateFunction($x_size, $y_size)
                                                                  {
                                                                      $ImageCreateFunction = 'ImageCreate';
                                                                      if (phpthumb_functions::gd_version() >= 2.0) {
                                                                          $ImageCreateFunction = 'ImageCreateTrueColor';
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $B is not named in camelCase.
                                                              Open

                                                                  public static function ImageHexColorAllocate(
                                                                      &$gdimg_hexcolorallocate,
                                                                      $HexColorString,
                                                                      $dieOnInvalid = false,
                                                                      $alpha = false
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $scale_x is not named in camelCase.
                                                              Open

                                                                  public static function ScaleToFitInBox(
                                                                      $width,
                                                                      $height,
                                                                      $maxwidth = null,
                                                                      $maxheight = null,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $dst_h is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_x is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $ImageCreateFunction is not named in camelCase.
                                                              Open

                                                                  public static function ImageCreateFunction($x_size, $y_size)
                                                                  {
                                                                      $ImageCreateFunction = 'ImageCreate';
                                                                      if (phpthumb_functions::gd_version() >= 2.0) {
                                                                          $ImageCreateFunction = 'ImageCreateTrueColor';
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $versiontype_lookup is not named in camelCase.
                                                              Open

                                                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')
                                                                  {
                                                                      // If you specify the third optional operator argument, you can test for a particular relationship.
                                                                      // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                                                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $phpinfo_array is not named in camelCase.
                                                              Open

                                                                  public static function phpinfo_array()
                                                                  {
                                                                      static $phpinfo_array = array();
                                                                      if (empty($phpinfo_array)) {
                                                                          ob_start();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $exif_info is not named in camelCase.
                                                              Open

                                                                  public static function exif_info()
                                                                  {
                                                                      static $exif_info = array();
                                                                      if (empty($exif_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gdimg_hexcolorallocate is not named in camelCase.
                                                              Open

                                                                  public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                                                                  {
                                                                      if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.3.2', '>=') && ($alpha !== false)) {
                                                                          return imagecolorallocatealpha($gdimg_hexcolorallocate, $R, $G, $B, (int)$alpha);
                                                                      } else {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $versiontype_lookup is not named in camelCase.
                                                              Open

                                                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')
                                                                  {
                                                                      // If you specify the third optional operator argument, you can test for a particular relationship.
                                                                      // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                                                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $versiontype_lookup is not named in camelCase.
                                                              Open

                                                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')
                                                                  {
                                                                      // If you specify the third optional operator argument, you can test for a particular relationship.
                                                                      // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                                                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $versiontype_lookup is not named in camelCase.
                                                              Open

                                                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')
                                                                  {
                                                                      // If you specify the third optional operator argument, you can test for a particular relationship.
                                                                      // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                                                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $phpinfo_array is not named in camelCase.
                                                              Open

                                                                  public static function phpinfo_array()
                                                                  {
                                                                      static $phpinfo_array = array();
                                                                      if (empty($phpinfo_array)) {
                                                                          ob_start();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $exif_info is not named in camelCase.
                                                              Open

                                                                  public static function exif_info()
                                                                  {
                                                                      static $exif_info = array();
                                                                      if (empty($exif_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $B is not named in camelCase.
                                                              Open

                                                                  public static function ImageHexColorAllocate(
                                                                      &$gdimg_hexcolorallocate,
                                                                      $HexColorString,
                                                                      $dieOnInvalid = false,
                                                                      $alpha = false
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_y is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_img is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_w is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $dst_im is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $OriginalPixel is not named in camelCase.
                                                              Open

                                                                  public static function GrayscalePixel($OriginalPixel)
                                                                  {
                                                                      $gray = phpthumb_functions::GrayscaleValue($OriginalPixel['red'], $OriginalPixel['green'], $OriginalPixel['blue']);
                                                              
                                                                      return array('red' => $gray, 'green' => $gray, 'blue' => $gray);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $scale_x is not named in camelCase.
                                                              Open

                                                                  public static function ScaleToFitInBox(
                                                                      $width,
                                                                      $height,
                                                                      $maxwidth = null,
                                                                      $maxheight = null,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $dst_w is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_img is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_img is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_x is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $y_size is not named in camelCase.
                                                              Open

                                                                  public static function ImageCreateFunction($x_size, $y_size)
                                                                  {
                                                                      $ImageCreateFunction = 'ImageCreate';
                                                                      if (phpthumb_functions::gd_version() >= 2.0) {
                                                                          $ImageCreateFunction = 'ImageCreateTrueColor';
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_h is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $dst_x is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_x is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $scale_y is not named in camelCase.
                                                              Open

                                                                  public static function ScaleToFitInBox(
                                                                      $width,
                                                                      $height,
                                                                      $maxwidth = null,
                                                                      $maxheight = null,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $allow_enlarge is not named in camelCase.
                                                              Open

                                                                  public static function ScaleToFitInBox(
                                                                      $width,
                                                                      $height,
                                                                      $maxwidth = null,
                                                                      $maxheight = null,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $dst_w is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_img is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_img is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_img is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $RealPixel is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $get_defined_functions is not named in camelCase.
                                                              Open

                                                                  public static function user_function_exists($functionname)
                                                                  {
                                                                      if (function_exists('get_defined_functions')) {
                                                                          static $get_defined_functions = array();
                                                                          if (empty($get_defined_functions)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $versiontype_lookup is not named in camelCase.
                                                              Open

                                                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')
                                                                  {
                                                                      // If you specify the third optional operator argument, you can test for a particular relationship.
                                                                      // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                                                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $opacity_pct is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gdimg_hexcolorallocate is not named in camelCase.
                                                              Open

                                                                  public static function ImageHexColorAllocate(
                                                                      &$gdimg_hexcolorallocate,
                                                                      $HexColorString,
                                                                      $dieOnInvalid = false,
                                                                      $alpha = false
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $G is not named in camelCase.
                                                              Open

                                                                  public static function ImageHexColorAllocate(
                                                                      &$gdimg_hexcolorallocate,
                                                                      $HexColorString,
                                                                      $dieOnInvalid = false,
                                                                      $alpha = false
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $scale_x is not named in camelCase.
                                                              Open

                                                                  public static function ScaleToFitInBox(
                                                                      $width,
                                                                      $height,
                                                                      $maxwidth = null,
                                                                      $maxheight = null,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $x_size is not named in camelCase.
                                                              Open

                                                                  public static function ImageCreateFunction($x_size, $y_size)
                                                                  {
                                                                      $ImageCreateFunction = 'ImageCreate';
                                                                      if (phpthumb_functions::gd_version() >= 2.0) {
                                                                          $ImageCreateFunction = 'ImageCreateTrueColor';
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $ImageCreateFunction is not named in camelCase.
                                                              Open

                                                                  public static function ImageCreateFunction($x_size, $y_size)
                                                                  {
                                                                      $ImageCreateFunction = 'ImageCreate';
                                                                      if (phpthumb_functions::gd_version() >= 2.0) {
                                                                          $ImageCreateFunction = 'ImageCreateTrueColor';
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_y is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $versiontype_lookup is not named in camelCase.
                                                              Open

                                                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')
                                                                  {
                                                                      // If you specify the third optional operator argument, you can test for a particular relationship.
                                                                      // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                                                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $versiontype_lookup is not named in camelCase.
                                                              Open

                                                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')
                                                                  {
                                                                      // If you specify the third optional operator argument, you can test for a particular relationship.
                                                                      // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                                                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $versiontype_lookup is not named in camelCase.
                                                              Open

                                                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')
                                                                  {
                                                                      // If you specify the third optional operator argument, you can test for a particular relationship.
                                                                      // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                                                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $HexColorString is not named in camelCase.
                                                              Open

                                                                  public static function ImageHexColorAllocate(
                                                                      &$gdimg_hexcolorallocate,
                                                                      $HexColorString,
                                                                      $dieOnInvalid = false,
                                                                      $alpha = false
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $G is not named in camelCase.
                                                              Open

                                                                  public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                                                                  {
                                                                      if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.3.2', '>=') && ($alpha !== false)) {
                                                                          return imagecolorallocatealpha($gdimg_hexcolorallocate, $R, $G, $B, (int)$alpha);
                                                                      } else {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $dst_x is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $G is not named in camelCase.
                                                              Open

                                                                  public static function ImageHexColorAllocate(
                                                                      &$gdimg_hexcolorallocate,
                                                                      $HexColorString,
                                                                      $dieOnInvalid = false,
                                                                      $alpha = false
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $dst_y is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_img is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $dst_y is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_img is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $dst_img is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $ImageCreateFunction is not named in camelCase.
                                                              Open

                                                                  public static function ImageCreateFunction($x_size, $y_size)
                                                                  {
                                                                      $ImageCreateFunction = 'ImageCreate';
                                                                      if (phpthumb_functions::gd_version() >= 2.0) {
                                                                          $ImageCreateFunction = 'ImageCreateTrueColor';
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $ImageCreateFunction is not named in camelCase.
                                                              Open

                                                                  public static function ImageCreateFunction($x_size, $y_size)
                                                                  {
                                                                      $ImageCreateFunction = 'ImageCreate';
                                                                      if (phpthumb_functions::gd_version() >= 2.0) {
                                                                          $ImageCreateFunction = 'ImageCreateTrueColor';
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $y_size is not named in camelCase.
                                                              Open

                                                                  public static function ImageCreateFunction($x_size, $y_size)
                                                                  {
                                                                      $ImageCreateFunction = 'ImageCreate';
                                                                      if (phpthumb_functions::gd_version() >= 2.0) {
                                                                          $ImageCreateFunction = 'ImageCreateTrueColor';
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $R is not named in camelCase.
                                                              Open

                                                                  public static function ImageHexColorAllocate(
                                                                      &$gdimg_hexcolorallocate,
                                                                      $HexColorString,
                                                                      $dieOnInvalid = false,
                                                                      $alpha = false
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $OriginalPixel is not named in camelCase.
                                                              Open

                                                                  public static function GrayscalePixel($OriginalPixel)
                                                                  {
                                                                      $gray = phpthumb_functions::GrayscaleValue($OriginalPixel['red'], $OriginalPixel['green'], $OriginalPixel['blue']);
                                                              
                                                                      return array('red' => $gray, 'green' => $gray, 'blue' => $gray);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $scale_y is not named in camelCase.
                                                              Open

                                                                  public static function ScaleToFitInBox(
                                                                      $width,
                                                                      $height,
                                                                      $maxwidth = null,
                                                                      $maxheight = null,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $scale_y is not named in camelCase.
                                                              Open

                                                                  public static function ScaleToFitInBox(
                                                                      $width,
                                                                      $height,
                                                                      $maxwidth = null,
                                                                      $maxheight = null,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_h is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $dst_h is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_img is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_img is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_img is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_y is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $ImageCreateFunction is not named in camelCase.
                                                              Open

                                                                  public static function ImageCreateFunction($x_size, $y_size)
                                                                  {
                                                                      $ImageCreateFunction = 'ImageCreate';
                                                                      if (phpthumb_functions::gd_version() >= 2.0) {
                                                                          $ImageCreateFunction = 'ImageCreateTrueColor';
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $RealPixel is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $dst_x is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  public static function gd_version($fullstring = false)
                                                                  {
                                                                      static $cache_gd_version = array();
                                                                      if (empty($cache_gd_version)) {
                                                                          $gd_info = gd_info();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $cache_gd_version is not named in camelCase.
                                                              Open

                                                                  public static function gd_version($fullstring = false)
                                                                  {
                                                                      static $cache_gd_version = array();
                                                                      if (empty($cache_gd_version)) {
                                                                          $gd_info = gd_info();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $arg_list is not named in camelCase.
                                                              Open

                                                                  public static function nonempty_min()
                                                                  {
                                                                      $arg_list   = func_get_args();
                                                                      $acceptable = array();
                                                                      foreach ($arg_list as $arg) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $old_height is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_height is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $old_aspect_ratio is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  public static function gd_is_bundled()
                                                                  {
                                                                      static $isbundled = null;
                                                                      if (is_null($isbundled)) {
                                                                          $gd_info   = gd_info();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $Data_body is not named in camelCase.
                                                              Open

                                                                  public static function URLreadFsock($host, $file, &$errstr, $successonly = true, $port = 80, $timeout = 10)
                                                                  {
                                                                      if (!function_exists('fsockopen') || phpthumb_functions::FunctionIsDisabled('fsockopen')) {
                                                                          $errstr = 'fsockopen() unavailable';
                                                              
                                                              
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $AllowedExecFunctions is not named in camelCase.
                                                              Open

                                                                  public static function SafeExec($command)
                                                                  {
                                                                      static $AllowedExecFunctions = array();
                                                                      if (empty($AllowedExecFunctions)) {
                                                                          $AllowedExecFunctions = array('shell_exec' => true, 'passthru' => true, 'system' => true, 'exec' => true);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $AllowedExecFunctions is not named in camelCase.
                                                              Open

                                                                  public static function SafeExec($command)
                                                                  {
                                                                      static $AllowedExecFunctions = array();
                                                                      if (empty($AllowedExecFunctions)) {
                                                                          $AllowedExecFunctions = array('shell_exec' => true, 'passthru' => true, 'system' => true, 'exec' => true);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $header_newlocation is not named in camelCase.
                                                              Open

                                                                  public static function URLreadFsock($host, $file, &$errstr, $successonly = true, $port = 80, $timeout = 10)
                                                                  {
                                                                      if (!function_exists('fsockopen') || phpthumb_functions::FunctionIsDisabled('fsockopen')) {
                                                                          $errstr = 'fsockopen() unavailable';
                                                              
                                                              
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $header_newlocation is not named in camelCase.
                                                              Open

                                                                  public static function URLreadFsock($host, $file, &$errstr, $successonly = true, $port = 80, $timeout = 10)
                                                                  {
                                                                      if (!function_exists('fsockopen') || phpthumb_functions::FunctionIsDisabled('fsockopen')) {
                                                                          $errstr = 'fsockopen() unavailable';
                                                              
                                                              
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $OverlayPixel is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $RealPixel is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $OverlayPixel is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_height is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $disable_functions_local is not named in camelCase.
                                                              Open

                                                                  public static function FunctionIsDisabled($function)
                                                                  {
                                                                      static $DisabledFunctions = null;
                                                                      if (is_null($DisabledFunctions)) {
                                                                          $disable_functions_local  = explode(',', strtolower(@ini_get('disable_functions')));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $OverlayPixel is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $RealPixel is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $dst_im is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_aspect_ratio is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_width is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $AllowedExecFunctions is not named in camelCase.
                                                              Open

                                                                  public static function SafeExec($command)
                                                                  {
                                                                      static $AllowedExecFunctions = array();
                                                                      if (empty($AllowedExecFunctions)) {
                                                                          $AllowedExecFunctions = array('shell_exec' => true, 'passthru' => true, 'system' => true, 'exec' => true);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $cache_gd_version is not named in camelCase.
                                                              Open

                                                                  public static function gd_version($fullstring = false)
                                                                  {
                                                                      static $cache_gd_version = array();
                                                                      if (empty($cache_gd_version)) {
                                                                          $gd_info = gd_info();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $cache_gd_version is not named in camelCase.
                                                              Open

                                                                  public static function gd_version($fullstring = false)
                                                                  {
                                                                      static $cache_gd_version = array();
                                                                      if (empty($cache_gd_version)) {
                                                                          $gd_info = gd_info();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_width is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_height is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $src_im is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $dst_y is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_width is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $old_aspect_ratio is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_aspect_ratio is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $old_aspect_ratio is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $DisabledFunctions is not named in camelCase.
                                                              Open

                                                                  public static function FunctionIsDisabled($function)
                                                                  {
                                                                      static $DisabledFunctions = null;
                                                                      if (is_null($DisabledFunctions)) {
                                                                          $disable_functions_local  = explode(',', strtolower(@ini_get('disable_functions')));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $disable_functions_local is not named in camelCase.
                                                              Open

                                                                  public static function FunctionIsDisabled($function)
                                                                  {
                                                                      static $DisabledFunctions = null;
                                                                      if (is_null($DisabledFunctions)) {
                                                                          $disable_functions_local  = explode(',', strtolower(@ini_get('disable_functions')));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  public static function gd_version($fullstring = false)
                                                                  {
                                                                      static $cache_gd_version = array();
                                                                      if (empty($cache_gd_version)) {
                                                                          $gd_info = gd_info();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  public static function gd_version($fullstring = false)
                                                                  {
                                                                      static $cache_gd_version = array();
                                                                      if (empty($cache_gd_version)) {
                                                                          $gd_info = gd_info();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $old_width is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_width is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_width is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_height is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  public static function gd_is_bundled()
                                                                  {
                                                                      static $isbundled = null;
                                                                      if (is_null($isbundled)) {
                                                                          $gd_info   = gd_info();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  public static function gd_version($fullstring = false)
                                                                  {
                                                                      static $cache_gd_version = array();
                                                                      if (empty($cache_gd_version)) {
                                                                          $gd_info = gd_info();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $Data_header is not named in camelCase.
                                                              Open

                                                                  public static function URLreadFsock($host, $file, &$errstr, $successonly = true, $port = 80, $timeout = 10)
                                                                  {
                                                                      if (!function_exists('fsockopen') || phpthumb_functions::FunctionIsDisabled('fsockopen')) {
                                                                          $errstr = 'fsockopen() unavailable';
                                                              
                                                              
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_height is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $DisabledFunctions is not named in camelCase.
                                                              Open

                                                                  public static function FunctionIsDisabled($function)
                                                                  {
                                                                      static $DisabledFunctions = null;
                                                                      if (is_null($DisabledFunctions)) {
                                                                          $disable_functions_local  = explode(',', strtolower(@ini_get('disable_functions')));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $DisabledFunctions is not named in camelCase.
                                                              Open

                                                                  public static function FunctionIsDisabled($function)
                                                                  {
                                                                      static $DisabledFunctions = null;
                                                                      if (is_null($DisabledFunctions)) {
                                                                          $disable_functions_local  = explode(',', strtolower(@ini_get('disable_functions')));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $OverlayPixel is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_height is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $old_aspect_ratio is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $disable_functions_global is not named in camelCase.
                                                              Open

                                                                  public static function FunctionIsDisabled($function)
                                                                  {
                                                                      static $DisabledFunctions = null;
                                                                      if (is_null($DisabledFunctions)) {
                                                                          $disable_functions_local  = explode(',', strtolower(@ini_get('disable_functions')));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $is_allowed is not named in camelCase.
                                                              Open

                                                                  public static function SafeExec($command)
                                                                  {
                                                                      static $AllowedExecFunctions = array();
                                                                      if (empty($AllowedExecFunctions)) {
                                                                          $AllowedExecFunctions = array('shell_exec' => true, 'passthru' => true, 'system' => true, 'exec' => true);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $arg_list is not named in camelCase.
                                                              Open

                                                                  public static function OneOfThese()
                                                                  {
                                                                      // return the first useful (non-empty/non-zero/non-false) value from those passed
                                                                      $arg_list = func_get_args();
                                                                      foreach ($arg_list as $key => $value) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $old_aspect_ratio is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $old_aspect_ratio is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_width is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $DisabledFunctions is not named in camelCase.
                                                              Open

                                                                  public static function FunctionIsDisabled($function)
                                                                  {
                                                                      static $DisabledFunctions = null;
                                                                      if (is_null($DisabledFunctions)) {
                                                                          $disable_functions_local  = explode(',', strtolower(@ini_get('disable_functions')));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $AllowedExecFunctions is not named in camelCase.
                                                              Open

                                                                  public static function SafeExec($command)
                                                                  {
                                                                      static $AllowedExecFunctions = array();
                                                                      if (empty($AllowedExecFunctions)) {
                                                                          $AllowedExecFunctions = array('shell_exec' => true, 'passthru' => true, 'system' => true, 'exec' => true);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $Data_body is not named in camelCase.
                                                              Open

                                                                  public static function URLreadFsock($host, $file, &$errstr, $successonly = true, $port = 80, $timeout = 10)
                                                                  {
                                                                      if (!function_exists('fsockopen') || phpthumb_functions::FunctionIsDisabled('fsockopen')) {
                                                                          $errstr = 'fsockopen() unavailable';
                                                              
                                                              
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $header_newlocation is not named in camelCase.
                                                              Open

                                                                  public static function URLreadFsock($host, $file, &$errstr, $successonly = true, $port = 80, $timeout = 10)
                                                                  {
                                                                      if (!function_exists('fsockopen') || phpthumb_functions::FunctionIsDisabled('fsockopen')) {
                                                                          $errstr = 'fsockopen() unavailable';
                                                              
                                                              
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $OverlayPixel is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_aspect_ratio is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $disable_functions_global is not named in camelCase.
                                                              Open

                                                                  public static function FunctionIsDisabled($function)
                                                                  {
                                                                      static $DisabledFunctions = null;
                                                                      if (is_null($DisabledFunctions)) {
                                                                          $disable_functions_local  = explode(',', strtolower(@ini_get('disable_functions')));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $is_allowed is not named in camelCase.
                                                              Open

                                                                  public static function SafeExec($command)
                                                                  {
                                                                      static $AllowedExecFunctions = array();
                                                                      if (empty($AllowedExecFunctions)) {
                                                                          $AllowedExecFunctions = array('shell_exec' => true, 'passthru' => true, 'system' => true, 'exec' => true);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $cache_gd_version is not named in camelCase.
                                                              Open

                                                                  public static function gd_version($fullstring = false)
                                                                  {
                                                                      static $cache_gd_version = array();
                                                                      if (empty($cache_gd_version)) {
                                                                          $gd_info = gd_info();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $Data_header is not named in camelCase.
                                                              Open

                                                                  public static function URLreadFsock($host, $file, &$errstr, $successonly = true, $port = 80, $timeout = 10)
                                                                  {
                                                                      if (!function_exists('fsockopen') || phpthumb_functions::FunctionIsDisabled('fsockopen')) {
                                                                          $errstr = 'fsockopen() unavailable';
                                                              
                                                              
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_width is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $AllowedExecFunctions is not named in camelCase.
                                                              Open

                                                                  public static function SafeExec($command)
                                                                  {
                                                                      static $AllowedExecFunctions = array();
                                                                      if (empty($AllowedExecFunctions)) {
                                                                          $AllowedExecFunctions = array('shell_exec' => true, 'passthru' => true, 'system' => true, 'exec' => true);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  public static function gd_version($fullstring = false)
                                                                  {
                                                                      static $cache_gd_version = array();
                                                                      if (empty($cache_gd_version)) {
                                                                          $gd_info = gd_info();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_aspect_ratio is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $old_aspect_ratio is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_width is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_height is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $DisabledFunctions is not named in camelCase.
                                                              Open

                                                                  public static function FunctionIsDisabled($function)
                                                                  {
                                                                      static $DisabledFunctions = null;
                                                                      if (is_null($DisabledFunctions)) {
                                                                          $disable_functions_local  = explode(',', strtolower(@ini_get('disable_functions')));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $cache_gd_version is not named in camelCase.
                                                              Open

                                                                  public static function gd_version($fullstring = false)
                                                                  {
                                                                      static $cache_gd_version = array();
                                                                      if (empty($cache_gd_version)) {
                                                                          $gd_info = gd_info();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $arg_list is not named in camelCase.
                                                              Open

                                                                  public static function nonempty_min()
                                                                  {
                                                                      $arg_list   = func_get_args();
                                                                      $acceptable = array();
                                                                      foreach ($arg_list as $arg) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $dst_im is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $old_aspect_ratio is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $DisabledFunctions is not named in camelCase.
                                                              Open

                                                                  public static function FunctionIsDisabled($function)
                                                                  {
                                                                      static $DisabledFunctions = null;
                                                                      if (is_null($DisabledFunctions)) {
                                                                          $disable_functions_local  = explode(',', strtolower(@ini_get('disable_functions')));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $cache_gd_version is not named in camelCase.
                                                              Open

                                                                  public static function gd_version($fullstring = false)
                                                                  {
                                                                      static $cache_gd_version = array();
                                                                      if (empty($cache_gd_version)) {
                                                                          $gd_info = gd_info();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parse_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $TranslationMatrix is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $test_directory is not named in camelCase.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $test_directory is not named in camelCase.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $test_directory is not named in camelCase.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $new_height is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $arg_list is not named in camelCase.
                                                              Open

                                                                  public static function OneOfThese()
                                                                  {
                                                                      // return the first useful (non-empty/non-zero/non-false) value from those passed
                                                                      $arg_list = func_get_args();
                                                                      foreach ($arg_list as $key => $value) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parse_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $CleanQueries is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parse_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $directory_elements is not named in camelCase.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $cleaned_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parsed_url is not named in camelCase.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $BrokenURLfopenPHPversions is not named in camelCase.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $error_fopen is not named in camelCase.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $AllFiles is not named in camelCase.
                                                              Open

                                                                  public static function GetAllFilesInSubfolders($dirname)
                                                                  {
                                                                      $AllFiles = array();
                                                                      $dirname  = rtrim(realpath($dirname), '/\\');
                                                                      if ($dirhandle = @opendir($dirname)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parse_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $CleanQueries is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $open_basedir is not named in camelCase.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $AllFiles is not named in camelCase.
                                                              Open

                                                                  public static function GetAllFilesInSubfolders($dirname)
                                                                  {
                                                                      $AllFiles = array();
                                                                      $dirname  = rtrim(realpath($dirname), '/\\');
                                                                      if ($dirhandle = @opendir($dirname)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $AllFiles is not named in camelCase.
                                                              Open

                                                                  public static function GetAllFilesInSubfolders($dirname)
                                                                  {
                                                                      $AllFiles = array();
                                                                      $dirname  = rtrim(realpath($dirname), '/\\');
                                                                      if ($dirhandle = @opendir($dirname)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $header_newlocation is not named in camelCase.
                                                              Open

                                                                  public static function URLreadFsock($host, $file, &$errstr, $successonly = true, $port = 80, $timeout = 10)
                                                                  {
                                                                      if (!function_exists('fsockopen') || phpthumb_functions::FunctionIsDisabled('fsockopen')) {
                                                                          $errstr = 'fsockopen() unavailable';
                                                              
                                                              
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $TranslationMatrix is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $CleanQueries is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $TranslationMatrix is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parse_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parse_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $error_fopen is not named in camelCase.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $open_basedir is not named in camelCase.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $CleanPathElements is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parse_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $cleaned_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $directory_elements is not named in camelCase.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $directory_elements is not named in camelCase.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $cleaned_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parse_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $Data_body is not named in camelCase.
                                                              Open

                                                                  public static function URLreadFsock($host, $file, &$errstr, $successonly = true, $port = 80, $timeout = 10)
                                                                  {
                                                                      if (!function_exists('fsockopen') || phpthumb_functions::FunctionIsDisabled('fsockopen')) {
                                                                          $errstr = 'fsockopen() unavailable';
                                                              
                                                              
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $cleaned_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $CleanQueries is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $cleaned_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parsed_url is not named in camelCase.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $CleanPathElements is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $cleaned_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parse_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $test_directory is not named in camelCase.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $test_directory is not named in camelCase.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parse_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $CleanPathElements is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $error_fopen is not named in camelCase.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $error_fopen is not named in camelCase.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $open_basedir is not named in camelCase.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $AllFiles is not named in camelCase.
                                                              Open

                                                                  public static function GetAllFilesInSubfolders($dirname)
                                                                  {
                                                                      $AllFiles = array();
                                                                      $dirname  = rtrim(realpath($dirname), '/\\');
                                                                      if ($dirhandle = @opendir($dirname)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $CleanQueries is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $CleanQueries is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parse_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parsed_url is not named in camelCase.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parsed_url is not named in camelCase.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $open_basedir is not named in camelCase.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parse_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parse_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $cleaned_url is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $open_basedirs is not named in camelCase.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $test_directory is not named in camelCase.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $CleanPathElements is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parsed_url is not named in camelCase.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $BrokenURLfopenPHPversions is not named in camelCase.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $open_basedirs is not named in camelCase.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $AllFiles is not named in camelCase.
                                                              Open

                                                                  public static function GetAllFilesInSubfolders($dirname)
                                                                  {
                                                                      $AllFiles = array();
                                                                      $dirname  = rtrim(realpath($dirname), '/\\');
                                                                      if ($dirhandle = @opendir($dirname)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $fp_tempfile is not named in camelCase.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $preg_quote_array is not named in camelCase.
                                                              Open

                                                                  function preg_quote($string, $delimiter = '\\')
                                                                  {
                                                                      static $preg_quote_array = array();
                                                                      if (empty($preg_quote_array)) {
                                                                          $escapeables = '.\\+*?[^]$(){}=!<>|:';
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $TranslationMatrix is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $parsed_url is not named in camelCase.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $error_fopen is not named in camelCase.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $test_directory is not named in camelCase.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $AllFiles is not named in camelCase.
                                                              Open

                                                                  public static function GetAllFilesInSubfolders($dirname)
                                                                  {
                                                                      $AllFiles = array();
                                                                      $dirname  = rtrim(realpath($dirname), '/\\');
                                                                      if ($dirhandle = @opendir($dirname)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $phpinfo_array is not named in camelCase.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $strtr_preg_quote is not named in camelCase.
                                                              Open

                                                                  function preg_quote($string, $delimiter = '\\')
                                                                  {
                                                                      static $preg_quote_array = array();
                                                                      if (empty($preg_quote_array)) {
                                                                          $escapeables = '.\\+*?[^]$(){}=!<>|:';
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $CleanPathElements is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $directory_elements is not named in camelCase.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $test_directory is not named in camelCase.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $fp_tempfile is not named in camelCase.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $phpinfo_array is not named in camelCase.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $gd_info is not named in camelCase.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $fp_tempfile is not named in camelCase.
                                                              Open

                                                                  function gd_info()
                                                                  {
                                                                      static $gd_info = array();
                                                                      if (empty($gd_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 $strtr_preg_quote is not named in camelCase.
                                                              Open

                                                                  function preg_quote($string, $delimiter = '\\')
                                                                  {
                                                                      static $preg_quote_array = array();
                                                                      if (empty($preg_quote_array)) {
                                                                          $escapeables = '.\\+*?[^]$(){}=!<>|:';
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 phpinfo_array is not named in camelCase.
                                                              Open

                                                                  public static function phpinfo_array()
                                                                  {
                                                                      static $phpinfo_array = array();
                                                                      if (empty($phpinfo_array)) {
                                                                          ob_start();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 user_function_exists is not named in camelCase.
                                                              Open

                                                                  public static function user_function_exists($functionname)
                                                                  {
                                                                      if (function_exists('get_defined_functions')) {
                                                                          static $get_defined_functions = array();
                                                                          if (empty($get_defined_functions)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 HexCharDisplay is not named in camelCase.
                                                              Open

                                                                  public static function HexCharDisplay($string)
                                                                  {
                                                                      $len    = strlen($string);
                                                                      $output = '';
                                                                      for ($i = 0; $i < $len; $i++) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 ImageTypeToMIMEtype is not named in camelCase.
                                                              Open

                                                                  public static function ImageTypeToMIMEtype($imagetype)
                                                                  {
                                                                      if (function_exists('image_type_to_mime_type') && ($imagetype >= 1) && ($imagetype <= 16)) {
                                                                          // PHP v4.3.0+
                                                                          return image_type_to_mime_type($imagetype);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 escapeshellarg_replacement is not named in camelCase.
                                                              Open

                                                                  public static function escapeshellarg_replacement($arg)
                                                                  {
                                                                      if (function_exists('escapeshellarg') && !phpthumb_functions::FunctionIsDisabled('escapeshellarg')) {
                                                                          return escapeshellarg($arg);
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 ImageColorAllocateAlphaSafe is not named in camelCase.
                                                              Open

                                                                  public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                                                                  {
                                                                      if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.3.2', '>=') && ($alpha !== false)) {
                                                                          return imagecolorallocatealpha($gdimg_hexcolorallocate, $R, $G, $B, (int)$alpha);
                                                                      } else {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 IsHexColor is not named in camelCase.
                                                              Open

                                                                  public static function IsHexColor($HexColorString)
                                                                  {
                                                                      return preg_match('#^[0-9A-F]{6}$#i', $HexColorString);
                                                                  }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 TranslateWHbyAngle is not named in camelCase.
                                                              Open

                                                                  public static function TranslateWHbyAngle($width, $height, $angle)
                                                                  {
                                                                      if (($angle % 180) == 0) {
                                                                          return array($width, $height);
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 exif_info is not named in camelCase.
                                                              Open

                                                                  public static function exif_info()
                                                                  {
                                                                      static $exif_info = array();
                                                                      if (empty($exif_info)) {
                                                                          // based on code by johnschaefer at gmx dot de
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 builtin_function_exists is not named in camelCase.
                                                              Open

                                                                  public static function builtin_function_exists($functionname)
                                                                  {
                                                                      if (function_exists('get_defined_functions')) {
                                                                          static $get_defined_functions = array();
                                                                          if (empty($get_defined_functions)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 ImageHexColorAllocate is not named in camelCase.
                                                              Open

                                                                  public static function ImageHexColorAllocate(
                                                                      &$gdimg_hexcolorallocate,
                                                                      $HexColorString,
                                                                      $dieOnInvalid = false,
                                                                      $alpha = false
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 GrayscalePixelRGB is not named in camelCase.
                                                              Open

                                                                  public static function GrayscalePixelRGB($rgb)
                                                                  {
                                                                      $r = ($rgb >> 16) & 0xFF;
                                                                      $g = ($rgb >> 8) & 0xFF;
                                                                      $b = $rgb & 0xFF;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 version_compare_replacement_sub is not named in camelCase.
                                                              Open

                                                                  public static function version_compare_replacement_sub($version1, $version2, $operator = '')
                                                                  {
                                                                      // If you specify the third optional operator argument, you can test for a particular relationship.
                                                                      // The possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively.
                                                                      // Using this argument, the function will return 1 if the relationship is the one specified by the operator, 0 otherwise.
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 version_compare_replacement is not named in camelCase.
                                                              Open

                                                                  public static function version_compare_replacement($version1, $version2, $operator = '')
                                                                  {
                                                                      if (function_exists('version_compare')) {
                                                                          // built into PHP v4.1.0+
                                                                          return version_compare($version1, $version2, $operator);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 ImageCopyResampleBicubic is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyResampleBicubic(
                                                                      $dst_img,
                                                                      $src_img,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 ImageCreateFunction is not named in camelCase.
                                                              Open

                                                                  public static function ImageCreateFunction($x_size, $y_size)
                                                                  {
                                                                      $ImageCreateFunction = 'ImageCreate';
                                                                      if (phpthumb_functions::gd_version() >= 2.0) {
                                                                          $ImageCreateFunction = 'ImageCreateTrueColor';
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 GrayscalePixel is not named in camelCase.
                                                              Open

                                                                  public static function GrayscalePixel($OriginalPixel)
                                                                  {
                                                                      $gray = phpthumb_functions::GrayscaleValue($OriginalPixel['red'], $OriginalPixel['green'], $OriginalPixel['blue']);
                                                              
                                                                      return array('red' => $gray, 'green' => $gray, 'blue' => $gray);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 GetPixelColor is not named in camelCase.
                                                              Open

                                                                  public static function GetPixelColor(&$img, $x, $y)
                                                                  {
                                                                      if (!is_resource($img)) {
                                                                          return false;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 ImageCopyRespectAlpha is not named in camelCase.
                                                              Open

                                                                  public static function ImageCopyRespectAlpha(
                                                                      &$dst_im,
                                                                      &$src_im,
                                                                      $dst_x,
                                                                      $dst_y,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 HexColorXOR is not named in camelCase.
                                                              Open

                                                                  public static function HexColorXOR($hexcolor)
                                                                  {
                                                                      return strtoupper(str_pad(dechex(~hexdec($hexcolor) & 0xFFFFFF), 6, '0', STR_PAD_LEFT));
                                                                  }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 ScaleToFitInBox is not named in camelCase.
                                                              Open

                                                                  public static function ScaleToFitInBox(
                                                                      $width,
                                                                      $height,
                                                                      $maxwidth = null,
                                                                      $maxheight = null,
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 PixelColorDifferencePercent is not named in camelCase.
                                                              Open

                                                                  public static function PixelColorDifferencePercent($currentPixel, $targetPixel)
                                                                  {
                                                                      $diff = 0;
                                                                      foreach ($targetPixel as $channel => $currentvalue) {
                                                                          $diff = max($diff, (max($currentPixel[$channel], $targetPixel[$channel]) - min($currentPixel[$channel], $targetPixel[$channel])) / 255);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 GrayscaleValue is not named in camelCase.
                                                              Open

                                                                  public static function GrayscaleValue($r, $g, $b)
                                                                  {
                                                                      return round(($r * 0.30) + ($g * 0.59) + ($b * 0.11));
                                                                  }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 ApacheLookupURIarray is not named in camelCase.
                                                              Open

                                                                  public static function ApacheLookupURIarray($filename)
                                                                  {
                                                                      // apache_lookup_uri() only works when PHP is installed as an Apache module.
                                                                      if (php_sapi_name() == 'apache') {
                                                                          //$property_exists_exists = function_exists('property_exists');
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 FunctionIsDisabled is not named in camelCase.
                                                              Open

                                                                  public static function FunctionIsDisabled($function)
                                                                  {
                                                                      static $DisabledFunctions = null;
                                                                      if (is_null($DisabledFunctions)) {
                                                                          $disable_functions_local  = explode(',', strtolower(@ini_get('disable_functions')));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 gd_is_bundled is not named in camelCase.
                                                              Open

                                                                  public static function gd_is_bundled()
                                                                  {
                                                                      static $isbundled = null;
                                                                      if (is_null($isbundled)) {
                                                                          $gd_info   = gd_info();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 OneOfThese is not named in camelCase.
                                                              Open

                                                                  public static function OneOfThese()
                                                                  {
                                                                      // return the first useful (non-empty/non-zero/non-false) value from those passed
                                                                      $arg_list = func_get_args();
                                                                      foreach ($arg_list as $key => $value) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 filesize_remote is not named in camelCase.
                                                              Open

                                                                  public static function filesize_remote($remotefile, $timeout = 10)
                                                                  {
                                                                      $size = false;
                                                                      $url  = phpthumb_functions::ParseURLbetter($remotefile);
                                                                      if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 md5_file_safe is not named in camelCase.
                                                              Open

                                                                  public static function md5_file_safe($filename)
                                                                  {
                                                                      // md5_file() doesn't exist in PHP < 4.2.0
                                                                      if (function_exists('md5_file')) {
                                                                          return md5_file($filename);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 ProportionalResize is not named in camelCase.
                                                              Open

                                                                  public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
                                                                  {
                                                                      $old_aspect_ratio = $old_width / $old_height;
                                                                      if (($new_width === false) && ($new_height === false)) {
                                                                          return false;
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 SafeExec is not named in camelCase.
                                                              Open

                                                                  public static function SafeExec($command)
                                                                  {
                                                                      static $AllowedExecFunctions = array();
                                                                      if (empty($AllowedExecFunctions)) {
                                                                          $AllowedExecFunctions = array('shell_exec' => true, 'passthru' => true, 'system' => true, 'exec' => true);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 URLreadFsock is not named in camelCase.
                                                              Open

                                                                  public static function URLreadFsock($host, $file, &$errstr, $successonly = true, $port = 80, $timeout = 10)
                                                                  {
                                                                      if (!function_exists('fsockopen') || phpthumb_functions::FunctionIsDisabled('fsockopen')) {
                                                                          $errstr = 'fsockopen() unavailable';
                                                              
                                                              
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 filedate_remote is not named in camelCase.
                                                              Open

                                                                  public static function filedate_remote($remotefile, $timeout = 10)
                                                                  {
                                                                      $date = false;
                                                                      $url  = phpthumb_functions::ParseURLbetter($remotefile);
                                                                      if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 nonempty_min is not named in camelCase.
                                                              Open

                                                                  public static function nonempty_min()
                                                                  {
                                                                      $arg_list   = func_get_args();
                                                                      $acceptable = array();
                                                                      foreach ($arg_list as $arg) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 LittleEndian2String is not named in camelCase.
                                                              Open

                                                                  public static function LittleEndian2String($number, $minbytes = 1)
                                                                  {
                                                                      $intstring = '';
                                                                      while ($number > 0) {
                                                                          $intstring .= chr($number & 255);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 CaseInsensitiveInArray is not named in camelCase.
                                                              Open

                                                                  public static function CaseInsensitiveInArray($needle, $haystack)
                                                                  {
                                                                      $needle = strtolower($needle);
                                                                      foreach ($haystack as $key => $value) {
                                                                          if (is_array($value)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 EnsureDirectoryExists is not named in camelCase.
                                                              Open

                                                                  public static function EnsureDirectoryExists($dirname)
                                                                  {
                                                                      $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                                                                      $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                                                                      $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 gd_version is not named in camelCase.
                                                              Open

                                                                  public static function gd_version($fullstring = false)
                                                                  {
                                                                      static $cache_gd_version = array();
                                                                      if (empty($cache_gd_version)) {
                                                                          $gd_info = gd_info();
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 PasswordStrength is not named in camelCase.
                                                              Open

                                                                  public static function PasswordStrength($password)
                                                                  {
                                                                      $strength = 0;
                                                                      $strength += strlen(preg_replace('#[^a-z]#', '', $password)) * 0.5; // lowercase characters are weak
                                                                      $strength += strlen(preg_replace('#[^A-Z]#', '', $password)) * 0.8; // uppercase characters are somewhat better
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 SafeURLread is not named in camelCase.
                                                              Open

                                                                  public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
                                                                  {
                                                                      $error = '';
                                                              
                                                                      $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 GetAllFilesInSubfolders is not named in camelCase.
                                                              Open

                                                                  public static function GetAllFilesInSubfolders($dirname)
                                                                  {
                                                                      $AllFiles = array();
                                                                      $dirname  = rtrim(realpath($dirname), '/\\');
                                                                      if ($dirhandle = @opendir($dirname)) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 ParseURLbetter is not named in camelCase.
                                                              Open

                                                                  public static function ParseURLbetter($url)
                                                                  {
                                                                      $parsedURL = @parse_url($url);
                                                                      if (!@$parsedURL['port']) {
                                                                          switch (strtolower(@$parsedURL['scheme'])) {
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 SanitizeFilename is not named in camelCase.
                                                              Open

                                                                  public static function SanitizeFilename($filename)
                                                                  {
                                                                      $filename = preg_replace('/[^' . preg_quote(' !#$%^()+,-.;<>=@[]_{}') . 'a-zA-Z0-9]/', '_', $filename);
                                                                      if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.1.0', '>=')) {
                                                                          $filename = trim($filename, '.');
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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 CleanUpURLencoding is not named in camelCase.
                                                              Open

                                                                  public static function CleanUpURLencoding($url, $queryseperator = '&')
                                                                  {
                                                                      if (!preg_match('#^http#i', $url)) {
                                                                          return $url;
                                                                      }
                                                              Severity: Minor
                                                              Found in thumbs/phpthumb.functions.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