Completed
Push — 1.10.x ( e39098...d9ba33 )
by Julito
34:46
created
main/course_info/download.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@  discard block
 block discarded – undo
10 10
 $this_section = SECTION_COURSES;
11 11
 
12 12
 if (isset($_GET['session']) && $_GET['session']) {
13
-	$archive_path = api_get_path(SYS_ARCHIVE_PATH).'temp/';
14
-	$_cid = true;
15
-	$is_courseAdmin = true;
13
+    $archive_path = api_get_path(SYS_ARCHIVE_PATH).'temp/';
14
+    $_cid = true;
15
+    $is_courseAdmin = true;
16 16
 } else {
17
-	$archive_path = api_get_path(SYS_ARCHIVE_PATH);
17
+    $archive_path = api_get_path(SYS_ARCHIVE_PATH);
18 18
 }
19 19
 
20 20
 $archive_file = isset($_GET['archive']) ? $_GET['archive'] : null;
@@ -23,20 +23,20 @@  discard block
 block discarded – undo
23 23
 list($extension) = getextension($archive_file);
24 24
 
25 25
 if (empty($extension) || !file_exists($archive_path.$archive_file)) {
26
-	exit;
26
+    exit;
27 27
 }
28 28
 
29 29
 $extension = strtolower($extension);
30 30
 $content_type = '';
31 31
 
32 32
 if (in_array($extension, array('xml', 'csv')) && (api_is_platform_admin(true) || api_is_drh())) {
33
-	$content_type = 'application/force-download';
33
+    $content_type = 'application/force-download';
34 34
 } elseif ($extension == 'zip' && $_cid && (api_is_platform_admin(true) || $is_courseAdmin)) {
35
-	$content_type = 'application/force-download';
35
+    $content_type = 'application/force-download';
36 36
 }
37 37
 
38 38
 if (empty($content_type)) {
39
-	api_not_allowed(true);
39
+    api_not_allowed(true);
40 40
 }
41 41
 
42 42
 if (Security::check_abs_path($archive_path.$archive_file, $archive_path)) {
Please login to merge, or discard this patch.
main/course_info/maintenance.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  */
7 7
 
8 8
 require_once '../inc/global.inc.php';
9
-$current_course_tool  = TOOL_COURSE_MAINTENANCE;
9
+$current_course_tool = TOOL_COURSE_MAINTENANCE;
10 10
 $this_section = SECTION_COURSES;
11 11
 
12 12
 $nameTools = get_lang('Maintenance');
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 <div class="sectioncomment"><?php echo get_lang('DescriptionRecycleCourse'); ?></div>
41 41
 
42 42
 <div class="sectiontitle"><?php Display::display_icon('delete.gif', get_lang('DelCourse')); ?>&nbsp;&nbsp;<a href="../course_info/delete_course.php?<?php echo api_get_cidreq(); ?>"><?php echo get_lang('DelCourse'); ?></a></div>
43
-<div class="sectioncomment"><?php echo get_lang('DescriptionDeleteCourse');	?></div>
43
+<div class="sectioncomment"><?php echo get_lang('DescriptionDeleteCourse'); ?></div>
44 44
 
45 45
 <?php
46 46
 // Footer
Please login to merge, or discard this patch.
main/course_info/legal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
         }
88 88
 
89 89
         if ($pluginLegal) {
90
-            header('Location:' .$url);
90
+            header('Location:'.$url);
91 91
             exit;
92 92
         }
93 93
     }
Please login to merge, or discard this patch.
main/course_info/maintenance_coach.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@
 block discarded – undo
27 27
 echo Display::page_subheader(
28 28
     Display::return_icon(
29 29
         'save_import.gif', get_lang('Backup')
30
-    ) . '&nbsp;&nbsp;' . get_lang('Backup')
30
+    ).'&nbsp;&nbsp;'.get_lang('Backup')
31 31
 );
32 32
 
33 33
 $url = api_get_path(
34 34
         WEB_CODE_PATH
35
-    ) . 'coursecopy/copy_course_session_selected.php?' . api_get_cidreq();
35
+    ).'coursecopy/copy_course_session_selected.php?'.api_get_cidreq();
36 36
 
37 37
 $link = Display::url(get_lang('CopyCourse'), $url);
38 38
 ?>
Please login to merge, or discard this patch.
main/course_info/delete_course.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 $current_course_name = $_course['name'];
22 22
 
23 23
 if (!api_is_allowed_to_edit()) {
24
-	api_not_allowed(true);
24
+    api_not_allowed(true);
25 25
 }
26 26
 
27 27
 $tool_name = get_lang('DelCourse');
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     $message .= '<p><a class="btn btn-primary" href="'.api_get_path(WEB_CODE_PATH).'course_info/maintenance.php?'.api_get_cidreq().'">'.
46 46
         get_lang('No').'</a>&nbsp;<a class="btn btn-danger" href="'.api_get_self().'?delete=yes&'.api_get_cidreq().'">'.
47 47
         get_lang('Yes').'</a></p>';
