Code Duplication    Length = 4-5 lines in 3 locations

courses/reset-favorites.php 1 location

@@ 39-42 (lines=4) @@
36
        /* flow into STEP_INSTRUCTIONS */
37
38
    case STEP_INSTRUCTIONS:
39
    default:
40
        $toolbox->smarty_assign('accounts', $toolbox->getAccountList());
41
        $toolbox->smarty_assign('formHidden', ['step' => STEP_RESET]);
42
        $toolbox->smarty_display(basename(__FILE__, '.php') . '/instructions.tpl');
43
}
44

enrollment/download-enrollments.php 1 location

@@ 71-75 (lines=5) @@
68
69
        /* flows into STEP_INSTRUCTIONS */
70
71
    case STEP_INSTRUCTIONS:
72
        $toolbox->smarty_assign('formHidden', array('step' => STEP_DOWNLOAD));
73
        $toolbox->smarty_assign('accounts', $accounts);
74
        $toolbox->smarty_assign('terms', $terms);
75
        $toolbox->smarty_display(basename(__FILE__, '.php') . '/instructions.tpl');
76
}
77

one-offs/download-users-csv.php 1 location

@@ 64-67 (lines=4) @@
61
        /* flows into STEP_INSTRUCTIONS */
62
63
    case STEP_INSTRUCTIONS:
64
    default:
65
        $toolbox->smarty_assign('accounts', $toolbox->getAccountList());
66
        $toolbox->smarty_assign('formHidden', array('step' => STEP_CSV));
67
        $toolbox->smarty_display(basename(__FILE__, '.php') . '/instructions.tpl');
68
}
69