Skip to content

Commit f1c8a3c

Browse files
committed
Fix Moodle documentation errors.
1 parent a1760de commit f1c8a3c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+308
-201
lines changed

backup/moodle2/backup_ratingallocate_activity_task.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ protected function define_my_steps() {
4646
/**
4747
* Code the transformations to perform in the activity in
4848
* order to get transportable (encoded) links
49+
*
50+
* @param array $content
4951
*/
5052
public static function encode_content_links($content) {
5153
return $content;

backup/moodle2/backup_restore_helper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/**
2727
* Get fields for tableclass
2828
*
29-
* @param $class
29+
* @param \stdClass $class
3030
* @return array
3131
* @throws ReflectionException
3232
*/
@@ -45,7 +45,7 @@ function get_fields_for_tableclass($class) {
4545
/**
4646
* Get tablename for tableclass.
4747
*
48-
* @param $class
48+
* @param \stdClass $class
4949
* @return mixed
5050
* @throws ReflectionException
5151
*/
@@ -58,7 +58,7 @@ function get_tablename_for_tableclass($class) {
5858
/**
5959
* Get id for tableclass.
6060
*
61-
* @param $class
61+
* @param \stdClass $class
6262
* @return array
6363
* @throws ReflectionException
6464
*/

backup/moodle2/restore_ratingallocate_activity_stepslib.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected function define_structure() {
6060
/**
6161
* Process ratingallocate.
6262
*
63-
* @param $data
63+
* @param array $data
6464
* @return void
6565
* @throws base_step_exception
6666
* @throws dml_exception
@@ -89,7 +89,7 @@ protected function process_ratingallocate($data) {
8989

9090
/**
9191
* Restore data for ratingallocate choices.
92-
* @param $data
92+
* @param array $data
9393
* @return void
9494
* @throws dml_exception
9595
* @throws restore_step_exception
@@ -108,7 +108,7 @@ protected function process_ratingallocate_choices($data) {
108108

109109
/**
110110
* Restore data for the ratingallocate ratings of users.
111-
* @param $data
111+
* @param array $data
112112
* @return void
113113
* @throws dml_exception
114114
* @throws restore_step_exception
@@ -128,7 +128,7 @@ protected function process_ratingallocate_ratings($data) {
128128

129129
/**
130130
* Restore data of allocations of users to choices.
131-
* @param $data
131+
* @param array $data
132132
* @return void
133133
* @throws dml_exception
134134
* @throws restore_step_exception
@@ -167,7 +167,7 @@ protected function process_ratingallocate_group_choices($data) {
167167

168168
/**
169169
* Restore data for generated groups based on allocations.
170-
* @param $data
170+
* @param array $data
171171
* @return void
172172
* @throws dml_exception
173173
* @throws restore_step_exception
@@ -186,7 +186,7 @@ protected function process_ratingallocate_ch_gengroups($data) {
186186

187187
/**
188188
* Restore data for generated groupings based on allocations.
189-
* @param $data
189+
* @param array $data
190190
* @return void
191191
* @throws dml_exception
192192
* @throws restore_step_exception

backup/moodle2/restore_ratingallocate_activity_task.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ public static function define_decode_rules() {
7373

7474
/**
7575
* Define the restore log rules that will be applied
76-
* by the {@link restore_logs_processor} when restoring
76+
* by the {@see restore_logs_processor} when restoring
7777
* ratingallocate logs.
7878
* It must return one array
79-
* of {@link restore_log_rule} objects
79+
* of {@see restore_log_rule} objects
8080
*/
8181
public static function define_restore_log_rules() {
8282
$rules = [];
@@ -86,10 +86,10 @@ public static function define_restore_log_rules() {
8686

8787
/**
8888
* Define the restore log rules that will be applied
89-
* by the {@link restore_logs_processor} when restoring
89+
* by the {@see restore_logs_processor} when restoring
9090
* course logs.
9191
* It must return one array
92-
* of {@link restore_log_rule} objects
92+
* of {@see restore_log_rule} objects
9393
*
9494
* Note this rules are applied when restoring course logs
9595
* by the restore final task, but are defined here at

classes/allocations_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function build_table_by_sql() {
200200

201201
/**
202202
* Returns a link to a user profile labeled with the full name of the user.
203-
* @param $user \stdClass user object.
203+
* @param \stdClass $user user object.
204204
* @return string HTML code representing the link to the users profile.
205205
*/
206206
private function get_user_link($user) {

classes/choice_importer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ public static function print_fields($fields=self::REQUIRED_FIELDS) {
8282
/**
8383
* Construct.
8484
*
85-
* @param $ratingallocateid
86-
* @param $ratingallocate
85+
* @param int $ratingallocateid
86+
* @param \ratingallocate $ratingallocate
8787
*/
8888
public function __construct($ratingallocateid, $ratingallocate) {
8989
$this->ratingallocate = $ratingallocate;

classes/event/all_ratings_deleted.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ class all_ratings_deleted extends \core\event\base {
3333

3434
/**
3535
* Create simple all_ratings_deleted event.
36-
* @param $modulecontext
37-
* @param $ratingallocateid
36+
*
37+
* @param \stdClass $modulecontext
38+
* @param int $ratingallocateid
3839
* @return \core\event\base
3940
* @throws \coding_exception
4041
*/

classes/event/allocation_published.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ class allocation_published extends \core\event\base {
4141

4242
/**
4343
* Create simple allocation_published event.
44-
* @param $modulecontext
45-
* @param $ratingallocateid
44+
*
45+
* @param \stdClass $modulecontext
46+
* @param int $ratingallocateid
4647
* @return \core\event\base
4748
* @throws \coding_exception
4849
*/

classes/event/allocation_statistics_viewed.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ class allocation_statistics_viewed extends \core\event\base {
3535

3636
/**
3737
* Create simple allocation_statistics_viewed event.
38-
* @param $modulecontext
39-
* @param $ratingallocateid
38+
*
39+
* @param \stdClass $modulecontext
40+
* @param int $ratingallocateid
4041
* @return \core\event\base
4142
* @throws \coding_exception
4243
*/

classes/event/allocation_table_viewed.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ class allocation_table_viewed extends \core\event\base {
3535

3636
/**
3737
* Create simple allocation_table_viewed event.
38-
* @param $modulecontext
39-
* @param $ratingallocateid
38+
*
39+
* @param \stdClass $modulecontext
40+
* @param int $ratingallocateid
4041
* @return \core\event\base
4142
* @throws \coding_exception
4243
*/

0 commit comments

Comments
 (0)