Passed
Push — 1.10.x ( a2cc02...b21e58 )
by Yannick
608:36 queued 565:17
created
main/mySpace/course.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@
 block discarded – undo
36 36
 
37 37
 function count_courses()
38 38
 {
39
-	global $nb_courses;
40
-	return $nb_courses;
39
+    global $nb_courses;
40
+    return $nb_courses;
41 41
 }
42 42
 
43 43
 //checking if the current coach is the admin coach
Please login to merge, or discard this patch.
main/forum/download.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /* For licensing terms, see /license.txt */
3 3
 /**
4
- * This file is responsible for  passing requested documents to the browser.
5
- * Html files are parsed to fix a few problems with URLs,
6
- * but this code will hopefully be replaced soon by an Apache URL
7
- * rewrite mechanism.
8
- *
9
- * @package chamilo.document
10
- */
4
+     * This file is responsible for  passing requested documents to the browser.
5
+     * Html files are parsed to fix a few problems with URLs,
6
+     * but this code will hopefully be replaced soon by an Apache URL
7
+     * rewrite mechanism.
8
+     *
9
+     * @package chamilo.document
10
+     */
11 11
 
12 12
 session_cache_limiter('public');
13 13
 
Please login to merge, or discard this patch.
main/forum/viewthread_threaded.inc.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -457,8 +457,8 @@
 block discarded – undo
457 457
 
458 458
 // The post has been displayed => it can be removed from the what's new array
459 459
 if (isset($whatsnew_post_info[$forumId][$threadId][$row['post_id']])) {
460
-  unset($whatsnew_post_info[$forumId][$threadId][$row['post_id']]);
461
-  unset($_SESSION['whatsnew_post_info'][$forumId][$threadId][$row['post_id']]);
460
+    unset($whatsnew_post_info[$forumId][$threadId][$row['post_id']]);
461
+    unset($_SESSION['whatsnew_post_info'][$forumId][$threadId][$row['post_id']]);
462 462
 }
463 463
 echo "</table>";
464 464
 
Please login to merge, or discard this patch.
main/forum/viewforumcategory.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -500,7 +500,7 @@
 block discarded – undo
500 500
                 $html .= '</div>';
501 501
                 $html .= '</div></div>';
502 502
             }
503
-           echo $html;
503
+            echo $html;
504 504
         }
505 505
     }
506 506
     if (count($forum_list) == 0) {
Please login to merge, or discard this patch.
main/forum/viewpost.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /* For licensing terms, see /license.txt */
3 3
 /**
4
- * @package chamilo.forum
5
- */
4
+     * @package chamilo.forum
5
+     */
6 6
 
7 7
 require_once '../inc/global.inc.php';
8 8
 
Please login to merge, or discard this patch.
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/delete_course.php 1 patch
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.
main/work/downloadfolder.inc.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
 if (api_is_allowed_to_edit() || api_is_coach()) {
64 64
     //Search for all files that are not deleted => visibility != 2
65
-   $sql = "SELECT DISTINCT
65
+    $sql = "SELECT DISTINCT
66 66
                 url,
67 67
                 title,
68 68
                 description,
Please login to merge, or discard this patch.
main/coursecopy/classes/wiki.class.php 1 patch
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -9,43 +9,43 @@  discard block
 block discarded – undo
9 9
  */
10 10
 class Wiki extends Coursecopy\Resource
11 11
 {
12
-	public $id;
13
-	public $page_id;
14
-	public $reflink;
15
-	public $title;
16
-	public $content;
17
-	public $user_id;
18
-	public $group_id;
19
-	public $timestamp;
20
-	public $progress;
21
-	public $version;
12
+    public $id;
13
+    public $page_id;
14
+    public $reflink;
15
+    public $title;
16
+    public $content;
17
+    public $user_id;
18
+    public $group_id;
19
+    public $timestamp;
20
+    public $progress;
21
+    public $version;
22 22
 
23
-	/**
24
-	 * Wiki constructor.
25
-	 * @param int $id
26
-	 * @param int $page_id
27
-	 * @param $reflink
28
-	 * @param $title
29
-	 * @param $content
30
-	 * @param $user_id
31
-	 * @param $group_id
32
-	 * @param $timestamp
33
-	 * @param $progress
34
-	 * @param $version
35
-	 */
36
-	public function __construct(
37
-		$id,
38
-		$page_id,
39
-		$reflink,
40
-		$title,
41
-		$content,
42
-		$user_id,
43
-		$group_id,
44
-		$timestamp,
45
-		$progress,
46
-		$version
47
-	) {
48
-		parent::__construct($id,RESOURCE_WIKI);
23
+    /**
24
+     * Wiki constructor.
25
+     * @param int $id
26
+     * @param int $page_id
27
+     * @param $reflink
28
+     * @param $title
29
+     * @param $content
30
+     * @param $user_id
31
+     * @param $group_id
32
+     * @param $timestamp
33
+     * @param $progress
34
+     * @param $version
35
+     */
36
+    public function __construct(
37
+        $id,
38
+        $page_id,
39
+        $reflink,
40
+        $title,
41
+        $content,
42
+        $user_id,
43
+        $group_id,
44
+        $timestamp,
45
+        $progress,
46
+        $version
47
+    ) {
48
+        parent::__construct($id,RESOURCE_WIKI);
49 49
         $this->id = $id;
50 50
         $this->page_id = $page_id;
51 51
         $this->reflink = $reflink;
@@ -56,11 +56,11 @@  discard block
 block discarded – undo
56 56
         $this->dtime = $timestamp;
57 57
         $this->progress = $progress;
58 58
         $this->version = $version;
59
-	}
59
+    }
60 60
 
61
-	public function show()
62
-	{
63
-		parent::show();
64
-		echo $this->reflink.' ('. (empty($this->group_id) ? get_lang('Everyone') : get_lang('Group') . ' ' .  $this->group_id) .') ' . '<i>(' . $this->dtime . ')</i>';
65
-	}
61
+    public function show()
62
+    {
63
+        parent::show();
64
+        echo $this->reflink.' ('. (empty($this->group_id) ? get_lang('Everyone') : get_lang('Group') . ' ' .  $this->group_id) .') ' . '<i>(' . $this->dtime . ')</i>';
65
+    }
66 66
 }
Please login to merge, or discard this patch.