Code Duplication    Length = 6-6 lines in 4 locations

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

@@ 940-945 (lines=6) @@
937
                $this->ws = 0;
938
                $this->_out('0 Tw');
939
            }
940
            if ($this->unifontSubset) {
941
                $this->Cell($w, $h, mb_substr($s, $j, $i - $j, 'UTF-8'), $b, 2, $align, $fill);
942
            } else {
943
                $this->Cell($w, $h, substr($s, $j, $i - $j), $b, 2, $align, $fill);
944
            }
945
            $i++;
946
            $sep = -1;
947
            $j = $i;
948
            $l = 0;
@@ 978-983 (lines=6) @@
975
                    $this->ws = 0;
976
                    $this->_out('0 Tw');
977
                }
978
                if ($this->unifontSubset) {
979
                    $this->Cell($w, $h, mb_substr($s, $j, $i - $j, 'UTF-8'), $b, 2, $align, $fill);
980
                } else {
981
                    $this->Cell($w, $h, substr($s, $j, $i - $j), $b, 2, $align, $fill);
982
                }
983
            } else
984
            {
985
                if ($align == 'J')
986
                {
@@ 990-995 (lines=6) @@
987
                    $this->ws = ($ns > 1) ? ($wmax - $ls) / ($ns - 1) : 0;
988
                    $this->_out(sprintf('%.3F Tw', $this->ws * $this->k));
989
                }
990
                if ($this->unifontSubset) {
991
                    $this->Cell($w, $h, mb_substr($s, $j, $sep - $j, 'UTF-8'), $b, 2, $align, $fill);
992
                } else {
993
                    $this->Cell($w, $h, substr($s, $j, $sep - $j), $b, 2, $align, $fill);
994
                }
995
                $i = $sep + 1;
996
            }
997
            $sep = -1;
998
            $j = $i;
@@ 1018-1023 (lines=6) @@
1015
    if ($border && strpos($border, 'B') !== false) {
1016
            $b .= 'B';
1017
    }
1018
    if ($this->unifontSubset) {
1019
        $this->Cell($w, $h, mb_substr($s, $j, $i - $j, 'UTF-8'), $b, 2, $align, $fill);
1020
    } else {
1021
        $this->Cell($w, $h, substr($s, $j, $i - $j), $b, 2, $align, $fill);
1022
    }
1023
    $this->x = $this->lMargin;
1024
}
1025
1026
function Write($h, $txt, $link = '')