From d8204561c5f310c343965b43535bc0515c4b8657 Mon Sep 17 00:00:00 2001 From: Scrutinizer Auto-Fixer Date: Thu, 6 Apr 2017 14:20:19 +0000 Subject: [PATCH] Scrutinizer Auto-Fixes This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com --- main/admin/skill_create.php | 4 +-- main/course_progress/thematic_advance.php | 12 +++---- main/coursecopy/copy_course_session.php | 8 ++--- main/document/downloadfolder.inc.php | 10 +++--- main/inc/lib/glossary.lib.php | 36 +++++++++---------- main/inc/lib/model.lib.php | 1 + main/inc/lib/skill.visualizer.lib.php | 26 +++++++------- main/session/add_courses_to_session.php | 28 +++++++-------- .../CourseBundle/Entity/CToolIntro.php | 2 +- 9 files changed, 64 insertions(+), 63 deletions(-) diff --git a/main/admin/skill_create.php b/main/admin/skill_create.php index 9262ff21d1..b4a38ea636 100644 --- a/main/admin/skill_create.php +++ b/main/admin/skill_create.php @@ -92,7 +92,7 @@ $jquery_ready_content = $returnParams['jquery_ready_content']; if (!empty($jquery_ready_content)) { $htmlHeadXtra[] = ''; } @@ -122,7 +122,7 @@ if ($createForm->validate()) { ); } - header('Location: '.api_get_path(WEB_CODE_PATH) . 'admin/skill_list.php'); + header('Location: '.api_get_path(WEB_CODE_PATH).'admin/skill_list.php'); exit; } diff --git a/main/course_progress/thematic_advance.php b/main/course_progress/thematic_advance.php index 4d5dd27590..8c9e364ab0 100755 --- a/main/course_progress/thematic_advance.php +++ b/main/course_progress/thematic_advance.php @@ -22,7 +22,7 @@ if ($action === 'thematic_advance_add' || $action === 'thematic_advance_edit') { $form = new FormValidator( 'thematic_advance', 'POST', - api_get_self() . '?' . api_get_cidreq() + api_get_self().'?'.api_get_cidreq() ); $form->addElement('header', $header_form); //$form->addElement('hidden', 'thematic_advance_token',$token); @@ -191,7 +191,7 @@ if ($action === 'thematic_advance_add' || $action === 'thematic_advance_edit') { $thematic = new Thematic(); $thematic->set_thematic_advance_attributes( - isset($values['thematic_advance_id']) ? $values['thematic_advance_id']: null, + isset($values['thematic_advance_id']) ? $values['thematic_advance_id'] : null, $values['thematic_id'], $values['start_date_type'] == 1 && isset($values['attendance_select']) ? $values['attendance_select'] : 0, $values['content'], @@ -210,13 +210,13 @@ if ($action === 'thematic_advance_add' || $action === 'thematic_advance_edit') { } } - $redirectUrlParams = 'course_progress/index.php?' . api_get_cidreq() . '&' . + $redirectUrlParams = 'course_progress/index.php?'.api_get_cidreq().'&'. http_build_query([ 'action' => 'thematic_advance_list', 'thematic_id' => $values['thematic_id'] ]); - header('Location: ' . api_get_path(WEB_CODE_PATH) . $redirectUrlParams); + header('Location: '.api_get_path(WEB_CODE_PATH).$redirectUrlParams); exit; } @@ -226,10 +226,10 @@ if ($action === 'thematic_advance_add' || $action === 'thematic_advance_edit') { // thematic advance list echo '
'; echo ''. - Display::return_icon('back.png', get_lang("BackTo"),'',ICON_SIZE_MEDIUM).''; + Display::return_icon('back.png', get_lang("BackTo"), '', ICON_SIZE_MEDIUM).''; if (api_is_allowed_to_edit(false, true)) { echo ' '. - Display::return_icon('add.png', get_lang('NewThematicAdvance'),'',ICON_SIZE_MEDIUM).''; + Display::return_icon('add.png', get_lang('NewThematicAdvance'), '', ICON_SIZE_MEDIUM).''; } echo '
'; $table = new SortableTable( diff --git a/main/coursecopy/copy_course_session.php b/main/coursecopy/copy_course_session.php index bdaf03c682..fcf67a9102 100755 --- a/main/coursecopy/copy_course_session.php +++ b/main/coursecopy/copy_course_session.php @@ -85,7 +85,7 @@ function make_select_session_list($name, $sessions, $attr = array()) function display_form() { - $html = ''; + $html = ''; $sessions = SessionManager::get_sessions_list(array(), array('name', 'ASC')); // Link back to the documents overview @@ -109,7 +109,7 @@ function display_form() //destination $html .= '
'; - $html .= ''; + $html .= ''; $html .= '
'; $html .= '
'; @@ -131,7 +131,7 @@ function display_form() $html .= ''; // Add Security token - $html .= ''; + $html .= ''; $html .= '
'; $html .= ''; @@ -227,7 +227,7 @@ $xajax->processRequests(); /* HTML head extra */ -$htmlHeadXtra[] = $xajax->getJavascript( api_get_path(WEB_LIBRARY_PATH).'xajax/'); +$htmlHeadXtra[] = $xajax->getJavascript(api_get_path(WEB_LIBRARY_PATH).'xajax/'); $htmlHeadXtra[] = '