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/download-observers-csv.php 1 location

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

account/prune-old-observers.php 1 location

@@ 77-82 (lines=6) @@
74
        }
75
76
        /* flows into $STEP_INSTRUCTIONS */
77
    case $STEP_INSTRUCTIONS:
78
        $toolbox->smarty_assign('formHidden', [
79
            'step' => $STEP_PRUNE,
80
            'account' => $_SESSION[ACCOUNT_ID]
81
        ]);
82
        $toolbox->smarty_display(basename(__FILE__, '.php') . '/instructions.tpl');
83
}
84
85
$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