From a969d7ce421a019287290a3ac0e75142e2238434 Mon Sep 17 00:00:00 2001 From: Scrutinizer Auto-Fixer Date: Tue, 17 Oct 2017 09:08:46 +0000 Subject: [PATCH] Scrutinizer Auto-Fixes This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com --- main/admin/gradebook_dependency.php | 2 +- main/attendance/attendance_sheet.php | 2 +- main/lp/learnpathItem.class.php | 4 ++-- main/mySpace/myStudents.php | 2 +- main/session/session_course_user.php | 2 +- src/Chamilo/CoreBundle/Component/Editor/CkEditor/CkEditor.php | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/main/admin/gradebook_dependency.php b/main/admin/gradebook_dependency.php index d0f7d7a092..534828c565 100644 --- a/main/admin/gradebook_dependency.php +++ b/main/admin/gradebook_dependency.php @@ -62,7 +62,7 @@ foreach ($mandatoryList as $courseMandatoryId) { $totalDependencies = count($dependencies); $min = $categoryObj->getMinimumToValidate(); $gradeBooksToValidateInDependence = $categoryObj->getGradeBooksToValidateInDependence(); -$userResult = []; +$userResult = []; $dependencyList = []; foreach ($dependencies as $courseId) { diff --git a/main/attendance/attendance_sheet.php b/main/attendance/attendance_sheet.php index 33d69c2bc5..5caef60089 100755 --- a/main/attendance/attendance_sheet.php +++ b/main/attendance/attendance_sheet.php @@ -361,7 +361,7 @@ if (api_is_allowed_to_edit(null, true) || echo ''; echo ''; } else { - echo $presence ? Display::return_icon('checkbox_on.png', get_lang('Presence'), null , ICON_SIZE_TINY) : Display::return_icon('checkbox_off.png', get_lang('Presence'), null, ICON_SIZE_TINY); + echo $presence ? Display::return_icon('checkbox_on.png', get_lang('Presence'), null, ICON_SIZE_TINY) : Display::return_icon('checkbox_off.png', get_lang('Presence'), null, ICON_SIZE_TINY); } } else { switch ($presence) { diff --git a/main/lp/learnpathItem.class.php b/main/lp/learnpathItem.class.php index 2414f282b6..7cb2896bf7 100755 --- a/main/lp/learnpathItem.class.php +++ b/main/lp/learnpathItem.class.php @@ -1207,7 +1207,7 @@ class learnpathItem ); } } elseif (strpos($second_part, '=') > 0) { - if (substr($second_part,0,1) === '/') { + if (substr($second_part, 0, 1) === '/') { // Link starts with a /, // making it absolute (relative to DocumentRoot). $files_list[] = array( @@ -1252,7 +1252,7 @@ class learnpathItem } } else { // No starting '/', making it relative to current document's path. - if (substr($second_part, 0,2) == './') { + if (substr($second_part, 0, 2) == './') { $second_part = substr( $second_part, 2 diff --git a/main/mySpace/myStudents.php b/main/mySpace/myStudents.php index 37ca741faf..f1d5a7fee0 100755 --- a/main/mySpace/myStudents.php +++ b/main/mySpace/myStudents.php @@ -1623,7 +1623,7 @@ if ($allowMessages === true) { $senderId = $message->getUserSenderId(); $senderInfo = api_get_user_info($senderId); echo Display::panelCollapse( - $localTime.' '.$senderInfo['complete_name']. ' '.$message->getTitle(), + $localTime.' '.$senderInfo['complete_name'].' '.$message->getTitle(), $message->getContent().'
'.$date.'
'.get_lang( 'Author' ).': '.$senderInfo['complete_name_with_message_link'], diff --git a/main/session/session_course_user.php b/main/session/session_course_user.php index 18604d61e6..87f0152776 100644 --- a/main/session/session_course_user.php +++ b/main/session/session_course_user.php @@ -57,7 +57,7 @@ if ($form->validate()) { if ($session->getCourses()->count() == count($values['courses_to_avoid'])) { Display::addFlash(Display::return_message(get_lang('MaybeYouWantToDeleteThisUserFromSession'))); - header('Location: session_course_user.php?id_session=' . $id_session . '&id_user=' . $id_user); + header('Location: session_course_user.php?id_session='.$id_session.'&id_user='.$id_user); exit; } diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/CkEditor.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/CkEditor.php index e601572503..d4867b45a9 100644 --- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/CkEditor.php +++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/CkEditor.php @@ -109,7 +109,7 @@ class CkEditor extends Editor /** @var \Chamilo\CoreBundle\Entity\SystemTemplate $template */ $templateList = array(); $cssTheme = api_get_path(WEB_CSS_PATH).'themes/'.api_get_visual_theme().'/'; - $search = array('{CSS_THEME}', '{IMG_DIR}', '{REL_PATH}', '{COURSE_DIR}','{CSS}'); + $search = array('{CSS_THEME}', '{IMG_DIR}', '{REL_PATH}', '{COURSE_DIR}', '{CSS}'); $replace = array( $cssTheme, api_get_path(REL_CODE_PATH).'img/', @@ -177,7 +177,7 @@ class CkEditor extends Editor $entityManager = \Database::getManager(); $systemTemplates = $entityManager->getRepository('ChamiloCoreBundle:SystemTemplate')->findAll(); $cssTheme = api_get_path(WEB_CSS_PATH).'themes/'.api_get_visual_theme().'/'; - $search = array('{CSS_THEME}', '{IMG_DIR}', '{REL_PATH}', '{COURSE_DIR}','{CSS}'); + $search = array('{CSS_THEME}', '{IMG_DIR}', '{REL_PATH}', '{COURSE_DIR}', '{CSS}'); $replace = array( $cssTheme, api_get_path(REL_CODE_PATH).'img/',