Completed
Push — 1.10.x ( f2aaaf...ef00db )
by Yannick
241:15 queued 197:35
created
main/coursecopy/classes/Link.class.php 2 patches
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -11,33 +11,33 @@  discard block
 block discarded – undo
11 11
  */
12 12
 class Link extends Coursecopy\Resource
13 13
 {
14
-	/**
15
-	 * The title
16
-	 */
14
+    /**
15
+     * The title
16
+     */
17 17
     public $title;
18
-	/**
19
-	 * The URL
20
-	 */
18
+    /**
19
+     * The URL
20
+     */
21 21
     public $url;
22
-	/**
23
-	 * The description
24
-	 */
22
+    /**
23
+     * The description
24
+     */
25 25
     public $description;
26
-	/**
27
-	 * Id of this links category
28
-	 */
26
+    /**
27
+     * Id of this links category
28
+     */
29 29
     public $category_id;
30
-	/**
31
-	 * Display link on course homepage
32
-	 */
30
+    /**
31
+     * Display link on course homepage
32
+     */
33 33
     public $on_homepage;
34
-	/**
35
-	 * Create a new Link
36
-	 * @param int $id The id of this link in the Chamilo-course
37
-	 * @param string $title
38
-	 * @param string $url
39
-	 * @param string $description
40
-	 */
34
+    /**
35
+     * Create a new Link
36
+     * @param int $id The id of this link in the Chamilo-course
37
+     * @param string $title
38
+     * @param string $url
39
+     * @param string $description
40
+     */
41 41
     public function __construct(
42 42
         $id,
43 43
         $title,
@@ -46,21 +46,21 @@  discard block
 block discarded – undo
46 46
         $category_id,
47 47
         $on_homepage
48 48
     )
49
-	{
50
-		parent::__construct($id,RESOURCE_LINK);
51
-		$this->title = $title;
52
-		$this->url = $url;
53
-		$this->description = $description;
54
-		$this->category_id = $category_id;
55
-		$this->on_homepage = $on_homepage;
56
-	}
49
+    {
50
+        parent::__construct($id,RESOURCE_LINK);
51
+        $this->title = $title;
52
+        $this->url = $url;
53
+        $this->description = $description;
54
+        $this->category_id = $category_id;
55
+        $this->on_homepage = $on_homepage;
56
+    }
57 57
 
58 58
     /**
59
-	 * Show this resource
60
-	 */
59
+     * Show this resource
60
+     */
61 61
     public function show()
62
-	{
63
-		parent::show();
64
-		echo $this->title.' ('.$this->url.')';
65
-	}
62
+    {
63
+        parent::show();
64
+        echo $this->title.' ('.$this->url.')';
65
+    }
66 66
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         $on_homepage
48 48
     )
