Code Duplication    Length = 6-9 lines in 3 locations

fpdf/gif.php 3 locations

@@ 883-888 (lines=6) @@
880
          // PART OF IMAGE
881
          if($this->m_img->m_bTrans && (ord($data{$nPxl}) == $this->m_img->m_nTrans)) {
882
            // TRANSPARENT -> BACKGROUND
883
            if($bgColor == -1) {
884
              $bmp .= chr($this->m_gfh->m_nBgColor);
885
            }
886
            else {
887
              $bmp .= chr($bgColor);
888
            }
889
          }
890
          else {
891
            $bmp .= $data{$nPxl};
@@ 894-902 (lines=9) @@
891
            $bmp .= $data{$nPxl};
892
          }
893
        }
894
        else {
895
          // BACKGROUND
896
          if($bgColor == -1) {
897
            $bmp .= chr($this->m_gfh->m_nBgColor);
898
          }
899
          else {
900
            $bmp .= chr($bgColor);
901
          }
902
        }
903
      }
904
      $nPxl -= $this->m_gfh->m_nWidth << 1;
905
@@ 988-996 (lines=9) @@
985
          // PART OF IMAGE
986
          $bmp .= $data{$nPxl};
987
        }
988
        else {
989
          // BACKGROUND
990
          if($bgColor == -1) {
991
            $bmp .= chr($this->m_gfh->m_nBgColor);
992
          }
993
          else {
994
            $bmp .= chr($bgColor);
995
          }
996
        }
997
      }
998
    }
999
    $bmp = gzcompress($bmp, 9);