Code Duplication    Length = 6-6 lines in 4 locations

includes/libraries/Pdf/Tfpdf/tfpdf.class.php 4 locations

@@ 901-906 (lines=6) @@
898
                $this->ws = 0;
899
                $this->_out('0 Tw');
900
            }
901
            if ($this->unifontSubset) {
902
                $this->Cell($w, $h, mb_substr($s, $j, $i - $j, 'UTF-8'), $b, 2, $align, $fill);
903
            }
904
            else {
905
                $this->Cell($w, $h, substr($s, $j, $i - $j), $b, 2, $align, $fill);
906
            }
907
            $i++;
908
            $sep = -1;
909
            $j = $i;
@@ 939-944 (lines=6) @@
936
                    $this->ws = 0;
937
                    $this->_out('0 Tw');
938
                }
939
                if ($this->unifontSubset) {
940
                    $this->Cell($w, $h, mb_substr($s, $j, $i - $j, 'UTF-8'), $b, 2, $align, $fill);
941
                }
942
                else {
943
                    $this->Cell($w, $h, substr($s, $j, $i - $j), $b, 2, $align, $fill);
944
                }
945
            }
946
            else
947
            {
@@ 953-958 (lines=6) @@
950
                    $this->ws = ($ns > 1) ? ($wmax - $ls) / ($ns - 1) : 0;
951
                    $this->_out(sprintf('%.3F Tw', $this->ws * $this->k));
952
                }
953
                if ($this->unifontSubset) {
954
                    $this->Cell($w, $h, mb_substr($s, $j, $sep - $j, 'UTF-8'), $b, 2, $align, $fill);
955
                }
956
                else {
957
                    $this->Cell($w, $h, substr($s, $j, $sep - $j), $b, 2, $align, $fill);
958
                }
959
                $i = $sep + 1;
960
            }
961
            $sep = -1;
@@ 980-985 (lines=6) @@
977
    }
978
    if ($border && strpos($border, 'B') !== false)
979
        $b .= 'B';
980
    if ($this->unifontSubset) {
981
        $this->Cell($w, $h, mb_substr($s, $j, $i - $j, 'UTF-8'), $b, 2, $align, $fill);
982
    }
983
    else {
984
        $this->Cell($w, $h, substr($s, $j, $i - $j), $b, 2, $align, $fill);
985
    }
986
    $this->x = $this->lMargin;
987
}
988