Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 2760-2768 (lines=9) @@
2757
2758
            switch ($this->parsingCss->value['rotate'])
2759
            {
2760
                case 90:
2761
                    $tmp = $overH; $overH = $overW; $overW = $tmp;
2762
                    $tmp = $hReel; $hReel = $wReel; $wReel = $tmp;
2763
                    unset($tmp);
2764
                    $w = $this->parsingCss->value['height'];
2765
                    $h = $this->parsingCss->value['width'];
2766
                    $tX = -$h;
2767
                    $tY = 0;
2768
                    break;
2769
2770
                case 180:
2771
                    $w = $this->parsingCss->value['width'];
@@ 2777-2785 (lines=9) @@
2774
                    $tY = -$h;
2775
                    break;
2776
2777
                case 270:
2778
                    $tmp = $overH; $overH = $overW; $overW = $tmp;
2779
                    $tmp = $hReel; $hReel = $wReel; $wReel = $tmp;
2780
                    unset($tmp);
2781
                    $w = $this->parsingCss->value['height'];
2782
                    $h = $this->parsingCss->value['width'];
2783
                    $tX = 0;
2784
                    $tY = -$w;
2785
                    break;
2786
2787
                default:
2788
                    $w = $this->parsingCss->value['width'];