Code Duplication    Length = 5-5 lines in 2 locations

makepdf.php 2 locations

@@ 117-121 (lines=5) @@
114
$pdf->SetFont($pdf_config['font']['title']['family'], $pdf_config['font']['title']['style'], $pdf_config['font']['title']['size']);
115
$pdf->WriteHTML($pdf_data['title'], $pdf_config['scale']);
116
117
if ($pdf_data['subtitle'] <> '') {
118
    $pdf->WriteHTML($puff, $pdf_config['scale']);
119
    $pdf->SetFont($pdf_config['font']['subtitle']['family'], $pdf_config['font']['subtitle']['style'], $pdf_config['font']['subtitle']['size']);
120
    $pdf->WriteHTML($pdf_data['subtitle'], $pdf_config['scale']);
121
}
122
if ($pdf_data['subsubtitle'] <> '') {
123
    $pdf->WriteHTML($puff, $pdf_config['scale']);
124
    $pdf->SetFont($pdf_config['font']['subsubtitle']['family'], $pdf_config['font']['subsubtitle']['style'], $pdf_config['font']['subsubtitle']['size']);
@@ 122-126 (lines=5) @@
119
    $pdf->SetFont($pdf_config['font']['subtitle']['family'], $pdf_config['font']['subtitle']['style'], $pdf_config['font']['subtitle']['size']);
120
    $pdf->WriteHTML($pdf_data['subtitle'], $pdf_config['scale']);
121
}
122
if ($pdf_data['subsubtitle'] <> '') {
123
    $pdf->WriteHTML($puff, $pdf_config['scale']);
124
    $pdf->SetFont($pdf_config['font']['subsubtitle']['family'], $pdf_config['font']['subsubtitle']['style'], $pdf_config['font']['subsubtitle']['size']);
125
    $pdf->WriteHTML($pdf_data['subsubtitle'], $pdf_config['scale']);
126
}
127
128
$pdf->WriteHTML($puff, $pdf_config['scale']);
129
$pdf->SetFont($pdf_config['font']['author']['family'], $pdf_config['font']['author']['style'], $pdf_config['font']['author']['size']);