From 18c0ec9187c408df5ddcca61786a3333dc5a8e3a Mon Sep 17 00:00:00 2001 From: Scrutinizer Auto-Fixer Date: Sat, 8 Apr 2017 22:37:45 +0000 Subject: [PATCH] Scrutinizer Auto-Fixes This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com --- main/admin/skill.php | 6 +- main/admin/skill_profile.php | 12 +- main/document/create_draw.php | 6 +- main/document/edit_draw.php | 12 +- main/exercise/evalmathnotation.php | 2 +- main/inc/global.inc.php | 8 +- main/inc/lib/exercise_show_functions.lib.php | 26 ++--- main/inc/lib/surveymanager.lib.php | 18 +-- main/ticket/download.php | 4 +- main/ticket/index.php | 2 +- .../resubscription/src/HookResubscription.php | 2 +- .../CourseCopy/Resources/Document.php | 4 +- .../Resources/DummyCourseCreator.php | 110 +++++++++--------- .../CourseCopy/Resources/ForumPost.php | 2 +- 14 files changed, 107 insertions(+), 107 deletions(-) diff --git a/main/admin/skill.php b/main/admin/skill.php index eb00d929f6..78444f96e1 100644 --- a/main/admin/skill.php +++ b/main/admin/skill.php @@ -18,7 +18,7 @@ $list = $em->getRepository('ChamiloCoreBundle:Skill')->findAll(); $listAction = api_get_self(); -$action = ''; +$action = ''; if (isset($_GET['action']) && in_array($_GET['action'], ['add', 'edit', 'delete'])) { $action = $_GET['action']; } @@ -53,8 +53,8 @@ if (!empty($item)) { } $formToDisplay = $form->returnForm(); -$interbreadcrumb[] = array ('url' => 'index.php', 'name' => get_lang('PlatformAdmin')); -$interbreadcrumb[] = array ('url' => api_get_self(), 'name' => get_lang('ManageSkillsLevels')); +$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin')); +$interbreadcrumb[] = array('url' => api_get_self(), 'name' => get_lang('ManageSkillsLevels')); $tpl = new Template($action); switch ($action) { diff --git a/main/admin/skill_profile.php b/main/admin/skill_profile.php index dc9481d195..7b209e90e3 100644 --- a/main/admin/skill_profile.php +++ b/main/admin/skill_profile.php @@ -17,7 +17,7 @@ $list = $em->getRepository('ChamiloSkillBundle:Profile')->findAll(); $listAction = api_get_self(); -$action = ''; +$action = ''; if (isset($_GET['action']) && in_array($_GET['action'], ['add', 'edit', 'delete', 'move_up', 'move_down'])) { $action = $_GET['action']; } @@ -43,9 +43,9 @@ if (!empty($item)) { } $formToDisplay = $form->returnForm(); -$interbreadcrumb[] = array ('url' => 'index.php', 'name' => get_lang('PlatformAdmin')); -$interbreadcrumb[] = array ('url' => 'skill.php', 'name' => get_lang('ManageSkillsLevels')); -$interbreadcrumb[] = array ('url' => api_get_self(), 'name' => get_lang('SkillProfile')); +$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin')); +$interbreadcrumb[] = array('url' => 'skill.php', 'name' => get_lang('ManageSkillsLevels')); +$interbreadcrumb[] = array('url' => api_get_self(), 'name' => get_lang('SkillProfile')); $tpl = new Template($action); switch ($action) { @@ -56,7 +56,7 @@ switch ($action) { $position = $item->getPosition(); if (!empty($position)) { - $item->setPosition($position-1); + $item->setPosition($position - 1); } $em->persist($item); $em->flush(); @@ -69,7 +69,7 @@ switch ($action) { $position = $item->getPosition(); - $item->setPosition($position+1); + $item->setPosition($position + 1); $em->persist($item); $em->flush(); diff --git a/main/document/create_draw.php b/main/document/create_draw.php index aa1aa0a466..15396596a0 100755 --- a/main/document/create_draw.php +++ b/main/document/create_draw.php @@ -73,7 +73,7 @@ if (!is_dir($filepath)) { $groupId = api_get_group_id(); if (!empty($groupId)) { - $interbreadcrumb[] = array ( + $interbreadcrumb[] = array( "url" => "../group/group_space.php?".api_get_cidreq(), "name" => get_lang('GroupSpace') ); @@ -134,7 +134,7 @@ Display :: display_header($nameTools, 'Doc'); echo '
'; echo ''. - Display::return_icon('back.png',get_lang('BackTo').' '.get_lang('DocumentsOverview'),'',ICON_SIZE_MEDIUM).''; + Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('DocumentsOverview'), '', ICON_SIZE_MEDIUM).''; echo '
'; if (api_browser_support('svg')) { @@ -144,7 +144,7 @@ if (api_browser_support('svg')) { $langsvgedit = api_get_language_isocode(); $langsvgedit = isset($svgedit_code_translation_table[$langsvgedit]) ? $svgedit_code_translation_table[$langsvgedit] : $langsvgedit; $langsvgedit = file_exists(api_get_path(LIBRARY_PATH).'javascript/svgedit/locale/lang.'.$langsvgedit.'.js') ? $langsvgedit : 'en'; - $svg_url= api_get_path(WEB_LIBRARY_PATH).'javascript/svgedit/svg-editor.php?lang='.$langsvgedit; + $svg_url = api_get_path(WEB_LIBRARY_PATH).'javascript/svgedit/svg-editor.php?lang='.$langsvgedit; ?>