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

@@ 106-112 (lines=7) @@
103
$form = new Form($db);
104
105
$tabLinks = [];
106
foreach($flightYears as $currentFlightYear){
107
    $tabLinks[] = [
108
        DOL_URL_ROOT."/flightlog/generateExpenseNote.php?year=".$currentFlightYear,
109
        $currentFlightYear,
110
        "tab_".$currentFlightYear
111
    ];
112
}
113
114
dol_fiche_head($tabLinks, "tab_".$year);
115