Code Duplication    Length = 17-17 lines in 2 locations

web_interface/astpp/application/libraries/html2pdf/html2pdf.php 2 locations

@@ 1667-1683 (lines=17) @@
1664
            $testBb = ($border['b']['width'] && $border['b']['color'][0] !== null);
1665
1666
            // draw the radius bottom-left
1667
            if (is_array($outBL) && ($testBb || $testBl)) {
1668
                if ($inBL) {
1669
                    $courbe = array();
1670
                    $courbe[] = $x + $outBL[0]; $courbe[] = $y + $h;
1671
                    $courbe[] = $x; $courbe[] = $y + $h - $outBL[1];
1672
                    $courbe[] = $x + $outBL[0]; $courbe[] = $y + $h - $border['b']['width'];
1673
                    $courbe[] = $x + $border['l']['width']; $courbe[] = $y + $h - $outBL[1];
1674
                    $courbe[] = $x + $outBL[0]; $courbe[] = $y + $h - $outBL[1];
1675
                } else {
1676
                    $courbe = array();
1677
                    $courbe[] = $x + $outBL[0]; $courbe[] = $y + $h;
1678
                    $courbe[] = $x; $courbe[] = $y + $h - $outBL[1];
1679
                    $courbe[] = $x + $border['l']['width']; $courbe[] = $y + $h - $border['b']['width'];
1680
                    $courbe[] = $x + $outBL[0]; $courbe[] = $y + $h - $outBL[1];
1681
                }
1682
                $this->_drawCurve($courbe, $border['l']['color']);
1683
            }
1684
1685
            // draw the radius left-top
1686
            if (is_array($outTL) && ($testBt || $testBl)) {
@@ 1705-1721 (lines=17) @@
1702
            }
1703
1704
            // draw the radius top-right
1705
            if (is_array($outTR) && ($testBt || $testBr)) {
1706
                if ($inTR) {
1707
                    $courbe = array();
1708
                    $courbe[] = $x + $w - $outTR[0]; $courbe[] = $y;
1709
                    $courbe[] = $x + $w; $courbe[] = $y + $outTR[1];
1710
                    $courbe[] = $x + $w - $outTR[0]; $courbe[] = $y + $border['t']['width'];
1711
                    $courbe[] = $x + $w - $border['r']['width']; $courbe[] = $y + $outTR[1];
1712
                    $courbe[] = $x + $w - $outTR[0]; $courbe[] = $y + $outTR[1];
1713
                } else {
1714
                    $courbe = array();
1715
                    $courbe[] = $x + $w - $outTR[0]; $courbe[] = $y;
1716
                    $courbe[] = $x + $w; $courbe[] = $y + $outTR[1];
1717
                    $courbe[] = $x + $w - $border['r']['width']; $courbe[] = $y + $border['t']['width'];
1718
                    $courbe[] = $x + $w - $outTR[0]; $courbe[] = $y + $outTR[1];
1719
                }
1720
                $this->_drawCurve($courbe, $border['r']['color']);
1721
            }
1722
1723
            // draw the radius right-bottom
1724
            if (is_array($outBR) && ($testBb || $testBr)) {