@@ -13,9 +13,9 @@ discard block |
||
13 | 13 | |
14 | 14 | /** |
15 | 15 | * ChamiloForm constructor. |
16 | - * @param $mode |
|
17 | - * @param $returnurl |
|
18 | - * @param $cancelurl |
|
16 | + * @param string $mode |
|
17 | + * @param string $returnurl |
|
18 | + * @param string $cancelurl |
|
19 | 19 | * @param $customdata |
20 | 20 | */ |
21 | 21 | public function __construct($mode, $returnurl, $cancelurl, $customdata = []) |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | * Check that form data is valid. |
138 | 138 | * You should almost always use this, rather than {@see validate_defined_fields} |
139 | 139 | * |
140 | - * @return bool true if form data valid |
|
140 | + * @return boolean|null true if form data valid |
|
141 | 141 | */ |
142 | 142 | public function is_validated() |
143 | 143 | { |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | * is NOT to validate the form when a no submit button has been pressed. |
167 | 167 | * pass true here to override this behaviour |
168 | 168 | * |
169 | - * @return bool true if form data valid |
|
169 | + * @return boolean|null true if form data valid |
|
170 | 170 | */ |
171 | 171 | public function validate_defined_fields($validateonnosubmit=false) |
172 | 172 | { |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | * @param $stok |
429 | 429 | * @param $code |
430 | 430 | * @param $search_term |
431 | - * @return html |
|
431 | + * @return string |
|
432 | 432 | */ |
433 | 433 | function return_register_button($course, $stok, $code, $search_term) |
434 | 434 | { |
@@ -443,7 +443,7 @@ discard block |
||
443 | 443 | * @param $stok |
444 | 444 | * @param $search_term |
445 | 445 | * @param $code |
446 | - * @return html |
|
446 | + * @return string |
|
447 | 447 | */ |
448 | 448 | function return_unregister_button($course, $stok, $search_term, $code) |
449 | 449 | { |
@@ -657,6 +657,7 @@ discard block |
||
657 | 657 | * retrieves all the courses that the user has already subscribed to |
658 | 658 | * @author Patrick Cool <[email protected]>, Ghent University, Belgium |
659 | 659 | * @param int $user_id: the id of the user |
660 | + * @param integer $user_id |
|
660 | 661 | * @return array an array containing all the information of the courses of the given user |
661 | 662 | */ |
662 | 663 | public function get_courses_of_user($user_id) |
@@ -707,13 +708,13 @@ discard block |
||
707 | 708 | |
708 | 709 | /** |
709 | 710 | * @todo use the template system |
710 | - * @param $title |
|
711 | - * @param $content |
|
711 | + * @param string|null $title |
|
712 | + * @param string $content |
|
712 | 713 | * @param string $id |
713 | 714 | * @param array $params |
714 | 715 | * @param string $idAccordion |
715 | 716 | * @param string $idCollapse |
716 | - * @return null|string |
|
717 | + * @return string |
|
717 | 718 | */ |
718 | 719 | public function show_right_block( |
719 | 720 | $title, |
@@ -937,7 +938,7 @@ discard block |
||
937 | 938 | } |
938 | 939 | |
939 | 940 | /** |
940 | - * @return null|string |
|
941 | + * @return string |
|
941 | 942 | */ |
942 | 943 | public function return_course_block() |
943 | 944 | { |
@@ -1590,8 +1591,8 @@ discard block |
||
1590 | 1591 | |
1591 | 1592 | /** |
1592 | 1593 | * Return HTML code for personal user course category |
1593 | - * @param $id |
|
1594 | - * @param $title |
|
1594 | + * @param integer $id |
|
1595 | + * @param string $title |
|
1595 | 1596 | * @return string |
1596 | 1597 | */ |
1597 | 1598 | private static function getHtmlForUserCategory($id, $title) |
@@ -1612,7 +1613,7 @@ discard block |
||
1612 | 1613 | /** |
1613 | 1614 | * return HTML code for course display in session view |
1614 | 1615 | * @param array $courseInfo |
1615 | - * @param $userCategoryId |
|
1616 | + * @param integer $userCategoryId |
|
1616 | 1617 | * @param bool $displayButton |
1617 | 1618 | * @param $loadDirs |
1618 | 1619 | * @return string |
@@ -42,7 +42,7 @@ |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
45 | - * @return BBBPlugin|null |
|
45 | + * @return BBBPlugin |
|
46 | 46 | */ |
47 | 47 | public static function create() |
48 | 48 | { |
@@ -63,6 +63,9 @@ discard block |
||
63 | 63 | return $image; |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param string $convert_file_to |
|
68 | + */ |
|
66 | 69 | public function send_image( |
67 | 70 | $file = '', |
68 | 71 | $compress = -1, |
@@ -144,6 +147,9 @@ discard block |
||
144 | 147 | public $image; |
145 | 148 | public $filter = Imagick::FILTER_LANCZOS; |
146 | 149 | |
150 | + /** |
|
151 | + * @param string $path |
|
152 | + */ |
|
147 | 153 | public function __construct($path) |
148 | 154 | { |
149 | 155 | parent::__construct($path); |
@@ -191,6 +197,10 @@ discard block |
||
191 | 197 | } |
192 | 198 | |
193 | 199 | //@todo implement border logic case for Imagick |
200 | + |
|
201 | + /** |
|
202 | + * @param integer $border |
|
203 | + */ |
|
194 | 204 | public function resize($thumbw, $thumbh, $border, $specific_size = false) |
195 | 205 | { |
196 | 206 | if (!$this->image_validated) return false; |
@@ -272,6 +282,9 @@ discard block |
||
272 | 282 | { |
273 | 283 | public $bg; |
274 | 284 | |
285 | + /** |
|
286 | + * @param string $path |
|
287 | + */ |
|
275 | 288 | function __construct($path) { |
276 | 289 | parent::__construct($path); |
277 | 290 | } |
@@ -329,6 +342,9 @@ discard block |
||
329 | 342 | } |
330 | 343 | } |
331 | 344 | |
345 | + /** |
|
346 | + * @param integer $border |
|
347 | + */ |
|
332 | 348 | public function resize($thumbw, $thumbh, $border, $specific_size = false) |
333 | 349 | { |
334 | 350 | if (!$this->image_validated) return false; |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | * Adds a mandatory requirement in form of a php.ini configuration. |
221 | 221 | * |
222 | 222 | * @param string $cfgName The configuration name used for ini_get() |
223 | - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
223 | + * @param boolean|string $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
224 | 224 | * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement |
225 | 225 | * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. |
226 | 226 | * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | * Adds an optional recommendation in form of a php.ini configuration. |
239 | 239 | * |
240 | 240 | * @param string $cfgName The configuration name used for ini_get() |
241 | - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
241 | + * @param string|false $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
242 | 242 | * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement |
243 | 243 | * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. |
244 | 244 | * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | /** |
360 | 360 | * Returns the PHP configuration file (php.ini) path. |
361 | 361 | * |
362 | - * @return string|false php.ini file path |
|
362 | + * @return string php.ini file path |
|
363 | 363 | */ |
364 | 364 | public function getPhpIniConfigPath() |
365 | 365 | { |
@@ -117,6 +117,9 @@ discard block |
||
117 | 117 | } |
118 | 118 | } |
119 | 119 | |
120 | + /** |
|
121 | + * @param string $name |
|
122 | + */ |
|
120 | 123 | public function set_name($name) |
121 | 124 | { |
122 | 125 | if ($this->is_valid_link()) { |
@@ -124,6 +127,9 @@ discard block |
||
124 | 127 | } |
125 | 128 | } |
126 | 129 | |
130 | + /** |
|
131 | + * @param string $description |
|
132 | + */ |
|
127 | 133 | public function set_description($description) |
128 | 134 | { |
129 | 135 | if ($this->is_valid_link()) { |
@@ -131,6 +137,9 @@ discard block |
||
131 | 137 | } |
132 | 138 | } |
133 | 139 | |
140 | + /** |
|
141 | + * @param integer $max |
|
142 | + */ |
|
134 | 143 | public function set_max($max) |
135 | 144 | { |
136 | 145 | if ($this->is_valid_link()) { |
@@ -93,7 +93,7 @@ |
||
93 | 93 | |
94 | 94 | /** |
95 | 95 | * Return an array of all known link types |
96 | - * @return array |
|
96 | + * @return integer[] |
|
97 | 97 | */ |
98 | 98 | public static function get_all_types() |
99 | 99 | { |
@@ -12,7 +12,7 @@ |
||
12 | 12 | interface HookResubscribeObserverInterface extends HookObserverInterface |
13 | 13 | { |
14 | 14 | /** |
15 | - * @param HookResubscribeObserverInterface $hook |
|
15 | + * @param HookResubscribeEventInterface $hook |
|
16 | 16 | * |
17 | 17 | * @return int |
18 | 18 | */ |