Code Duplication    Length = 1-1 lines in 6 locations

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

@@ 2056-2056 (lines=1) @@
2053
                        break;
2054
2055
                    case 'translate':
2056
                        if ( ! isset($val[0])) $val[0] = 0.; else $val[0] = $this->parsingCss->ConvertToMM($val[0], $this->_isInDraw['w']);
2057
                        if ( ! isset($val[1])) $val[1] = 0.; else $val[1] = $this->parsingCss->ConvertToMM($val[1], $this->_isInDraw['h']);
2058
                        $actions[] = array(1, 0, 0, 1, $val[0], $val[1]);
2059
                        break;
@@ 2057-2057 (lines=1) @@
2054
2055
                    case 'translate':
2056
                        if ( ! isset($val[0])) $val[0] = 0.; else $val[0] = $this->parsingCss->ConvertToMM($val[0], $this->_isInDraw['w']);
2057
                        if ( ! isset($val[1])) $val[1] = 0.; else $val[1] = $this->parsingCss->ConvertToMM($val[1], $this->_isInDraw['h']);
2058
                        $actions[] = array(1, 0, 0, 1, $val[0], $val[1]);
2059
                        break;
2060
@@ 2063-2063 (lines=1) @@
2060
2061
                    case 'rotate':
2062
                        if ( ! isset($val[0])) $val[0] = 0.; else $val[0] = $val[0] * M_PI / 180.;
2063
                        if ( ! isset($val[1])) $val[1] = 0.; else $val[1] = $this->parsingCss->ConvertToMM($val[1], $this->_isInDraw['w']);
2064
                        if ( ! isset($val[2])) $val[2] = 0.; else $val[2] = $this->parsingCss->ConvertToMM($val[2], $this->_isInDraw['h']);
2065
                        if ($val[1] || $val[2]) $actions[] = array(1, 0, 0, 1, -$val[1], -$val[2]);
2066
                        $actions[] = array(cos($val[0]), sin($val[0]), -sin($val[0]), cos($val[0]), 0, 0);
@@ 2064-2064 (lines=1) @@
2061
                    case 'rotate':
2062
                        if ( ! isset($val[0])) $val[0] = 0.; else $val[0] = $val[0] * M_PI / 180.;
2063
                        if ( ! isset($val[1])) $val[1] = 0.; else $val[1] = $this->parsingCss->ConvertToMM($val[1], $this->_isInDraw['w']);
2064
                        if ( ! isset($val[2])) $val[2] = 0.; else $val[2] = $this->parsingCss->ConvertToMM($val[2], $this->_isInDraw['h']);
2065
                        if ($val[1] || $val[2]) $actions[] = array(1, 0, 0, 1, -$val[1], -$val[2]);
2066
                        $actions[] = array(cos($val[0]), sin($val[0]), -sin($val[0]), cos($val[0]), 0, 0);
2067
                        if ($val[1] || $val[2]) $actions[] = array(1, 0, 0, 1, $val[1], $val[2]);
@@ 2084-2084 (lines=1) @@
2081
                        if ( ! isset($val[1])) $val[1] = 0.; else $val[1] = $val[1] * 1.;
2082
                        if ( ! isset($val[2])) $val[2] = 0.; else $val[2] = $val[2] * 1.;
2083
                        if ( ! isset($val[3])) $val[3] = 0.; else $val[3] = $val[3] * 1.;
2084
                        if ( ! isset($val[4])) $val[4] = 0.; else $val[4] = $this->parsingCss->ConvertToMM($val[4], $this->_isInDraw['w']);
2085
                        if ( ! isset($val[5])) $val[5] = 0.; else $val[5] = $this->parsingCss->ConvertToMM($val[5], $this->_isInDraw['h']);
2086
                        $actions[] = $val;
2087
                        break;
@@ 2085-2085 (lines=1) @@
2082
                        if ( ! isset($val[2])) $val[2] = 0.; else $val[2] = $val[2] * 1.;
2083
                        if ( ! isset($val[3])) $val[3] = 0.; else $val[3] = $val[3] * 1.;
2084
                        if ( ! isset($val[4])) $val[4] = 0.; else $val[4] = $this->parsingCss->ConvertToMM($val[4], $this->_isInDraw['w']);
2085
                        if ( ! isset($val[5])) $val[5] = 0.; else $val[5] = $this->parsingCss->ConvertToMM($val[5], $this->_isInDraw['h']);
2086
                        $actions[] = $val;
2087
                        break;
2088
                }