From 6cd214a50f48dd105a92f71e6ea25dffc130a82c Mon Sep 17 00:00:00 2001 From: Scrutinizer Auto-Fixer Date: Fri, 5 May 2017 14:05:54 +0000 Subject: [PATCH] Scrutinizer Auto-Fixes This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com --- main/dashboard/dashboard.php | 8 +-- main/document/record_audio.php | 14 ++-- main/document/showinframes.php | 16 ++--- main/gradebook/lib/fe/flatviewtable.class.php | 30 ++++----- main/inc/ajax/course.ajax.php | 14 ++-- .../install/update-files-1.9.0-1.10.0.inc.php | 22 +++---- main/lp/lp_view_item.php | 6 +- main/social/home.php | 64 +++++++++---------- main/social/invitations.php | 32 +++++----- main/work/upload_corrections.php | 6 +- plugin/google_maps/lang/english.php | 2 +- plugin/google_maps/lang/french.php | 2 +- plugin/ims_lti/edit.php | 4 +- plugin/vchamilo/views/editinstance.php | 2 +- 14 files changed, 111 insertions(+), 111 deletions(-) diff --git a/main/dashboard/dashboard.php b/main/dashboard/dashboard.php index 3449bf0fbe..89ef4113b3 100755 --- a/main/dashboard/dashboard.php +++ b/main/dashboard/dashboard.php @@ -13,7 +13,7 @@ api_block_anonymous_users(); // menu actions for dashboard views $views = array('blocks', 'list'); -if(isset($_GET['view']) && in_array($_GET['view'], $views)){ +if (isset($_GET['view']) && in_array($_GET['view'], $views)) { $dashboard_view = $_GET['view']; } @@ -21,16 +21,16 @@ $link_blocks_view = $link_list_view = null; if (isset($dashboard_view) && $dashboard_view == 'list') { $link_blocks_view = ''. - Display::return_icon('blocks.png',get_lang('DashboardBlocks'),'',ICON_SIZE_MEDIUM).''; + Display::return_icon('blocks.png', get_lang('DashboardBlocks'), '', ICON_SIZE_MEDIUM).''; } else { $link_list_view = ''. - Display::return_icon('edit.png',get_lang('EditBlocks'),'',ICON_SIZE_MEDIUM).''; + Display::return_icon('edit.png', get_lang('EditBlocks'), '', ICON_SIZE_MEDIUM).''; } $configuration_link = null; if (api_is_platform_admin()) { $configuration_link = '' - .Display::return_icon('settings.png',get_lang('ConfigureDashboardPlugin'),'',ICON_SIZE_MEDIUM).''; + .Display::return_icon('settings.png', get_lang('ConfigureDashboardPlugin'), '', ICON_SIZE_MEDIUM).''; } echo '
'; diff --git a/main/document/record_audio.php b/main/document/record_audio.php index 2135a77fd8..97e9af7538 100755 --- a/main/document/record_audio.php +++ b/main/document/record_audio.php @@ -80,7 +80,7 @@ if (!is_dir($filepath)) { //groups //TODO: clean if (!empty($groupId)) { - $interbreadcrumb[] = array ("url" => "../group/group_space.php?".api_get_cidreq(), "name" => get_lang('GroupSpace')); + $interbreadcrumb[] = array("url" => "../group/group_space.php?".api_get_cidreq(), "name" => get_lang('GroupSpace')); $noPHP_SELF = true; $group = GroupManager :: get_group_properties($groupId); $path = explode('/', $dir); @@ -138,14 +138,14 @@ if (isset($document_data['parents'])) { //make some vars $wamiuserid = api_get_user_id(); -$htmlHeadXtra[] = ''; -$htmlHeadXtra[] = ''; -$htmlHeadXtra[] = ''; -$htmlHeadXtra[] = ''; +$htmlHeadXtra[] = ''; +$htmlHeadXtra[] = ''; +$htmlHeadXtra[] = ''; +$htmlHeadXtra[] = ''; $actions = Display::toolbarButton( - get_lang('BackTo') . ' ' . get_lang('DocumentsOverview'), - 'document.php?' . api_get_cidreq() . "&id=$document_id", + get_lang('BackTo').' '.get_lang('DocumentsOverview'), + 'document.php?'.api_get_cidreq()."&id=$document_id", 'arrow-left', 'default', [], diff --git a/main/document/showinframes.php b/main/document/showinframes.php index 8d1fbde1a2..959e4018d0 100755 --- a/main/document/showinframes.php +++ b/main/document/showinframes.php @@ -145,7 +145,7 @@ if (empty($document_data['parents'])) { } } else { foreach ($document_data['parents'] as $document_sub_data) { - if (!isset($_GET['createdir']) && $document_sub_data['id'] == $document_data['id']) { + if (!isset($_GET['createdir']) && $document_sub_data['id'] == $document_data['id']) { $document_sub_data['document_url'] = '#'; } $interbreadcrumb[] = array( @@ -173,7 +173,7 @@ $frameheight = 135; if ($is_courseAdmin) { $frameheight = 165; } -$js_glossary_in_documents = ' +$js_glossary_in_documents = ' $.frameReady(function(){ // $("
I am a div courses
").prependTo("body"); }, "top.mainFrame", @@ -193,7 +193,7 @@ $web_odf_supported_files = DocumentManager::get_web_odf_extension_list(); // PDF should be displayed with viewerJS $web_odf_supported_files[] = 'pdf'; if (in_array(strtolower($pathinfo['extension']), $web_odf_supported_files)) { - $show_web_odf = true; + $show_web_odf = true; /* $htmlHeadXtra[] = api_get_js('webodf/webodf.js'); $htmlHeadXtra[] = api_get_css(api_get_path(WEB_LIBRARY_PATH).'javascript/webodf/webodf.css'); @@ -236,7 +236,7 @@ if ($isChatFolder) { $htmlHeadXtra[] = api_get_js('highlight/highlight.pack.js'); $htmlHeadXtra[] = api_get_css(api_get_path(WEB_CSS_PATH).'chat.css'); $htmlHeadXtra[] = api_get_css( - api_get_path(WEB_LIBRARY_PATH) . 'javascript/highlight/styles/github.css' + api_get_path(WEB_LIBRARY_PATH).'javascript/highlight/styles/github.css' ); $htmlHeadXtra[] = '