Completed
Push — 1.10.x ( f2aaaf...ef00db )
by Yannick
241:15 queued 197:35
created
main/work/upload_from_template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 use ChamiloSession as Session;
5 5
 
6 6
 require_once '../inc/global.inc.php';
7
-$current_course_tool  = TOOL_STUDENTPUBLICATION;
7
+$current_course_tool = TOOL_STUDENTPUBLICATION;
8 8
 
9 9
 api_protect_course_script(true);
10 10
 
Please login to merge, or discard this patch.
main/coursecopy/create_backup.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
 
73 73
     $zip_file = CourseArchiver::write_course($course);
74 74
     Display::display_confirmation_message(get_lang('BackupCreated'));
75
-    echo '<br /><a class="btn btn-primary btn-large" href="' . api_get_path(WEB_CODE_PATH) . 'course_info/download.php?archive=' . $zip_file . '&' . api_get_cidreq() . '">
76
-    ' . get_lang('Download') . '</a>';
75
+    echo '<br /><a class="btn btn-primary btn-large" href="'.api_get_path(WEB_CODE_PATH).'course_info/download.php?archive='.$zip_file.'&'.api_get_cidreq().'">
76
+    ' . get_lang('Download').'</a>';
77 77
 
78 78
 } elseif (Security::check_token('post') && (
79 79
         isset($_POST['backup_option']) &&
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     if (!$course->has_resources()) {
96 96
         echo get_lang('NoResourcesToBackup');
97 97
     } else {
98
-        $form = new FormValidator('create_backup_form', 'post', api_get_self() . '?' . api_get_cidreq());
98
+        $form = new FormValidator('create_backup_form', 'post', api_get_self().'?'.api_get_cidreq());
99 99
         $form->addElement('header', get_lang('SelectOptionForBackup'));
100 100
         $form->addElement('radio', 'backup_option', '', get_lang('CreateFullBackup'), 'full_backup');
101 101
         $form->addElement('radio', 'backup_option', '', get_lang('LetMeSelectItems'), 'select_items');
Please login to merge, or discard this patch.
main/coursecopy/copy_course.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 // Setting the global file that gets the general configuration, the databases, the languages, ...
9 9
 require_once '../inc/global.inc.php';
10
-$current_course_tool  = TOOL_COURSE_MAINTENANCE;
10
+$current_course_tool = TOOL_COURSE_MAINTENANCE;
11 11
 api_protect_course_script(true);
12 12
 
13 13
 // Including additional libraries
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         $form->addGroup($group, '', get_lang('SameFilename'));
121 121
         $form->add_progress_bar();
122 122
         $form->addButtonSave(get_lang('CopyCourse'));
123
-        $form->setDefaults(array('copy_option' =>'select_items','same_file_name_option' => FILE_OVERWRITE));
123
+        $form->setDefaults(array('copy_option' =>'select_items', 'same_file_name_option' => FILE_OVERWRITE));
124 124
 
125 125
         // Add Security token
126 126
         $token = Security::get_token();
Please login to merge, or discard this patch.
main/coursecopy/classes/wiki.class.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 		$progress,
46 46
 		$version
47 47
 	) {
48
-		parent::__construct($id,RESOURCE_WIKI);
48
+		parent::__construct($id, RESOURCE_WIKI);
49 49
         $this->id = $id;
50 50
         $this->page_id = $page_id;
51 51
         $this->reflink = $reflink;
@@ -61,6 +61,6 @@  discard block
 block discarded – undo
61 61
 	public function show()
62 62
 	{
63 63
 		parent::show();
64
-		echo $this->reflink.' ('. (empty($this->group_id) ? get_lang('Everyone') : get_lang('Group') . ' ' .  $this->group_id) .') ' . '<i>(' . $this->dtime . ')</i>';
64
+		echo $this->reflink.' ('.(empty($this->group_id) ? get_lang('Everyone') : get_lang('Group').' '.$this->group_id).') '.'<i>('.$this->dtime.')</i>';
65 65
 	}
66 66
 }
Please login to merge, or discard this patch.
main/coursecopy/classes/Announcement.class.php 2 patches
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -10,25 +10,25 @@  discard block
 block discarded – undo
10 10
  */
11 11
 class Announcement extends Coursecopy\Resource
12 12
 {
13
-	/**
14
-	 * The title of the announcement
15
-	 */
13
+    /**
14
+     * The title of the announcement
15
+     */
16 16
     public $title;
17
-	/**
18
-	 * The content of the announcement
19
-	 */
17
+    /**
18
+     * The content of the announcement
19
+     */
20 20
     public $content;
21
-	/**
22
-	 * The date on which this announcement was made
23
-	 */
21
+    /**
22
+     * The date on which this announcement was made
23
+     */
24 24
     public $date;
25
-	/**
26
-	 * The display order of this announcement
27
-	 */
25
+    /**
26
+     * The display order of this announcement
27
+     */
28 28
     public $display_order;
29
-	/**
30
-	 * Has the e-mail been sent?
31
-	 */
29
+    /**
30
+     * Has the e-mail been sent?
31
+     */
32 32
     public $email_sent;
33 33
 
34 34
     public $attachment_path;
@@ -39,36 +39,36 @@  discard block
 block discarded – undo
39 39
 
40 40
     public $attachment_comment;
41 41
 
42
-	/**
43
-	 * Create a new announcement
44
-	 * @param int $id
45
-	 * @param string $title
46
-	 * @param string $content
47
-	 * @param string $date
48
-	 * @param int display_order
49
-	 */
42
+    /**
43
+     * Create a new announcement
44
+     * @param int $id
45
+     * @param string $title
46
+     * @param string $content
47
+     * @param string $date
48
+     * @param int display_order
49
+     */
50 50
     function __construct($id, $title, $content, $date, $display_order, $email_sent, $path, $filename, $size, $comment)
51 51
     {
52
-		parent::__construct($id,RESOURCE_ANNOUNCEMENT);
52
+        parent::__construct($id,RESOURCE_ANNOUNCEMENT);
53 53
 
54
-		$this->content	= $content;
55
-		$this->title 	= $title;
56
-		$this->date 	= $date;
57
-		$this->display_order	= $display_order;
58
-		$this->email_sent	 	= $email_sent;
54
+        $this->content	= $content;
55
+        $this->title 	= $title;
56
+        $this->date 	= $date;
57
+        $this->display_order	= $display_order;
58
+        $this->email_sent	 	= $email_sent;
59 59
 
60
-		$this->attachment_path 	= $path;
61
-		$this->attachment_filename = $filename;
62
-		$this->attachment_size 	= $size;
63
-		$this->attachment_comment 	= $comment;
64
-	}
60
+        $this->attachment_path 	= $path;
61
+        $this->attachment_filename = $filename;
62
+        $this->attachment_size 	= $size;
63
+        $this->attachment_comment 	= $comment;
64
+    }
65 65
 
66
-	/**
67
-	 * Show this announcement
68
-	 */
69
-	function show()
70
-	{
71
-		parent::show();
72
-		echo $this->date.': '.$this->title;
73
-	}
66
+    /**
67
+     * Show this announcement
68
+     */
69
+    function show()
70
+    {
71
+        parent::show();
72
+        echo $this->date.': '.$this->title;
73
+    }
74 74
 }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -49,13 +49,13 @@
 block discarded – undo
49 49
 	 */
50 50
     function __construct($id, $title, $content, $date, $display_order, $email_sent, $path, $filename, $size, $comment)
51 51
     {
52
-		parent::__construct($id,RESOURCE_ANNOUNCEMENT);
52
+		parent::__construct($id, RESOURCE_ANNOUNCEMENT);
53 53
 
54
-		$this->content	= $content;
55
-		$this->title 	= $title;
56
-		$this->date 	= $date;
57
-		$this->display_order	= $display_order;
58
-		$this->email_sent	 	= $email_sent;
54
+		$this->content = $content;
55
+		$this->title = $title;
56
+		$this->date = $date;
57
+		$this->display_order = $display_order;
58
+		$this->email_sent = $email_sent;
59 59
 
60 60
 		$this->attachment_path 	= $path;
61 61
 		$this->attachment_filename = $filename;
Please login to merge, or discard this patch.
main/coursecopy/classes/CourseCopyLearnpath.class.php 2 patches
Indentation   +182 added lines, -182 removed lines patch added patch discarded remove patch
@@ -8,194 +8,194 @@
 block discarded – undo
8 8
  */
9 9
 class CourseCopyLearnpath extends Coursecopy\Resource
10 10
 {
11
-	/**
12
-	 * Type of learnpath (can be dokeos (1), scorm (2), aicc (3))
13
-	 */
14
-	public $lp_type;
15
-	/**
16
-	 * The name
17
-	 */
18
-	public $name;
19
-	/**
20
-	 * The reference
21
-	 */
22
-	public $ref;
23
-	/**
24
-	 * The description
25
-	 */
26
-	public $description;
27
-	/**
28
-	 * Path to the learning path files
29
-	 */
30
-	public $path;
31
-	/**
32
-	 * Whether additional commits should be forced or not
33
-	 */
34
-	public $force_commit;
35
-	/**
36
-	 * View mode by default ('embedded' or 'fullscreen')
37
-	 */
38
-	public $default_view_mod;
39
-	/**
40
-	 * Default character encoding
41
-	 */
42
-	public $default_encoding;
43
-	/**
44
-	 * Display order
45
-	 */
46
-	public $display_order;
47
-	/**
48
-	 * Content editor/publisher
49
-	 */
50
-	public $content_maker;
51
-	/**
52
-	 * Location of the content (local or remote)
53
-	 */
54
-	public $content_local;
55
-	/**
56
-	 * License of the content
57
-	 */
58
-	public $content_license;
59
-	/**
60
-	 * Whether to prevent reinitialisation or not
61
-	 */
62
-	public $prevent_reinit;
63
-	/**
64
-	 * JavaScript library used
65
-	 */
66
-	public $js_lib;
67
-	/**
68
-	 * Debug level for this lp
69
-	 */
70
-	public $debug;
71
-	/**
72
-	 * The items
73
-	 */
74
-	public $items;
75
-	/**
76
-	 * The learnpath visibility on the homepage
77
-	 */
78
-	public $visibility;
11
+    /**
12
+     * Type of learnpath (can be dokeos (1), scorm (2), aicc (3))
13
+     */
14
+    public $lp_type;
15
+    /**
16
+     * The name
17
+     */
18
+    public $name;
19
+    /**
20
+     * The reference
21
+     */
22
+    public $ref;
23
+    /**
24
+     * The description
25
+     */
26
+    public $description;
27
+    /**
28
+     * Path to the learning path files
29
+     */
30
+    public $path;
31
+    /**
32
+     * Whether additional commits should be forced or not
33
+     */
34
+    public $force_commit;
35
+    /**
36
+     * View mode by default ('embedded' or 'fullscreen')
37
+     */
38
+    public $default_view_mod;
39
+    /**
40
+     * Default character encoding
41
+     */
42
+    public $default_encoding;
43
+    /**
44
+     * Display order
45
+     */
46
+    public $display_order;
47
+    /**
48
+     * Content editor/publisher
49
+     */
50
+    public $content_maker;
51
+    /**
52
+     * Location of the content (local or remote)
53
+     */
54
+    public $content_local;
55
+    /**
56
+     * License of the content
57
+     */
58
+    public $content_license;
59
+    /**
60
+     * Whether to prevent reinitialisation or not
61
+     */
62
+    public $prevent_reinit;
63
+    /**
64
+     * JavaScript library used
65
+     */
66
+    public $js_lib;
67
+    /**
68
+     * Debug level for this lp
69
+     */
70
+    public $debug;
71
+    /**
72
+     * The items
73
+     */
74
+    public $items;
75
+    /**
76
+     * The learnpath visibility on the homepage
77
+     */
78
+    public $visibility;
79 79
 
80
-	/**
81
-	 * Author info
82
-	 */
83
-	public $author;
80
+    /**
81
+     * Author info
82
+     */
83
+    public $author;
84 84
 
85
-	/**
86
-	 * Author's image
87
-	 */
88
-	public $preview_image;
85
+    /**
86
+     * Author's image
87
+     */
88
+    public $preview_image;
89 89
 
90
-	/**
91
-	 * Create a new learnpath
92
-	 * @param integer ID
93
-	 * @param integer Type (1,2,3,...)
94
-	 * @param string $name
95
-	 * @param string $path
96
-	 * @param string $ref
97
-	 * @param string $description
98
-	 * @param string $content_local
99
-	 * @param string $default_encoding
100
-	 * @param string $default_view_mode
101
-	 * @param bool   $prevent_reinit
102
-	 * @param bool   $force_commit
103
-	 * @param string $content_maker
104
-	 * @param integer $display_order
105
-	 * @param string $js_lib
106
-	 * @param string $content_license
107
-	 * @param integer $debug
108
-	 * @param string $visibility
109
-	 * @param array  $items
110
-	 */
111
-	public function __construct(
112
-		$id,
113
-		$type,
114
-		$name,
115
-		$path,
116
-		$ref,
117
-		$description,
118
-		$content_local,
119
-		$default_encoding,
120
-		$default_view_mode,
121
-		$prevent_reinit,
122
-		$force_commit,
123
-		$content_maker,
124
-		$display_order,
125
-		$js_lib,
126
-		$content_license,
127
-		$debug,
128
-		$visibility,
129
-		$author,
130
-		$preview_image,
131
-		$use_max_score,
132
-		$autolaunch,
133
-		$created_on,
134
-		$modified_on,
135
-		$publicated_on,
136
-		$expired_on,
137
-		$session_id,
138
-		$items
139
-	) {
140
-		parent::__construct($id, RESOURCE_LEARNPATH);
141
-		$this->lp_type = $type;
142
-		$this->name = $name;
143
-		$this->path = $path;
144
-		$this->ref = $ref;
145
-		$this->description = $description;
146
-		$this->content_local = $content_local;
147
-		$this->default_encoding = $default_encoding;
148
-		$this->default_view_mod = $default_view_mode;
149
-		$this->prevent_reinit = $prevent_reinit;
150
-		$this->force_commit = $force_commit;
151
-		$this->content_maker = $content_maker;
152
-		$this->display_order = $display_order;
153
-		$this->js_lib = $js_lib;
154
-		$this->content_license = $content_license;
155
-		$this->debug = $debug;
156
-		$this->visibility=$visibility;
90
+    /**
91
+     * Create a new learnpath
92
+     * @param integer ID
93
+     * @param integer Type (1,2,3,...)
94
+     * @param string $name
95
+     * @param string $path
96
+     * @param string $ref
97
+     * @param string $description
98
+     * @param string $content_local
99
+     * @param string $default_encoding
100
+     * @param string $default_view_mode
101
+     * @param bool   $prevent_reinit
102
+     * @param bool   $force_commit
103
+     * @param string $content_maker
104
+     * @param integer $display_order
105
+     * @param string $js_lib
106
+     * @param string $content_license
107
+     * @param integer $debug
108
+     * @param string $visibility
109
+     * @param array  $items
110
+     */
111
+    public function __construct(
112
+        $id,
113
+        $type,
114
+        $name,
115
+        $path,
116
+        $ref,
117
+        $description,
118
+        $content_local,
119
+        $default_encoding,
120
+        $default_view_mode,
121
+        $prevent_reinit,
122
+        $force_commit,
123
+        $content_maker,
124
+        $display_order,
125
+        $js_lib,
126
+        $content_license,
127
+        $debug,
128
+        $visibility,
129
+        $author,
130
+        $preview_image,
131
+        $use_max_score,
132
+        $autolaunch,
133
+        $created_on,
134
+        $modified_on,
135
+        $publicated_on,
136
+        $expired_on,
137
+        $session_id,
138
+        $items
139
+    ) {
140
+        parent::__construct($id, RESOURCE_LEARNPATH);
141
+        $this->lp_type = $type;
142
+        $this->name = $name;
143
+        $this->path = $path;
144
+        $this->ref = $ref;
145
+        $this->description = $description;
146
+        $this->content_local = $content_local;
147
+        $this->default_encoding = $default_encoding;
148
+        $this->default_view_mod = $default_view_mode;
149
+        $this->prevent_reinit = $prevent_reinit;
150
+        $this->force_commit = $force_commit;
151
+        $this->content_maker = $content_maker;
152
+        $this->display_order = $display_order;
153
+        $this->js_lib = $js_lib;
154
+        $this->content_license = $content_license;
155
+        $this->debug = $debug;
156
+        $this->visibility=$visibility;
157 157
 
158
-		$this->use_max_score=$use_max_score;
159
-		$this->autolaunch=$autolaunch;
160
-		$this->created_on=$created_on;
161
-		$this->modified_on=$modified_on;
162
-		$this->publicated_on=$publicated_on;
163
-		$this->expired_on=$expired_on;
164
-		$this->session_id=$session_id;
158
+        $this->use_max_score=$use_max_score;
159
+        $this->autolaunch=$autolaunch;
160
+        $this->created_on=$created_on;
161
+        $this->modified_on=$modified_on;
162
+        $this->publicated_on=$publicated_on;
163
+        $this->expired_on=$expired_on;
164
+        $this->session_id=$session_id;
165 165
 
166
-		$this->author= $author;
167
-		$this->preview_image= $preview_image;
166
+        $this->author= $author;
167
+        $this->preview_image= $preview_image;
168 168
 
169
-		$this->items = $items;
170
-	}
171
-	/**
172
-	 * Get the items
173
-	 */
174
-	function get_items()
175
-	{
176
-		return $this->items;
177
-	}
169
+        $this->items = $items;
170
+    }
171
+    /**
172
+     * Get the items
173
+     */
174
+    function get_items()
175
+    {
176
+        return $this->items;
177
+    }
178 178
 
179
-	/**
180
-	 * Check if a given resource is used as an item in this chapter
181
-	 */
182
-	function has_item($resource)
183
-	{
184
-		foreach ($this->items as $item) {
185
-			if ($item['id'] == $resource->get_id() &&
186
-				isset($item['type']) && $item['type'] == $resource->get_type()
187
-			) {
188
-				return true;
189
-			}
190
-		}
191
-		return false;
192
-	}
179
+    /**
180
+     * Check if a given resource is used as an item in this chapter
181
+     */
182
+    function has_item($resource)
183
+    {
184
+        foreach ($this->items as $item) {
185
+            if ($item['id'] == $resource->get_id() &&
186
+                isset($item['type']) && $item['type'] == $resource->get_type()
187
+            ) {
188
+                return true;
189
+            }
190
+        }
191
+        return false;
192
+    }
193 193
 
194
-	/**
195
-	 * Show this learnpath
196
-	 */
197
-	function show() {
198
-		parent::show();
199
-		echo $this->name;
200
-	}
194
+    /**
195
+     * Show this learnpath
196
+     */
197
+    function show() {
198
+        parent::show();
199
+        echo $this->name;
200
+    }
201 201
 }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -153,18 +153,18 @@
 block discarded – undo
153 153
 		$this->js_lib = $js_lib;
154 154
 		$this->content_license = $content_license;
155 155
 		$this->debug = $debug;
156
-		$this->visibility=$visibility;
156
+		$this->visibility = $visibility;
157 157
 
158
-		$this->use_max_score=$use_max_score;
159
-		$this->autolaunch=$autolaunch;
160
-		$this->created_on=$created_on;
161
-		$this->modified_on=$modified_on;
162
-		$this->publicated_on=$publicated_on;
163
-		$this->expired_on=$expired_on;
164
-		$this->session_id=$session_id;
158
+		$this->use_max_score = $use_max_score;
159
+		$this->autolaunch = $autolaunch;
160
+		$this->created_on = $created_on;
161
+		$this->modified_on = $modified_on;
162
+		$this->publicated_on = $publicated_on;
163
+		$this->expired_on = $expired_on;
164
+		$this->session_id = $session_id;
165 165
 
166
-		$this->author= $author;
167
-		$this->preview_image= $preview_image;
166
+		$this->author = $author;
167
+		$this->preview_image = $preview_image;
168 168
 
169 169
 		$this->items = $items;
170 170
 	}
Please login to merge, or discard this patch.
main/coursecopy/classes/Attendance.class.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -13,28 +13,28 @@
 block discarded – undo
13 13
     public $params = array();
14 14
     public $attendance_calendar = array();
15 15
 
16
-	/**
17
-	 * Create a new Thematic
18
-	 *
19
-	 * @param array parameters
20
-	 */
16
+    /**
17
+     * Create a new Thematic
18
+     *
19
+     * @param array parameters
20
+     */
21 21
     public function __construct($params)
22 22
     {
23
-		parent::__construct($params['id'], RESOURCE_ATTENDANCE);
24
-		$this->params = $params;
25
-	}
23
+        parent::__construct($params['id'], RESOURCE_ATTENDANCE);
24
+        $this->params = $params;
25
+    }
26 26
 
