diff --git a/main/inc/lib/agenda.lib.php b/main/inc/lib/agenda.lib.php index 2dd27d48c3..3fb6a5885a 100644 --- a/main/inc/lib/agenda.lib.php +++ b/main/inc/lib/agenda.lib.php @@ -138,7 +138,7 @@ class Agenda */ public function setSenderId($senderId) { - $this->senderId = intval($senderId); + $this->senderId = (int) $senderId; } /** diff --git a/main/user/class.php b/main/user/class.php index 22e2dcd034..bea53ee4bc 100755 --- a/main/user/class.php +++ b/main/user/class.php @@ -15,14 +15,14 @@ if (api_get_setting('allow_user_course_subscription_by_course_admin') == 'false' } } -$tool_name = get_lang("Classes"); +$tool_name = get_lang('Classes'); $htmlHeadXtra[] = api_get_jqgrid_js(); // Extra entries in breadcrumb $interbreadcrumb[] = [ "url" => "user.php?".api_get_cidreq(), - "name" => get_lang("ToolUser"), + "name" => get_lang('ToolUser'), ]; $type = isset($_GET['type']) ? Security::remove_XSS($_GET['type']) : 'registered'; @@ -43,10 +43,10 @@ $usergroup = new UserGroup(); if (api_is_allowed_to_edit()) { if ($type === 'registered') { $actionsLeft .= ''. - Display::return_icon('add-class.png', get_lang("AddClassesToACourse"), [], ICON_SIZE_MEDIUM).''; + Display::return_icon('add-class.png', get_lang('AddClassesToACourse'), [], ICON_SIZE_MEDIUM).''; } else { $actionsLeft .= ''. - Display::return_icon('back.png', get_lang("Classes"), [], ICON_SIZE_MEDIUM).''; + Display::return_icon('back.png', get_lang('Classes'), [], ICON_SIZE_MEDIUM).''; $form = new FormValidator( 'groups', @@ -152,7 +152,7 @@ $extraParams['autowidth'] = 'true'; // height auto $extraParams['height'] = 'auto'; -Display :: display_header($tool_name, "User"); +Display::display_header($tool_name, "User"); ?>