49 49
 	{
50
-		parent::__construct($id,RESOURCE_LINK);
50
+		parent::__construct($id, RESOURCE_LINK);
51 51
 		$this->title = $title;
52 52
 		$this->url = $url;
53 53
 		$this->description = $description;
Please login to merge, or discard this patch.
main/coursecopy/classes/SurveyInvitation.class.php 2 patches
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -10,52 +10,52 @@
 block discarded – undo
10 10
  */
11 11
 class SurveyInvitation extends Coursecopy\Resource
12 12
 {
13
-	/**
14
-	 * Survey code
15
-	 */
16
-	public $code;
17
-	/**
18
-	 * User info
19
-	 */
20
-	public $user;
21
-	/**
22
-	 * Invitation code
23
-	 */
24
-	public $invitation_code;
25
-	/**
26
-	 * Invitation date
27
-	 */
28
-	public $invitation_date;
29
-	/**
30
-	 * Reminder date
31
-	 */
32
-	public $reminder_date;
13
+    /**
14
+     * Survey code
15
+     */
16
+    public $code;
17
+    /**
18
+     * User info
19
+     */
20
+    public $user;
21
+    /**
22
+     * Invitation code
23
+     */
24
+    public $invitation_code;
25
+    /**
26
+     * Invitation date
27
+     */
28
+    public $invitation_date;
29
+    /**
30
+     * Reminder date
31
+     */
32
+    public $reminder_date;
33 33
 
34
-	/**
35
-	 * Create a new SurveyInvitation
36
-	 * @param	int	 $id
37
-	 * @param string $code
38
-	 * @param string $user
39
-	 * @param string $invitation_code
40
-	 * @param string $invitation_date
41
-	 * @param string $reminder_date
42
-	 */
43
-	public function __construct($id,$code,$user,$invitation_code,$invitation_date,$reminder_date)
44
-	{
45
-		parent::__construct($id, RESOURCE_SURVEYINVITATION);
46
-		$this->code = $code;
47
-		$this->user = $user;
48
-		$this->invitation_code = $invitation_code;
49
-		$this->invitation_date = $invitation_date;
50
-		$this->reminder_date = $reminder_date;
51
-	}
34
+    /**
35
+     * Create a new SurveyInvitation
36
+     * @param	int	 $id
37
+     * @param string $code
38
+     * @param string $user
39
+     * @param string $invitation_code
40
+     * @param string $invitation_date
41
+     * @param string $reminder_date
42
+     */
43
+    public function __construct($id,$code,$user,$invitation_code,$invitation_date,$reminder_date)
44
+    {
45
+        parent::__construct($id, RESOURCE_SURVEYINVITATION);
46
+        $this->code = $code;
47
+        $this->user = $user;
48
+        $this->invitation_code = $invitation_code;
49
+        $this->invitation_date = $invitation_date;
50
+        $this->reminder_date = $reminder_date;
51
+    }
52 52
 
53
-	/**
54
-	 * Show this invitation
55
-	 */
56
-	function show()
57
-	{
58
-		parent::show();
59
-		echo $this->invitation_code;
60
-	}
53
+    /**
54
+     * Show this invitation
55
+     */
56
+    function show()
57
+    {
58
+        parent::show();
59
+        echo $this->invitation_code;
60
+    }
61 61
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 	 * @param string $invitation_date
41 41
 	 * @param string $reminder_date
42 42
 	 */
43
-	public function __construct($id,$code,$user,$invitation_code,$invitation_date,$reminder_date)
43
+	public function __construct($id, $code, $user, $invitation_code, $invitation_date, $reminder_date)
44 44
 	{
45 45
 		parent::__construct($id, RESOURCE_SURVEYINVITATION);
46 46
 		$this->code = $code;
Please login to merge, or discard this patch.
main/coursecopy/classes/LinkCategory.class.php 2 patches
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -10,39 +10,39 @@
 block discarded – undo
10 10
  */
11 11
 class LinkCategory extends Coursecopy\Resource
12 12
 {
13
-	/**
14
-	 * The title
15
-	 */
16
-	public $title;
17
-	/**
18
-	 * The description
19
-	 */
20
-	public $description;
21
-	/**
22
-	 * The display order
23
-	 */
24
-	public $display_order;
13
+    /**
14
+     * The title
15
+     */
16
+    public $title;
17
+    /**
18
+     * The description
19
+     */
20
+    public $description;
21
+    /**
22
+     * The display order
23
+     */
24
+    public $display_order;
25 25
 
26
-	/**
27
-	 * Create a new LinkCategory
28
-	 * @param int $id
29
-	 * @param string $title
30
-	 * @param string $description
31
-	 */
32
-	function __construct($id,$title,$description,$display_order)
33
-	{
34
-		parent::__construct($id,RESOURCE_LINKCATEGORY);
35
-		$this->title = $title;
36
-		$this->description = $description;
37
-		$this->display_order = $display_order;
38
-	}
26
+    /**
27
+     * Create a new LinkCategory
28
+     * @param int $id
29
+     * @param string $title
30
+     * @param string $description
31
+     */
32
+    function __construct($id,$title,$description,$display_order)
33
+    {
34
+        parent::__construct($id,RESOURCE_LINKCATEGORY);
35
+        $this->title = $title;
36
+        $this->description = $description;
37
+        $this->display_order = $display_order;
38
+    }
39 39
 
40
-	/**
41
-	 * Show this LinkCategory
42
-	 */
43
-	function show()
44
-	{
45
-		parent::show();
46
-		echo $this->title.' '.$this->description.'<br />';
47
-	}
40
+    /**
41
+     * Show this LinkCategory
42
+     */
43
+    function show()
44
+    {
45
+        parent::show();
46
+        echo $this->title.' '.$this->description.'<br />';
47
+    }
48 48
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@
 block discarded – undo
29 29
 	 * @param string $title
30 30
 	 * @param string $description
31 31
 	 */
32
-	function __construct($id,$title,$description,$display_order)
32
+	function __construct($id, $title, $description, $display_order)
33 33
 	{
34
-		parent::__construct($id,RESOURCE_LINKCATEGORY);
34
+		parent::__construct($id, RESOURCE_LINKCATEGORY);
35 35
 		$this->title = $title;
36 36
 		$this->description = $description;
37 37
 		$this->display_order = $display_order;
Please login to merge, or discard this patch.
main/coursecopy/classes/CourseDescription.class.php 2 patches
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -10,39 +10,39 @@
 block discarded – undo
10 10
  */
11 11
 class CourseDescription extends Resource
12 12
 {
13
-	/**
14
-	 * The title
15
-	 */
16
-	public $title;
17
-	/**
18
-	 * The content
19
-	 */
20
-	public $content;
21
-	/**
22
-	 * The description type
23
-	 */
24
-	public $description_type;
13
+    /**
14
+     * The title
15
+     */
16
+    public $title;
17
+    /**
18
+     * The content
19
+     */
20
+    public $content;
21
+    /**
22
+     * The description type
23
+     */
24
+    public $description_type;
25 25
 
26
-	/**
27
-	 * Create a new course description
28
-	 * @param int $id
29
-	 * @param string $title
30
-	 * @param string $content
31
-	 */
32
-	public function __construct($id,$title,$content,$description_type)
33
-	{
34
-		parent::__construct($id,RESOURCE_COURSEDESCRIPTION);
35
-		$this->title = $title;
36
-		$this->content = $content;
37
-		$this->description_type = $description_type;
38
-	}
26
+    /**
27
+     * Create a new course description
28
+     * @param int $id
29
+     * @param string $title
30
+     * @param string $content
31
+     */
32
+    public function __construct($id,$title,$content,$description_type)
33
+    {
34
+        parent::__construct($id,RESOURCE_COURSEDESCRIPTION);
35
+        $this->title = $title;
36
+        $this->content = $content;
37
+        $this->description_type = $description_type;
38
+    }
39 39
 
40
-	/**
41
-	 * Show this Event
42
-	 */
43
-	function show()
44
-	{
45
-		parent::show();
46
-		echo $this->title;
47
-	}
40
+    /**
41
+     * Show this Event
42
+     */
43
+    function show()
44
+    {
45
+        parent::show();
46
+        echo $this->title;
47
+    }
48 48
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@
 block discarded – undo
29 29
 	 * @param string $title
30 30
 	 * @param string $content
31 31
 	 */
32
-	public function __construct($id,$title,$content,$description_type)
32
+	public function __construct($id, $title, $content, $description_type)
33 33
 	{
34
-		parent::__construct($id,RESOURCE_COURSEDESCRIPTION);
34
+		parent::__construct($id, RESOURCE_COURSEDESCRIPTION);
35 35
 		$this->title = $title;
36 36
 		$this->content = $content;
37 37
 		$this->description_type = $description_type;
Please login to merge, or discard this patch.
main/coursecopy/classes/ScormDocument.class.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -13,18 +13,18 @@
 block discarded – undo
13 13
     public $path;
14 14
     public $title;
15 15
 
16
-	/**
17
-	 * Create a new Scorm Document
18
-	 * @param int $id
19
-	 * @param string $path
20
-	 * @param string $title
21
-	 */
16
+    /**
17
+     * Create a new Scorm Document
18
+     * @param int $id
19
+     * @param string $path
20
+     * @param string $title
21
+     */
22 22
     public function __construct($id, $path, $title)
23
-	{
24
-		parent::__construct($id,RESOURCE_SCORM);
25
-		$this->path = 'scorm'.$path;
26
-		$this->title = $title;
27
-	}
23
+    {
24
+        parent::__construct($id,RESOURCE_SCORM);
25
+        $this->path = 'scorm'.$path;
26
+        $this->title = $title;
27
+    }
28 28
 
29 29
     /**
30 30
      * Show this document
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 	 */
22 22
     public function __construct($id, $path, $title)
23 23
 	{
24
-		parent::__construct($id,RESOURCE_SCORM);
24
+		parent::__construct($id, RESOURCE_SCORM);
25 25
 		$this->path = 'scorm'.$path;
26 26
 		$this->title = $title;
27 27
 	}
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         echo $path;
37 37
         if (!empty($this->title)) {
38 38
             if (strpos($path, $this->title) === false) {
39
-                echo " - " . $this->title;
39
+                echo " - ".$this->title;
40 40
             }
41 41
         }
42 42
     }
Please login to merge, or discard this patch.
main/coursecopy/classes/Survey.class.php 2 patches
Indentation   +103 added lines, -103 removed lines patch added patch discarded remove patch
@@ -10,86 +10,86 @@  discard block
 block discarded – undo
10 10
  */
11 11
 class Survey extends Coursecopy\Resource
12 12
 {
13
-	/**
14
-	 * The survey code
15
-	 */
13
+    /**
14
+     * The survey code
15
+     */
16 16
     public $code;
17
-	/**
18
-	 * The title and subtitle
19
-	 */
17
+    /**
18
+     * The title and subtitle
19
+     */
20 20
     public $title;
21 21
     public $subtitle;
22
-	/**
23
-	 * The author's name
24
-	 */
22
+    /**
23
+     * The author's name
24
+     */
25 25
     public $author;
26
-	/**
27
-	 * The survey's language
28
-	 */
26
+    /**
27
+     * The survey's language
28
+     */
29 29
     public $lang;
30
-	/**
31
-	 * The availability period
32
-	 */
30
+    /**
31
+     * The availability period
32
+     */
33 33
     public $avail_from;
34 34
     public $avail_till;
35
-	/**
36
-	 * Flag for shared status
37
-	 */
35
+    /**
36
+     * Flag for shared status
37
+     */
38 38
     public $is_shared;
39
-	/**
40
-	 * Template used
41
-	 */
39
+    /**
40
+     * Template used
41
+     */
42 42
     public $template;
43
-	/**
44
-	 * Introduction text
45
-	 */
43
+    /**
44
+     * Introduction text
45
+     */
46 46
     public $intro;
47
-	/**
48
-	 * Thanks text
49
-	 */
47
+    /**
48
+     * Thanks text
49
+     */
50 50
     public $surveythanks;
51
-	/**
52
-	 * Creation date
53
-	 */
51
+    /**
52
+     * Creation date
53
+     */
54 54
     public $creation_date;
55
-	/**
56
-	 * Invitation status
57
-	 */
55
+    /**
56
+     * Invitation status
57
+     */
58 58
     public $invited;
59
-	/**
60
-	 * Answer status
61
-	 */
59
+    /**
60
+     * Answer status
61
+     */
62 62
     public $answered;
63
-	/**
64
-	 * Invitation and reminder mail contents
65
-	 */
63
+    /**
64
+     * Invitation and reminder mail contents
65
+     */
66 66
     public $invite_mail;
67 67
     public $reminder_mail;
68
-	/**
69
-	 * Questions and invitations lists
70
-	 */
68
+    /**
69
+     * Questions and invitations lists
70
+     */
71 71
     public $question_ids;
72 72
     public $invitation_ids;
73 73
 
74
-	/**
75
-	 * Create a new Survey
76
-	 * @param string $code
77
-	 * @param string $title
78
-	 * @param string $subtitle
79
-	 * @param string $author
80
-	 * @param string $lang
81
-	 * @param string $avail_from
82
-	 * @param string $avail_till
83
-	 * @param char $is_shared
84
-	 * @param string $template
85
-	 * @param string $intro
86
-	 * @param string $surveythanks
87
-	 * @param string $creation_date
88
-	 * @param int $invited
89
-	 * @param int $answered
90
-	 * @param string $invite_mail
91
-	 * @param string $reminder_mail
92
-	 */
74
+    /**
75
+     * Create a new Survey
76
+     * @param string $code
77
+     * @param string $title
78
+     * @param string $subtitle
79
+     * @param string $author
80
+     * @param string $lang
81
+     * @param string $avail_from
82
+     * @param string $avail_till
83
+     * @param char $is_shared
84
+     * @param string $template
85
+     * @param string $intro
86
+     * @param string $surveythanks
87
+     * @param string $creation_date
88
+     * @param int $invited
89
+     * @param int $answered
90
+     * @param string $invite_mail
91
+     * @param string $reminder_mail
92
+     */
93 93
     public function __construct(
94 94
         $id,
95 95
         $code,
@@ -109,49 +109,49 @@  discard block
 block discarded – undo
109 109
         $invite_mail,
110 110
         $reminder_mail
111 111
     ) {
112
-		parent::__construct($id,RESOURCE_SURVEY);
113
-		$this->code = $code;
114
-		$this->title = $title;
115
-		$this->subtitle = $subtitle;
116
-		$this->author = $author;
117
-		$this->lang = $lang;
118
-		$this->avail_from = $avail_from;
119
-		$this->avail_till = $avail_till;
120
-		$this->is_shared = $is_shared;
121
-		$this->template = $template;
122
-		$this->intro = $intro;
123
-		$this->surveythanks = $surveythanks;
124
-		$this->creation_date = $creation_date;
125
-		$this->invited = $invited;
126
-		$this->answered = $answered;
127
-		$this->invite_mail = $invite_mail;
128
-		$this->reminder_mail = $reminder_mail;
129
-		$this->question_ids = array();
130
-		$this->invitation_ids = array();
131
-	}
112
+        parent::__construct($id,RESOURCE_SURVEY);
113
+        $this->code = $code;
114
+        $this->title = $title;
115
+        $this->subtitle = $subtitle;
116
+        $this->author = $author;
117
+        $this->lang = $lang;
118
+        $this->avail_from = $avail_from;
119
+        $this->avail_till = $avail_till;
120
+        $this->is_shared = $is_shared;
121
+        $this->template = $template;
122
+        $this->intro = $intro;
123
+        $this->surveythanks = $surveythanks;
124
+        $this->creation_date = $creation_date;
125
+        $this->invited = $invited;
126
+        $this->answered = $answered;
127
+        $this->invite_mail = $invite_mail;
128
+        $this->reminder_mail = $reminder_mail;
129
+        $this->question_ids = array();
130
+        $this->invitation_ids = array();
131
+    }
132 132
 
133
-	/**
134
-	 * Add a question to this survey
135
-	 */
136
-	function add_question($id)
137
-	{
138
-		$this->question_ids[] = $id;
139
-	}
133
+    /**
134
+     * Add a question to this survey
135
+     */
136
+    function add_question($id)
137
+    {
138
+        $this->question_ids[] = $id;
139
+    }
140 140
 
141
-	/**
142
-	 * Add an invitation to this survey
143
-	 */
144
-	function add_invitation($id)
145
-	{
146
-		$this->invitation_ids[] = $id;
147
-	}
141
+    /**
142
+     * Add an invitation to this survey
143
+     */
144
+    function add_invitation($id)
145
+    {
146
+        $this->invitation_ids[] = $id;
147
+    }
148 148
 
149
-	/**
150
-	 * Show this survey
151
-	 */
152
-	function show()
153
-	{
154
-		parent::show();
155
-		echo $this->code.' - '.$this->title;
156
-	}
149
+    /**
150
+     * Show this survey
151
+     */
152
+    function show()
153
+    {
154
+        parent::show();
155
+        echo $this->code.' - '.$this->title;
156
+    }
157 157
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
         $invite_mail,
110 110
         $reminder_mail
111 111
     ) {
112
-		parent::__construct($id,RESOURCE_SURVEY);
112
+		parent::__construct($id, RESOURCE_SURVEY);
113 113
 		$this->code = $code;
114 114
 		$this->title = $title;
115 115
 		$this->subtitle = $subtitle;
Please login to merge, or discard this patch.
main/coursecopy/classes/Thematic.class.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@
 block discarded – undo
11 11
 {
12 12
     public $params = array();
13 13
     public $thematic_advance_list = array();
14
-	public $thematic_plan_list = array();
14
+    public $thematic_plan_list = array();
15 15
 
16 16
     /**
17
-    * Create a new Thematic
18
-    *
19
-    * @param array parameters
20
-    */
17
+     * Create a new Thematic
18
+     *
19
+     * @param array parameters
20
+     */
21 21
     public function __construct($params)
22 22
     {
23 23
         parent::__construct($params['id'], RESOURCE_THEMATIC);
Please login to merge, or discard this patch.
main/coursecopy/classes/CourseRecycler.class.php 3 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -619,8 +619,8 @@  discard block
 block discarded – undo
619 619
     }
620 620
 
621 621
     /**
622
-    * Recycle Thematics
623
-    */
622
+     * Recycle Thematics
623
+     */
624 624
     public function recycle_thematic($session_id = 0)
625 625
     {
626 626
         if ($this->course->has_resources(RESOURCE_THEMATIC)) {
@@ -685,8 +685,8 @@  discard block
 block discarded – undo
685 685
     }
686 686
 
687 687
     /**
688
-    * Recycle Attendances
689
-    */
688
+     * Recycle Attendances
689
+     */
690 690
     public function recycle_attendance($session_id = 0)
691 691
     {
692 692
         if ($this->course->has_resources(RESOURCE_ATTENDANCE)) {
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     public function recycle_glossary()
161 161
     {
162 162
         if ($this->course->has_resources(RESOURCE_GLOSSARY)) {
163
-            $table_glossary	= Database::get_course_table(TABLE_GLOSSARY);
163
+            $table_glossary = Database::get_course_table(TABLE_GLOSSARY);
164 164
             $ids = implode(',', array_filter(array_keys($this->course->resources[RESOURCE_GLOSSARY])));
165 165
             if (!empty($ids)) {
166 166
                 $sql = "DELETE FROM ".$table_glossary."
@@ -556,7 +556,7 @@  discard block
 block discarded – undo
556 556
                     if (trim($learnpath->path) != '') {
557 557
                         // when $learnpath->path value is incorrect for some reason.
558 558
                         // The directory trat contains files of the SCORM package is to be deleted.
559
-                        $scorm_package_dir = realpath($this->course->path . 'scorm/' . $learnpath->path);
559
+                        $scorm_package_dir = realpath($this->course->path.'scorm/'.$learnpath->path);
560 560
                         rmdirr($scorm_package_dir);
561 561
                     }
562 562
                 }
@@ -632,7 +632,7 @@  discard block
 block discarded – undo
632 632
             foreach ($resources[RESOURCE_THEMATIC] as $last_id => $thematic) {
633 633
                 if (is_numeric($last_id)) {
634 634
 
635
-                    foreach($thematic->thematic_advance_list as $thematic_advance) {
635
+                    foreach ($thematic->thematic_advance_list as $thematic_advance) {
636 636
                         $cond = array(
637 637
                             'id = ? AND  c_id = ?' => array(
638 638
                                 $thematic_advance['id'],
@@ -649,7 +649,7 @@  discard block
 block discarded – undo
649 649
                         Database::delete($table_thematic_advance, $cond);
650 650
                     }
651 651
 
652
-                    foreach($thematic->thematic_plan_list as $thematic_plan) {
652
+                    foreach ($thematic->thematic_plan_list as $thematic_plan) {
653 653
                         $cond = array(
654 654
                             'id = ? AND  c_id = ?' => array(
655 655
                                 $thematic_plan['id'],
@@ -678,7 +678,7 @@  discard block
 block discarded – undo
678 678
                         'ThematicDeleted',
679 679
                         api_get_user_id()
680 680
                     );
681
-                    Database::delete($table_thematic,$cond);
681
+                    Database::delete($table_thematic, $cond);
682 682
                 }
683 683
             }
684 684
         }
@@ -696,7 +696,7 @@  discard block
 block discarded – undo
696 696
             $resources = $this->course->resources;
697 697
             foreach ($resources[RESOURCE_ATTENDANCE] as $last_id => $obj) {
698 698
                 if (is_numeric($last_id)) {
699
-                    foreach($obj->attendance_calendar as $attendance_calendar) {
699
+                    foreach ($obj->attendance_calendar as $attendance_calendar) {
700 700
                         $cond = array('id = ? AND c_id = ? '=>array($attendance_calendar['id'], $this->course_id));
701 701
                         Database::delete($table_attendance_calendar, $cond);
702 702
                     }
@@ -720,7 +720,7 @@  discard block
 block discarded – undo
720 720
     public function recycle_work($session_id = 0)
721 721
     {
722 722
         if ($this->course->has_resources(RESOURCE_WORK)) {
723
-            $table_work          = Database :: get_course_table(TABLE_STUDENT_PUBLICATION);
723
+            $table_work = Database :: get_course_table(TABLE_STUDENT_PUBLICATION);
724 724
             $table_work_assignment = Database :: get_course_table(TABLE_STUDENT_PUBLICATION_ASSIGNMENT);
725 725
 
726 726
             $resources = $this->course->resources;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-     * @return bool
41
+     * @return false|null
42 42
      */
43 43
     public function create_user_folder()
44 44
     {
Please login to merge, or discard this patch.
main/coursecopy/classes/ToolIntro.class.php 1 patch
Indentation   +75 added lines, -75 removed lines patch added patch discarded remove patch
@@ -10,82 +10,82 @@
 block discarded – undo
10 10
  */
11 11
 class ToolIntro extends Coursecopy\Resource
12 12
 {
13
-	public $id;
13
+    public $id;
14 14
 
15
-	/**
16
-	 * intro text
17
-	 */
18
-	public $intro_text;
15
+    /**
16
+     * intro text
17
+     */
18
+    public $intro_text;
19 19
 
20
-	/**
21
-	 * Create a new text introduction
22
-	 * @param int $id The id of this tool introduction in the Chamilo-course
23
-	 * @param string $intro_text
24
-	 */
25
-	public function __construct($id, $intro_text)
26
-	{
27
-		parent::__construct($id, RESOURCE_TOOL_INTRO);
28
-		$this->id = $id;
29
-		$this->intro_text = $intro_text;
30
-	}
20
+    /**
21
+     * Create a new text introduction
22
+     * @param int $id The id of this tool introduction in the Chamilo-course
23
+     * @param string $intro_text
24
+     */
25
+    public function __construct($id, $intro_text)
26
+    {
27
+        parent::__construct($id, RESOURCE_TOOL_INTRO);
28
+        $this->id = $id;
29
+        $this->intro_text = $intro_text;
30
+    }
31 31
 
32
-	/**
33
-	 * Show this resource
34
-	 */
35
-	function show()
36
-	{
37
-		parent::show();
38
-		switch ($this->id)
39
-		{
40
-			case TOOL_DOCUMENT:
41
-				$lang_id = 'Documents';
42
-				break;
43
-			case TOOL_CALENDAR_EVENT:
44
-				$lang_id = 'Agenda';
45
-				break;
46
-			case TOOL_LINK:
47
-				$lang_id = 'Links';
48
-				break;
49
-			case TOOL_LEARNPATH:
50
-				$lang_id = 'LearningPath';
51
-				break;
52
-			case TOOL_ANNOUNCEMENT:
53
-				$lang_id = 'Announcements';
54
-				break;
55
-			case TOOL_FORUM:
56
-				$lang_id = 'Forums';
57
-				break;
58
-			case TOOL_DROPBOX:
59
-				$lang_id = 'Dropbox';
60
-				break;
61
-			case TOOL_QUIZ:
62
-				$lang_id = 'Exercises';
63
-				break;
64
-			case TOOL_USER:
65
-				$lang_id = 'Users';
66
-				break;
67
-			case TOOL_GROUP:
68
-				$lang_id = 'Group';
69
-				break;
70
-			case TOOL_WIKI:
71
-				$lang_id = 'Wiki';
72
-				break;
73
-			case TOOL_STUDENTPUBLICATION:
74
-				$lang_id = 'StudentPublications';
75
-				break;
76
-			case TOOL_COURSE_HOMEPAGE:
77
-				$lang_id = 'CourseHomepageLink';
78
-				break;
79
-			case TOOL_GLOSSARY:
80
-				$lang_id = 'Glossary';
81
-				break;
82
-			case TOOL_NOTEBOOK:
83
-				$lang_id = 'Notebook';
84
-				break;
85
-			default:
86
-				$lang_id = ucfirst($this->id); // This is a wild guess.
87
-		}
88
-		echo '<strong>'.get_lang($lang_id, '').':</strong><br />';
89
-		echo $this->intro_text;
90
-	}
32
+    /**
33
+     * Show this resource
34
+     */
35
+    function show()
36
+    {
37
+        parent::show();
38
+        switch ($this->id)
39
+        {
40
+            case TOOL_DOCUMENT:
41
+                $lang_id = 'Documents';
42
+                break;
43
+            case TOOL_CALENDAR_EVENT:
44
+                $lang_id = 'Agenda';
45
+                break;
46
+            case TOOL_LINK:
47
+                $lang_id = 'Links';
48
+                break;
49
+            case TOOL_LEARNPATH:
50
+                $lang_id = 'LearningPath';
51
+                break;
52
+            case TOOL_ANNOUNCEMENT:
53
+                $lang_id = 'Announcements';
54
+                break;
55
+            case TOOL_FORUM:
56
+                $lang_id = 'Forums';
57
+                break;
58
+            case TOOL_DROPBOX:
59
+                $lang_id = 'Dropbox';
60
+                break;
61
+            case TOOL_QUIZ:
62
+                $lang_id = 'Exercises';
63
+                break;
64
+            case TOOL_USER:
65
+                $lang_id = 'Users';
66
+                break;
67
+            case TOOL_GROUP:
68
+                $lang_id = 'Group';
69
+                break;
70
+            case TOOL_WIKI:
71
+                $lang_id = 'Wiki';
72
+                break;
73
+            case TOOL_STUDENTPUBLICATION:
74
+                $lang_id = 'StudentPublications';
75
+                break;
76
+            case TOOL_COURSE_HOMEPAGE:
77
+                $lang_id = 'CourseHomepageLink';
78
+                break;
79
+            case TOOL_GLOSSARY:
80
+                $lang_id = 'Glossary';
81
+                break;
82
+            case TOOL_NOTEBOOK:
83
+                $lang_id = 'Notebook';
84
+                break;
85
+            default:
86
+                $lang_id = ucfirst($this->id); // This is a wild guess.
87
+        }
88
+        echo '<strong>'.get_lang($lang_id, '').':</strong><br />';
89
+        echo $this->intro_text;
90
+    }
91 91
 }
Please login to merge, or discard this patch.