Code Duplication    Length = 7-7 lines in 2 locations

fpdf/gif.php 2 locations

@@ 493-499 (lines=7) @@
490
    $this->m_nPixelRatio = ord(substr($lpData, 12, 1));
491
    $hdrLen = 13;
492
493
    if($this->m_bGlobalClr) {
494
      $this->m_colorTable = new CGIFCOLORTABLE();
495
      if(!$this->m_colorTable->load(substr($lpData, $hdrLen), $this->m_nTableSize)) {
496
        return false;
497
      }
498
      $hdrLen += 3 * $this->m_nTableSize;
499
    }
500
501
    return true;
502
  }
@@ 564-570 (lines=7) @@
561
    $this->m_nTableSize = 2 << ($b & 0x07);
562
    $hdrLen = 9;
563
564
    if($this->m_bLocalClr) {
565
      $this->m_colorTable = new CGIFCOLORTABLE();
566
      if(!$this->m_colorTable->load(substr($lpData, $hdrLen), $this->m_nTableSize)) {
567
        return false;
568
      }
569
      $hdrLen += 3 * $this->m_nTableSize;
570
    }
571
572
    return true;
573
  }