diff options
author | msquare <msquare@notrademark.de> | 2016-09-29 11:18:17 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-09-29 11:18:17 +0200 |
commit | e965f8d04150fbd17ee1b5fcbca5ae85bbe6d6bd (patch) | |
tree | f610d047f1cdc830ffc34881f6ea6d26ef0e3983 /includes/view/ShiftEntry_view.php | |
parent | 91dafb19ec171e747d9976cf738606759bde3aae (diff) |
prohibit inline control structures on model and view
Diffstat (limited to 'includes/view/ShiftEntry_view.php')
-rw-r--r-- | includes/view/ShiftEntry_view.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/includes/view/ShiftEntry_view.php b/includes/view/ShiftEntry_view.php index 9665e426..fab5be66 100644 --- a/includes/view/ShiftEntry_view.php +++ b/includes/view/ShiftEntry_view.php @@ -13,16 +13,16 @@ */ function ShiftEntry_edit_view($angel, $date, $location, $title, $type, $comment, $freeloaded, $freeload_comment, $user_admin_shifts = false) { if ($user_admin_shifts) { - $freeload_form = array( + $freeload_form = [ form_checkbox('freeloaded', _("Freeloaded"), $freeloaded), form_textarea('freeload_comment', _("Freeload comment (Only for shift coordination):"), $freeload_comment) - ); + ]; } else { - $freeload_form = array(); + $freeload_form = []; } - return page_with_title(_("Edit shift entry"), array( + return page_with_title(_("Edit shift entry"), [ msg(), - form(array( + form([ form_info(_("Angel:"), $angel), form_info(_("Date, Duration:"), $date), form_info(_("Location:"), $location), @@ -31,8 +31,8 @@ function ShiftEntry_edit_view($angel, $date, $location, $title, $type, $comment, form_textarea('comment', _("Comment (for your eyes only):"), $comment), join("", $freeload_form), form_submit('submit', _("Save")) - )) - )); + ]) + ]); } ?>
\ No newline at end of file |