Code Duplication    Length = 7-7 lines in 2 locations

generateBilling.php 1 location

@@ 185-191 (lines=7) @@
182
$form = new Form($db);
183
184
$tabLinks = [];
185
foreach ($flightYears as $currentFlightYear) {
186
    $tabLinks[] = [
187
        DOL_URL_ROOT . "/flightlog/generateBilling.php?year=" . $currentFlightYear,
188
        $currentFlightYear,
189
        "tab_" . $currentFlightYear
190
    ];
191
}
192
193
if (!$t1->service || !$t2->service || !$t3->service || !$t4->service || !$t5->service || !$t6->service || !$t7->service) {
194
    dol_htmloutput_mesg("Un service n'a pas été configuré", '', 'warning');

generateExpenseNote.php 1 location

@@ 190-196 (lines=7) @@
187
$form = new Form($db);
188
189
$tabLinks = [];
190
foreach($flightYears as $currentFlightYear){
191
    $tabLinks[] = [
192
        DOL_URL_ROOT."/flightlog/generateExpenseNote.php?year=".$currentFlightYear,
193
        $currentFlightYear,
194
        "tab_".$currentFlightYear
195
    ];
196
}
197
198
dol_fiche_head($tabLinks, "tab_".$year);
199