Code Duplication    Length = 7-7 lines in 2 locations

thumbs/phpthumb.gif.php 2 locations

@@ 637-643 (lines=7) @@
634
        $this->m_nPixelRatio = ord(substr($lpData, 12, 1));
635
        $hdrLen              = 13;
636
637
        if ($this->m_bGlobalClr) {
638
            $this->m_colorTable = new CGIFCOLORTABLE();
639
            if (!$this->m_colorTable->load(substr($lpData, $hdrLen), $this->m_nTableSize)) {
640
                return false;
641
            }
642
            $hdrLen += 3 * $this->m_nTableSize;
643
        }
644
645
        return true;
646
    }
@@ 723-729 (lines=7) @@
720
        $this->m_nTableSize = 2 << ($b & 0x07);
721
        $hdrLen             = 9;
722
723
        if ($this->m_bLocalClr) {
724
            $this->m_colorTable = new CGIFCOLORTABLE();
725
            if (!$this->m_colorTable->load(substr($lpData, $hdrLen), $this->m_nTableSize)) {
726
                return false;
727
            }
728
            $hdrLen += 3 * $this->m_nTableSize;
729
        }
730
731
        return true;
732
    }