Code Duplication    Length = 6-9 lines in 4 locations

account/create-advisor-observers.php 1 location

@@ 243-251 (lines=9) @@
240
        /* flows into $STEP_INSTRUCTIONS */
241
242
    case $STEP_INSTRUCTIONS:
243
    default:
244
        $toolbox->smarty_assign([
245
            'terms' => $toolbox->getTermList(),
246
            'formHidden' => [
247
                'step' => $STEP_GENERATE,
248
                'account' => $_SESSION[ACCOUNT_ID]
249
            ]
250
        ]);
251
        $toolbox->smarty_display(basename(__FILE__, '.php') . '/instructions.tpl');
252
}
253
254
$toolbox->cache_popKey();

account/rename-advisory-groups.php 1 location

@@ 63-71 (lines=9) @@
60
        /* fall through into $STEP_INSTRUCTIONS */
61
62
    case $STEP_INSTRUCTIONS:
63
    default:
64
        $toolbox->smarty_assign([
65
            'terms' => $toolbox->getTermList(),
66
            'formHidden' => [
67
                'step' => $STEP_RENAME,
68
                'account' => $_SESSION['accountId']
69
            ]
70
        ]);
71
        $toolbox->smarty_display(basename(__FILE__, '.php') . '/instructions.tpl');
72
}
73

account/download-observers-csv.php 1 location

@@ 92-97 (lines=6) @@
89
        /* flows into $STEP_INSTRUCTIONS */
90
91
    case $STEP_INSTRUCTIONS:
92
    default:
93
        $toolbox->smarty_assign('formHidden', [
94
            'step' => $STEP_CSV,
95
            'account' => $_SESSION[ACCOUNT_ID]
96
        ]);
97
        $toolbox->smarty_display(basename(__FILE__, '.php') . '/instructions.tpl');
98
}
99
100
$toolbox->cache_popKey();

account/prune-old-observers.php 1 location

@@ 89-94 (lines=6) @@
86
        }
87
88
        /* flows into $STEP_INSTRUCTIONS */
89
    case $STEP_INSTRUCTIONS:
90
        $toolbox->smarty_assign('formHidden', [
91
            'step' => $STEP_PRUNE,
92
            'account' => $_SESSION[ACCOUNT_ID]
93
        ]);
94
        $toolbox->smarty_display(basename(__FILE__, '.php') . '/instructions.tpl');
95
}
96
97
$toolbox->cache_popKey();