@@ -314,7 +314,7 @@ |
||
| 314 | 314 | * Set votes |
| 315 | 315 | * |
| 316 | 316 | * @param integer $votes |
| 317 | - * @return integer |
|
| 317 | + * @return Message |
|
| 318 | 318 | */ |
| 319 | 319 | public function setVotes($votes) |
| 320 | 320 | { |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | /** |
| 118 | 118 | * Create folders |
| 119 | - * @param array $folderList |
|
| 119 | + * @param string[] $folderList |
|
| 120 | 120 | * @param OutputInterface $output |
| 121 | 121 | * @param string $folderPermissions |
| 122 | 122 | */ |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | * http://chamilo/courses/ABC/document/file.jpg |
| 201 | 201 | * @param string $content |
| 202 | 202 | * |
| 203 | - * @return string |
|
| 203 | + * @return \simplehtmldom_1_5\simple_html_dom |
|
| 204 | 204 | */ |
| 205 | 205 | public function convertRelativeToAbsoluteUrl($content) |
| 206 | 206 | { |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | |
| 198 | 198 | /** |
| 199 | 199 | * Get user |
| 200 | - * @return \User |
|
| 200 | + * @return User |
|
| 201 | 201 | */ |
| 202 | 202 | public function getUser() |
| 203 | 203 | { |
@@ -512,7 +512,7 @@ discard block |
||
| 512 | 512 | |
| 513 | 513 | /** |
| 514 | 514 | * Calculate the average value from the feedback comments |
| 515 | - * @return int |
|
| 515 | + * @return string |
|
| 516 | 516 | */ |
| 517 | 517 | public function getAverage() |
| 518 | 518 | { |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | 116 | * Get feedbackDateTime |
| 117 | - * @return type |
|
| 117 | + * @return \DateTime |
|
| 118 | 118 | */ |
| 119 | 119 | public function getFeedbackDateTime() |
| 120 | 120 | { |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * @param array $data |
| 39 | 39 | * @param string $filename |
| 40 | 40 | * |
| 41 | - * @return mixed csv file | false if no data to export |
|
| 41 | + * @return false|null csv file | false if no data to export |
|
| 42 | 42 | */ |
| 43 | 43 | public static function arrayToCsv($data, $filename = 'export') |
| 44 | 44 | { |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | * @param string Name of common tag to place each line in |
| 161 | 161 | * @param string Name of the root element. A root element should always be given. |
| 162 | 162 | * @param string Encoding in which the data is provided |
| 163 | - * @return void Prompts the user for a file download |
|
| 163 | + * @return boolean Prompts the user for a file download |
|
| 164 | 164 | */ |
| 165 | 165 | public static function export_complex_table_xml( |
| 166 | 166 | $data, |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | * @param string $name |
| 287 | 287 | * @param string $format |
| 288 | 288 | * |
| 289 | - * @return bool |
|
| 289 | + * @return false|null |
|
| 290 | 290 | */ |
| 291 | 291 | public static function htmlToOdt($html, $name, $format = 'odt') |
| 292 | 292 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | 75 | * @param $courseInfo |
| 76 | - * @param $weeksCount |
|
| 76 | + * @param string $weeksCount |
|
| 77 | 77 | * @param $page |
| 78 | 78 | * @return array |
| 79 | 79 | */ |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | |
| 183 | 183 | /** |
| 184 | 184 | * @param $datos |
| 185 | - * @param $pagina |
|
| 185 | + * @param integer $pagina |
|
| 186 | 186 | * @return string |
| 187 | 187 | */ |
| 188 | 188 | function showStudentResult($datos, $pagina) |
@@ -201,8 +201,8 @@ discard block |
||
| 201 | 201 | |
| 202 | 202 | /** |
| 203 | 203 | * @param $data |
| 204 | - * @param $numero_semanas |
|
| 205 | - * @return array |
|
| 204 | + * @param integer $numero_semanas |
|
| 205 | + * @return string[] |
|
| 206 | 206 | */ |
| 207 | 207 | function showStudentResultExport($data, $numero_semanas) |
| 208 | 208 | { |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | /** |
| 37 | 37 | * Instance the plugin |
| 38 | 38 | * @staticvar null $result |
| 39 | - * @return Tour |
|
| 39 | + * @return AzureActiveDirectory |
|
| 40 | 40 | */ |
| 41 | 41 | static function create() |
| 42 | 42 | { |
@@ -1212,6 +1212,7 @@ |
||
| 1212 | 1212 | * Restore a forum-post |
| 1213 | 1213 | * @TODO Restore tree-structure of posts. For example: attachments to posts. |
| 1214 | 1214 | * @param false|string $topic_id |
| 1215 | + * @param false|string $forum_id |
|
| 1215 | 1216 | */ |
| 1216 | 1217 | public function restore_post($id, $topic_id, $forum_id, $sessionId = 0) |
| 1217 | 1218 | { |
@@ -242,6 +242,9 @@ discard block |
||
| 242 | 242 | return $hmac; |
| 243 | 243 | } |
| 244 | 244 | |
| 245 | +/** |
|
| 246 | + * @param string|false $text |
|
| 247 | + */ |
|
| 245 | 248 | function _openid_sha1($text) { |
| 246 | 249 | $hex = sha1($text); |
| 247 | 250 | $raw = ''; |
@@ -404,6 +407,10 @@ discard block |
||
| 404 | 407 | */ |
| 405 | 408 | if (!function_exists('bcpowmod')) { |
| 406 | 409 | |
| 410 | + /** |
|
| 411 | + * @param string $exp |
|
| 412 | + * @param string $mod |
|
| 413 | + */ |
|
| 407 | 414 | function bcpowmod($base, $exp, $mod) { |
| 408 | 415 | $square = bcmod($base, $mod); |
| 409 | 416 | $result = 1; |