Code Duplication    Length = 2-2 lines in 2 locations

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

@@ 5055-5056 (lines=2) @@
5052
                        // hauteur de la ligne tr
5053
                        $h = 0;
5054
                        for ($i = 0; $i < count(HTML2PDF::$_tables[$param['num']]['cases'][$tr]); $i++)
5055
                            if (HTML2PDF::$_tables[$param['num']]['cases'][$tr][$i]['rowspan'] == 1)
5056
                                $h = max($h, HTML2PDF::$_tables[$param['num']]['cases'][$tr][$i]['h']);
5057
                        HTML2PDF::$_tables[$param['num']][$mode]['height'] += $h;
5058
                    }
5059
                }
@@ 5114-5115 (lines=2) @@
5111
                    for ($i = 0; $i < count(HTML2PDF::$_tables[$param['num']]['cases'][$k]); $i++) {
5112
                        $h = max($h, HTML2PDF::$_tables[$param['num']]['cases'][$k][$i]['h']);
5113
5114
                        if (HTML2PDF::$_tables[$param['num']]['cases'][$k][$i]['rowspan'] == 1)
5115
                            $th = max($th, HTML2PDF::$_tables[$param['num']]['cases'][$k][$i]['h']);
5116
                    }
5117
5118
                    // if the row does not fit on the page => new page