@@ -48,7 +48,7 @@ |
||
48 | 48 | * |
49 | 49 | * @param UserInterface $from |
50 | 50 | * @param string $subject |
51 | - * @param null $sentAt |
|
51 | + * @param \DateTime $sentAt |
|
52 | 52 | * @param UserInterface $to |
53 | 53 | */ |
54 | 54 | function __construct(UserInterface $from = null, $subject= '', $sentAt = null, UserInterface $to = null) |
@@ -18,6 +18,9 @@ |
||
18 | 18 | |
19 | 19 | protected $icon; |
20 | 20 | |
21 | + /** |
|
22 | + * @param string $message |
|
23 | + */ |
|
21 | 24 | function __construct($message = null, $type = 'info', $icon = 'fa fa-warning') |
22 | 25 | { |
23 | 26 | $this->message = $message; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | protected $title; |
51 | 51 | |
52 | 52 | /** |
53 | - * @param null $title |
|
53 | + * @param string $title |
|
54 | 54 | * @param int $progress |
55 | 55 | * @param string $color |
56 | 56 | */ |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
96 | - * @return mixed |
|
96 | + * @return integer |
|
97 | 97 | */ |
98 | 98 | public function getProgress() |
99 | 99 | { |
@@ -52,6 +52,10 @@ |
||
52 | 52 | |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param string $id |
|
57 | + * @param string $src |
|
58 | + */ |
|
55 | 59 | public function registerStyle($id, $src, $deps = array()) { |
56 | 60 | if(!isset($this->stylesheets[$id])) { |
57 | 61 | $this->stylesheets[$id] = array( |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | * @param string $canHaveCourses |
104 | 104 | * @param int $parent_id |
105 | 105 | * |
106 | - * @return bool |
|
106 | + * @return false|string |
|
107 | 107 | */ |
108 | 108 | public static function addNode($code, $name, $canHaveCourses, $parent_id) |
109 | 109 | { |
@@ -297,8 +297,7 @@ discard block |
||
297 | 297 | /** |
298 | 298 | * Counts the number of children categories a category has |
299 | 299 | * @param int $categoryId The ID of the category of which we want to count the children |
300 | - * @param int $count The number of subcategories we counted this far |
|
301 | - * @return mixed The number of subcategories this category has |
|
300 | + * @return integer The number of subcategories this category has |
|
302 | 301 | */ |
303 | 302 | public static function courseCategoryChildrenCount($categoryId) |
304 | 303 | { |
@@ -476,7 +475,7 @@ discard block |
||
476 | 475 | /** |
477 | 476 | * @param int $id |
478 | 477 | * |
479 | - * @return bool |
|
478 | + * @return boolean|null |
|
480 | 479 | */ |
481 | 480 | public static function addToUrl($id) |
482 | 481 | { |
@@ -958,7 +957,7 @@ discard block |
||
958 | 957 | * Get Pagination HTML div |
959 | 958 | * @param $pageCurrent |
960 | 959 | * @param $pageLength |
961 | - * @param $pageTotal |
|
960 | + * @param integer $pageTotal |
|
962 | 961 | * @return string |
963 | 962 | */ |
964 | 963 | public static function getCatalogPagination($pageCurrent, $pageLength, $pageTotal) |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | * @param string $prompt text prompt, should include possible options |
192 | 192 | * @param string $default default value when enter pressed |
193 | 193 | * @param array $options list of allowed options, empty means any text |
194 | - * @param bool $casesensitive true if options are case sensitive |
|
194 | + * @param bool $casesensitiveoptions true if options are case sensitive |
|
195 | 195 | * @return string entered text |
196 | 196 | */ |
197 | 197 | function cli_input($prompt, $default='', array $options=null, $casesensitiveoptions=false) { |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | /** |
289 | 289 | * Print or return section separator string |
290 | 290 | * @param bool $return false means print, true return as string |
291 | - * @return mixed void or string |
|
291 | + * @return string|null void or string |
|
292 | 292 | */ |
293 | 293 | function cli_separator($return=false) { |
294 | 294 | $separator = str_repeat('-', 79)."\n"; |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | * |
94 | 94 | * @param string $rank |
95 | 95 | * |
96 | - * @return Question |
|
96 | + * @return Category |
|
97 | 97 | */ |
98 | 98 | public function setRank($rank) |
99 | 99 | { |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | /** |
202 | 202 | * Get questions |
203 | 203 | * |
204 | - * @return \Doctrine\Common\Collections\Collection |
|
204 | + * @return Question[] |
|
205 | 205 | */ |
206 | 206 | public function getQuestions() |
207 | 207 | { |
@@ -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 | { |
@@ -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; |