48
-	$interbreadcrumb[] = array('url' => 'maintenance.php', 'name' => get_lang('Maintenance'));
48
+    $interbreadcrumb[] = array('url' => 'maintenance.php', 'name' => get_lang('Maintenance'));
49 49
 }
50 50
 Display :: display_header($tool_name, 'Settings');
51 51
 echo Display::page_header($tool_name);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     Session::erase('_real_cid');
37 37
     $noPHP_SELF = true;
38 38
     $message = '<h2>'.get_lang('Course').' : '.$current_course_name.' ('.$current_course_code.') </h2>';
39
-    $message .=get_lang('HasDel');
39
+    $message .= get_lang('HasDel');
40 40
     $message .= '<br /><br /><a href="../../index.php">'.get_lang('BackHome').' '.api_get_setting('siteName').'</a>';
41 41
 
42 42
 } else {
Please login to merge, or discard this patch.
main/create_course/add_course.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 </script>';
41 41
 
42 42
 $interbreadcrumb[] = array(
43
-    'url' => api_get_path(WEB_PATH) . 'user_portal.php',
43
+    'url' => api_get_path(WEB_PATH).'user_portal.php',
44 44
     'name' => get_lang('MyCourses')
45 45
 );
46 46
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 );
91 91
 
92 92
 // Category category.
93
-$url = api_get_path(WEB_AJAX_PATH) . 'course.ajax.php?a=search_category';
93
+$url = api_get_path(WEB_AJAX_PATH).'course.ajax.php?a=search_category';
94 94
 
95 95
 $form->addElement(
96 96
     'select_ajax',
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
                 $url .= 'course_info/start.php?cidReq=';
300 300
                 $url .= $course_info['code'];
301 301
                 $url .= '&first=1';
302
-                header('Location: ' . $url);
302
+                header('Location: '.$url);
303 303
                 exit;
304 304
             } else {
305 305
                 $message = Display::return_message(
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
 
327 327
             if ($request_id) {
328 328
                 $course_request_info = CourseRequestManager::get_course_request_info($request_id);
329
-                $message = (is_array($course_request_info) ? '<strong>' . $course_request_info['code'] . '</strong> : ' : '') . get_lang('CourseRequestCreated');
329
+                $message = (is_array($course_request_info) ? '<strong>'.$course_request_info['code'].'</strong> : ' : '').get_lang('CourseRequestCreated');
330 330
                 $message = Display::return_message(
331 331
                     $message,
332 332
                     'confirmation',
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
                     'div',
337 337
                     Display::url(
338 338
                         get_lang('Enter'),
339
-                        api_get_path(WEB_PATH) . 'user_portal.php',
339
+                        api_get_path(WEB_PATH).'user_portal.php',
340 340
                         ['class' => 'btn btn-default']
341 341
                     ),
342 342
                     ['style' => 'float: left; margin:0px; padding: 0px;']
Please login to merge, or discard this patch.
main/work/edit_work.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
 $htmlHeadXtra[] = to_javascript_work();
32 32
 $interbreadcrumb[] = array(
33
-    'url' => api_get_path(WEB_CODE_PATH) . 'work/work.php?' . api_get_cidreq(),
33
+    'url' => api_get_path(WEB_CODE_PATH).'work/work.php?'.api_get_cidreq(),
34 34
     'name' => get_lang('StudentPublications')
35 35
 );
36 36
 $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('Edit'));
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 $form = new FormValidator(
39 39
     'edit_dir',
40 40
     'post',
41
-    api_get_path(WEB_CODE_PATH) . 'work/edit_work.php?id=' . $workId . '&' . api_get_cidreq()
41
+    api_get_path(WEB_CODE_PATH).'work/edit_work.php?id='.$workId.'&'.api_get_cidreq()
42 42
 );
43 43
 $form->addElement('header', get_lang('Edit'));
44 44
 
Please login to merge, or discard this patch.
main/work/upload_corrections.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 use Symfony\Component\Finder\Finder;
6 6
 
7 7
 require_once '../inc/global.inc.php';
8
-$current_course_tool  = TOOL_STUDENTPUBLICATION;
8
+$current_course_tool = TOOL_STUDENTPUBLICATION;
9 9
 
10 10
 api_protect_course_script(true);
11 11
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $zip = new PclZip($_FILES['file']['tmp_name']);
71 71
 
72 72
         // Check the zip content (real size and file extension)
73
-        $zipFileList = (array)$zip->listContent();
73
+        $zipFileList = (array) $zip->listContent();
74 74
 
75 75
         $realSize = 0;
76 76
         foreach ($zipFileList as & $this_content) {
Please login to merge, or discard this patch.
main/work/download_comment_file.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     ) {
42 42
         if (Security::check_abs_path(
43 43
             $workData['file_path'],
44
-            api_get_path(SYS_COURSE_PATH) . api_get_course_path() . '/'
44
+            api_get_path(SYS_COURSE_PATH).api_get_course_path().'/'
45 45
         )
46 46
         ) {
47 47
             DocumentManager::file_send_for_download(
Please login to merge, or discard this patch.