From eb02c0384315ee83726b5f37718d39d75a36e15f Mon Sep 17 00:00:00 2001 From: Scrutinizer Auto-Fixer Date: Mon, 13 Mar 2017 13:57:17 +0000 Subject: [PATCH] Scrutinizer Auto-Fixes This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com --- main/admin/add_courses_to_usergroup.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/main/admin/add_courses_to_usergroup.php b/main/admin/add_courses_to_usergroup.php index 89248df97d..c401bc3192 100755 --- a/main/admin/add_courses_to_usergroup.php +++ b/main/admin/add_courses_to_usergroup.php @@ -20,8 +20,8 @@ $this_section = SECTION_PLATFORM_ADMIN; api_protect_admin_script(true); // Setting breadcrumbs. -$interbreadcrumb[] = array('url' => 'index.php','name' => get_lang('PlatformAdmin')); -$interbreadcrumb[] = array('url' => 'usergroups.php','name' => get_lang('Classes')); +$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin')); +$interbreadcrumb[] = array('url' => 'usergroups.php', 'name' => get_lang('Classes')); // Setting the name of the tool. $tool_name = get_lang('SubscribeClassToCourses'); @@ -96,7 +96,7 @@ $filters = array( $searchForm = new FormValidator('search', 'get', api_get_self().'?id='.$id); $searchForm->addHeader(get_lang('AdvancedSearch')); -$renderer =& $searchForm->defaultRenderer(); +$renderer = & $searchForm->defaultRenderer(); $searchForm->addElement('hidden', 'id', $id); foreach ($filters as $param) { $searchForm->addElement($param['type'], $param['name'], $param['label']); @@ -149,7 +149,7 @@ if (!empty($course_list)) { $ajax_search = $add_type == 'unique' ? true : false; //checking for extra field with filter on -function search($needle,$type) +function search($needle, $type) { global $elements_in; $xajax_response = new xajaxResponse(); @@ -194,7 +194,7 @@ if ($add_type == 'multiple') { } echo '
'; -echo ''.Display::return_icon('back.png',get_lang('Back'), array(), ICON_SIZE_MEDIUM).''; +echo ''.Display::return_icon('back.png', get_lang('Back'), array(), ICON_SIZE_MEDIUM).''; echo Display::url(get_lang('AdvancedSearch'), '#', array('class' => 'advanced_options', 'id' => 'advanced_search')); echo '
'; @@ -204,7 +204,7 @@ echo ''; ?> -
> +> '.$data['name'].': '.$tool_name.''; echo Display::input('hidden', 'id', $id); @@ -223,7 +223,7 @@ if (!empty($errorMsg)) { : - + : @@ -241,7 +241,7 @@ if (!empty($errorMsg)) {
@@ -249,7 +249,7 @@ if (!empty($errorMsg)) { } else { ?>
- 'width:360px', 'multiple'=>'multiple','id'=>'elements_not_in','size'=>'15px'),false); ?> + 'width:360px', 'multiple'=>'multiple', 'id'=>'elements_not_in', 'size'=>'15px'), false); ?>
'width:360px', 'multiple'=>'multiple','id'=>'elements_in','size'=>'15px'),false ); + echo Display::select('elements_in_name[]', $elements_in, '', array('style'=>'width:360px', 'multiple'=>'multiple', 'id'=>'elements_in', 'size'=>'15px'), false); unset($sessionUsersList); ?>