Code Duplication    Length = 3-4 lines in 5 locations

thumbs/phpthumb.class.php 5 locations

@@ 4695-4698 (lines=4) @@
4692
            $DebugOutput[] = '$this->' . str_pad($varname, 37, ' ', STR_PAD_RIGHT) . ' = ' . $this->phpThumbDebugVarDump($value);
4693
        }
4694
        $DebugOutput[] = '';
4695
        foreach ($OtherVariableNames as $varname) {
4696
            $value         = $this->$varname;
4697
            $DebugOutput[] = '$this->' . str_pad($varname, 27, ' ', STR_PAD_RIGHT) . ' = ' . $this->phpThumbDebugVarDump($value);
4698
        }
4699
        $DebugOutput[] = 'strlen($this->rawImageData)        = ' . strlen(@$this->rawImageData);
4700
        $DebugOutput[] = 'strlen($this->exif_thumbnail_data) = ' . strlen(@$this->exif_thumbnail_data);
4701
        $DebugOutput[] = '';
@@ 4703-4706 (lines=4) @@
4700
        $DebugOutput[] = 'strlen($this->exif_thumbnail_data) = ' . strlen(@$this->exif_thumbnail_data);
4701
        $DebugOutput[] = '';
4702
4703
        foreach ($ParameterNames as $varname) {
4704
            $value         = $this->$varname;
4705
            $DebugOutput[] = '$this->' . str_pad($varname, 4, ' ', STR_PAD_RIGHT) . ' = ' . $this->phpThumbDebugVarDump($value);
4706
        }
4707
        $DebugOutput[] = '';
4708
4709
        foreach ($FunctionsExistance as $functionname) {
@@ 4720-4722 (lines=3) @@
4717
        $DebugOutput[] = '';
4718
4719
        $gd_info = gd_info();
4720
        foreach ($gd_info as $key => $value) {
4721
            $DebugOutput[] = 'gd_info.' . str_pad($key, 34, ' ', STR_PAD_RIGHT) . ' = ' . $this->phpThumbDebugVarDump($value);
4722
        }
4723
        $DebugOutput[] = '';
4724
4725
        $exif_info = phpthumb_functions::exif_info();
@@ 4726-4728 (lines=3) @@
4723
        $DebugOutput[] = '';
4724
4725
        $exif_info = phpthumb_functions::exif_info();
4726
        foreach ($exif_info as $key => $value) {
4727
            $DebugOutput[] = 'exif_info.' . str_pad($key, 26, ' ', STR_PAD_RIGHT) . ' = ' . $this->phpThumbDebugVarDump($value);
4728
        }
4729
        $DebugOutput[] = '';
4730
4731
        if ($ApacheLookupURIarray = phpthumb_functions::ApacheLookupURIarray(dirname(@$_SERVER['PHP_SELF']))) {
@@ 4732-4734 (lines=3) @@
4729
        $DebugOutput[] = '';
4730
4731
        if ($ApacheLookupURIarray = phpthumb_functions::ApacheLookupURIarray(dirname(@$_SERVER['PHP_SELF']))) {
4732
            foreach ($ApacheLookupURIarray as $key => $value) {
4733
                $DebugOutput[] = 'ApacheLookupURIarray.' . str_pad($key, 15, ' ', STR_PAD_RIGHT) . ' = ' . $this->phpThumbDebugVarDump($value);
4734
            }
4735
        } else {
4736
            $DebugOutput[] = 'ApacheLookupURIarray() -- FAILED';
4737
        }