Code Duplication    Length = 5-5 lines in 2 locations

makepdf.php 2 locations

@@ 97-101 (lines=5) @@
94
$pdf->SetFont($pdf_config['font']['title']['family'], $pdf_config['font']['title']['style'], $pdf_config['font']['title']['size']);
95
$pdf->WriteHTML($pdf_data['title'], $pdf_config['scale']);
96
97
if ($pdf_data['subtitle'] <> '') {
98
    $pdf->WriteHTML($puff, $pdf_config['scale']);
99
    $pdf->SetFont($pdf_config['font']['subtitle']['family'], $pdf_config['font']['subtitle']['style'], $pdf_config['font']['subtitle']['size']);
100
    $pdf->WriteHTML($pdf_data['subtitle'], $pdf_config['scale']);
101
}
102
if ($pdf_data['subsubtitle'] <> '') {
103
    $pdf->WriteHTML($puff, $pdf_config['scale']);
104
    $pdf->SetFont($pdf_config['font']['subsubtitle']['family'], $pdf_config['font']['subsubtitle']['style'], $pdf_config['font']['subsubtitle']['size']);
@@ 102-106 (lines=5) @@
99
    $pdf->SetFont($pdf_config['font']['subtitle']['family'], $pdf_config['font']['subtitle']['style'], $pdf_config['font']['subtitle']['size']);
100
    $pdf->WriteHTML($pdf_data['subtitle'], $pdf_config['scale']);
101
}
102
if ($pdf_data['subsubtitle'] <> '') {
103
    $pdf->WriteHTML($puff, $pdf_config['scale']);
104
    $pdf->SetFont($pdf_config['font']['subsubtitle']['family'], $pdf_config['font']['subsubtitle']['style'], $pdf_config['font']['subsubtitle']['size']);
105
    $pdf->WriteHTML($pdf_data['subsubtitle'], $pdf_config['scale']);
106
}
107
108
$pdf->WriteHTML($puff, $pdf_config['scale']);
109
$pdf->SetFont($pdf_config['font']['author']['family'], $pdf_config['font']['author']['style'], $pdf_config['font']['author']['size']);