27 27
     /**
28 28
      * @inheritdoc
29 29
      */
30 30
     public function show()
31 31
     {
32
-		parent::show();
33
-		echo $this->params['name'];
34
-	}
32
+        parent::show();
33
+        echo $this->params['name'];
34
+    }
35 35
 
36 36
     public function add_attendance_calendar($data)
37 37
     {
38
-		$this->attendance_calendar[] = $data;
39
-	}
38
+        $this->attendance_calendar[] = $data;
39
+    }
40 40
 }
Please login to merge, or discard this patch.
main/coursecopy/classes/SurveyQuestion.class.php 2 patches
Indentation   +87 added lines, -87 removed lines patch added patch discarded remove patch
@@ -10,93 +10,93 @@
 block discarded – undo
10 10
  */
11 11
 class SurveyQuestion extends Coursecopy\Resource
12 12
 {
13
-	/**
14
-	 * Survey ID
15
-	 */
16
-	public $survey_id;
17
-	/**
18
-	 * Question and question comment
19
-	 */
20
-	public $survey_question;
21
-	public $survey_question_comment;
22
-	/**
23
-	 * Question type
24
-	 */
25
-	public $survey_question_type;
26
-	/**
27
-	 * Display ?
28
-	 */
29
-	public $display;
30
-	/**
31
-	 * Sorting order
32
-	 */
33
-	public $sort;
34
-	/**
35
-	 * Shared question ID
36
-	 */
37
-	public $shared_question_id;
38
-	/**
39
-	 * Maximum value for the vote
40
-	 */
41
-	public $max_value;
13
+    /**
14
+     * Survey ID
15
+     */
16
+    public $survey_id;
17
+    /**
18
+     * Question and question comment
19
+     */
20
+    public $survey_question;
21
+    public $survey_question_comment;
22
+    /**
23
+     * Question type
24
+     */
25
+    public $survey_question_type;
26
+    /**
27
+     * Display ?
28
+     */
29
+    public $display;
30
+    /**
31
+     * Sorting order
32
+     */
33
+    public $sort;
34
+    /**
35
+     * Shared question ID
36
+     */
37
+    public $shared_question_id;
38
+    /**
39
+     * Maximum value for the vote
40
+     */
41
+    public $max_value;
42 42
 
43
-	/**
44
-	 * Question's options
45
-	 */
46
-	public $options;
43
+    /**
44
+     * Question's options
45
+     */
46
+    public $options;
47 47
 
48
-	/**
49
-	 * Create a new SurveyQuestion
50
-	 * @param int	 $id
51
-	 * @param int 	 $survey_id
52
-	 * @param string $survey_question
53
-	 * @param string $survey_question_comment
54
-	 * @param string $type
55
-	 * @param string $display
56
-	 * @param int	 $sort
57
-	 * @param int	 $shared_question_id
58
-	 * @param int	 $max_value
59
-	 */
60
-	function __construct(
61
-		$id,
62
-		$survey_id,
63
-		$survey_question,
64
-		$survey_question_comment,
65
-		$type,
66
-		$display,
67
-		$sort,
68
-		$shared_question_id,
69
-		$max_value
70
-	) {
71
-		parent::__construct($id,RESOURCE_SURVEYQUESTION);
72
-		$this->survey_id = $survey_id;
73
-		$this->survey_question = $survey_question;
74
-		$this->survey_question_comment = $survey_question_comment;
75
-		$this->survey_question_type = $type;
76
-		$this->display = $display;
77
-		$this->sort = $sort;
78
-		$this->shared_question_id = $shared_question_id;
79
-		$this->max_value = $max_value;
80
-		$this->answers = array();
81
-	}
82
-	/**
83
-	 * Add an answer option to this SurveyQuestion
84
-	 * @param string $option_text
85
-	 * @param int	 $sort
86
-	 */
87
-	function add_answer($option_text,$sort)
88
-	{
89
-		$answer = array();
90
-		$answer['option_text'] = $option_text;
91
-		$answer['sort'] = $sort;
92
-		$this->answers[] = $answer;
93
-	}
94
-	/**
95
-	 * Show this question
96
-	 */
97
-	function show()
98
-	{
99
-		parent::show();
100
-		echo $this->survey_question;
101
-	}
48
+    /**
49
+     * Create a new SurveyQuestion
50
+     * @param int	 $id
51
+     * @param int 	 $survey_id
52
+     * @param string $survey_question
53
+     * @param string $survey_question_comment
54
+     * @param string $type
55
+     * @param string $display
56
+     * @param int	 $sort
57
+     * @param int	 $shared_question_id
58
+     * @param int	 $max_value
59
+     */
60
+    function __construct(
61
+        $id,
62
+        $survey_id,
63
+        $survey_question,
64
+        $survey_question_comment,
65
+        $type,
66
+        $display,
67
+        $sort,
68
+        $shared_question_id,
69
+        $max_value
70
+    ) {
71
+        parent::__construct($id,RESOURCE_SURVEYQUESTION);
72
+        $this->survey_id = $survey_id;
73
+        $this->survey_question = $survey_question;
74
+        $this->survey_question_comment = $survey_question_comment;
75
+        $this->survey_question_type = $type;
76
+        $this->display = $display;
77
+        $this->sort = $sort;
78
+        $this->shared_question_id = $shared_question_id;
79
+        $this->max_value = $max_value;
80
+        $this->answers = array();
81
+    }
82
+    /**
83
+     * Add an answer option to this SurveyQuestion
84
+     * @param string $option_text
85
+     * @param int	 $sort
86
+     */
87
+    function add_answer($option_text,$sort)
88
+    {
89
+        $answer = array();
90
+        $answer['option_text'] = $option_text;
91
+        $answer['sort'] = $sort;
92
+        $this->answers[] = $answer;
93
+    }
94
+    /**
95
+     * Show this question
96
+     */
97
+    function show()
98
+    {
99
+        parent::show();
100
+        echo $this->survey_question;
101
+    }
102 102
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 		$shared_question_id,
69 69
 		$max_value
70 70
 	) {
71
-		parent::__construct($id,RESOURCE_SURVEYQUESTION);
71
+		parent::__construct($id, RESOURCE_SURVEYQUESTION);
72 72
 		$this->survey_id = $survey_id;
73 73
 		$this->survey_question = $survey_question;
74 74
 		$this->survey_question_comment = $survey_question_comment;
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 	 * @param string $option_text
85 85
 	 * @param int	 $sort
86 86
 	 */
87
-	function add_answer($option_text,$sort)
87
+	function add_answer($option_text, $sort)
88 88
 	{
89 89
 		$answer = array();
90 90
 		$answer['option_text'] = $option_text;
Please login to merge, or discard this patch.
main/coursecopy/classes/ForumPost.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,6 +25,6 @@
 block discarded – undo
25 25
     public function show()
26 26
     {
27 27
         parent::show();
28
-        echo $this->obj->title . ' (' . $this->obj->poster_name . ', ' . $this->obj->post_date . ')';
28
+        echo $this->obj->title.' ('.$this->obj->poster_name.', '.$this->obj->post_date.')';
29 29
     }
30 30
 }
Please login to merge, or discard this patch.