Code Duplication    Length = 13-15 lines in 2 locations

web_interface/astpp/application/libraries/html2pdf/_class/myPdf.class.php 2 locations

@@ 1128-1140 (lines=13) @@
1125
        if ($v['s2']['a1'] > $v['s2']['a2']) $v['s2']['a1'] -= 2 * M_PI;
1126
1127
        if ( ! $l) {
1128
            if ($s) {
1129
                $xc = $v['s2']['x'];
1130
                $yc = $v['s2']['y'];
1131
                $a1 = $v['s2']['a1'];
1132
                $a2 = $v['s2']['a2'];
1133
                $this->_Arc($xc, $yc, $rx, $ry, $a1, $a2, true, false, $trans);
1134
            } else {
1135
                $xc = $v['s1']['x'];
1136
                $yc = $v['s1']['y'];
1137
                $a1 = $v['s1']['a1'];
1138
                $a2 = $v['s1']['a2'];
1139
                $this->_Arc($xc, $yc, $rx, $ry, $a1, $a2, false, false, $trans);
1140
            }
1141
        } else {
1142
            if ($s) {
1143
                $xc = $v['s1']['x'];
@@ 1141-1155 (lines=15) @@
1138
                $a2 = $v['s1']['a2'];
1139
                $this->_Arc($xc, $yc, $rx, $ry, $a1, $a2, false, false, $trans);
1140
            }
1141
        } else {
1142
            if ($s) {
1143
                $xc = $v['s1']['x'];
1144
                $yc = $v['s1']['y'];
1145
                $a1 = $v['s1']['a1'];
1146
                $a2 = $v['s1']['a2'];
1147
                $this->_Arc($xc, $yc, $rx, $ry, $a1, $a2, true, false, $trans);
1148
            } else {
1149
                $xc = $v['s2']['x'];
1150
                $yc = $v['s2']['y'];
1151
                $a1 = $v['s2']['a1'];
1152
                $a2 = $v['s2']['a2'];
1153
                $this->_Arc($xc, $yc, $rx, $ry, $a1, $a2, false, false, $trans);
1154
            }
1155
        }
1156
    }
1157
1158
    /**