Completed
Push — 1.11.x ( 7ffd51...902ebd )
by José
50:21 queued 21:28
created
main/inc/lib/link.lib.php 1 patch
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -856,8 +856,8 @@  discard block
 block discarded – undo
856 856
 
857 857
     /**
858 858
      * @param integer $categoryId
859
-     * @param $courseId
860
-     * @param $sessionId
859
+     * @param integer $courseId
860
+     * @param integer $sessionId
861 861
      * @param bool $withBaseContent
862 862
      *
863 863
      * @return array
@@ -1485,6 +1485,7 @@  discard block
 block discarded – undo
1485 1485
      * This function checks if the url is a vimeo link
1486 1486
      * @author Julio Montoya
1487 1487
      * @version 1.0
1488
+     * @param string $url
1488 1489
      */
1489 1490
     public static function isVimeoLink($url)
1490 1491
     {
@@ -1519,6 +1520,7 @@  discard block
 block discarded – undo
1519 1520
      * @author Jorge Frisancho
1520 1521
      * @author Julio Montoya - Fixing code
1521 1522
      * @version 1.0
1523
+     * @param string $url
1522 1524
      */
1523 1525
     public static function is_youtube_link($url)
1524 1526
     {
Please login to merge, or discard this patch.
main/inc/lib/ScheduledAnnouncement.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -312,7 +312,7 @@
 block discarded – undo
312 312
     }
313 313
 
314 314
     /**
315
-     * @return array
315
+     * @return string[]
316 316
      */
317 317
     public function getTags()
318 318
     {
Please login to merge, or discard this patch.
main/inc/lib/sortable_table.class.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -443,6 +443,7 @@
 block discarded – undo
443 443
      * @param bool       hide navigation optionally
444 444
      * @param int        content per page when show navigation (optional)
445 445
      * @param bool       sort data optionally
446
+     * @param boolean $visibility_options
446 447
      * @return string    grid html
447 448
      */
448 449
     public function display_simple_grid(
Please login to merge, or discard this patch.
main/lp/aiccItem.class.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -34,6 +34,7 @@
 block discarded – undo
34 34
      * object from database records or from the array given as second parameter
35 35
      * @param	string	Type of construction needed ('db' or 'config', default = 'config')
36 36
      * @param	mixed	Depending on the type given, DB id for the lp_item or parameters array
37
+     * @param integer $course_id
37 38
      */
38 39
     public function __construct($type = 'config', $params = array(), $course_id = null)
39 40
     {
Please login to merge, or discard this patch.
main/inc/lib/internationalization.lib.php 1 patch
Doc Comments   +19 added lines, -13 removed lines patch added patch discarded remove patch
@@ -448,6 +448,7 @@  discard block
 block discarded – undo
448 448
  * If null, the timezone will be determined based on user preference,
449 449
  * or timezone chosen by the admin for the platform.
450 450
  * @param string The timezone to be converted from. If null, UTC will be assumed.
451
+ * @param string $to_timezone
451 452
  * @return string The converted time formatted as Y-m-d H:i:s
452 453
  *
453 454
  * @author Guillaume Viguier <[email protected]>
@@ -719,6 +720,8 @@  discard block
 block discarded – undo
719 720
  * @param mixed The time to be converted
720 721
  * @param mixed Format to be used (TIME_NO_SEC_FORMAT, DATE_FORMAT_SHORT, DATE_FORMAT_LONG, DATE_TIME_FORMAT_LONG)
721 722
  * @param string Timezone to be converted from. If null, UTC will be assumed.
723
+ * @param integer $format
724
+ * @param string $from_timezone
722 725
  * @return string Converted and localized date
723 726
  *
724 727
  * @author Guillaume Viguier <[email protected]>
@@ -805,7 +808,7 @@  discard block
 block discarded – undo
805 808
  * This parameter has meaning with the format PERSON_NAME_COMMON_CONVENTION only.
806 809
  * @param string $encoding (optional)    The used internally by this function
807 810
  * character encoding. If it is omitted, the platform character set will be used by default.
808
- * @return bool The result is sort of full name of the person.
811
+ * @return string The result is sort of full name of the person.
809 812
  * Sample results:
810 813
  * Peter Ustinoff or Dr. Peter Ustinoff     - the Western order
811 814
  * Ustinoff Peter or Dr. Ustinoff Peter     - the Eastern order
@@ -1148,8 +1151,8 @@  discard block
 block discarded – undo
1148 1151
 /**
1149 1152
  * This function returns a string or an array with all occurrences of search
1150 1153
  * in subject (ignoring case) replaced with the given replace value.
1151
- * @param mixed $search String or array of strings to be found.
1152
- * @param mixed $replace String or array of strings used for replacement.
1154
+ * @param string $search String or array of strings to be found.
1155
+ * @param string $replace String or array of strings used for replacement.
1153 1156
  * @param mixed $subject String or array of strings being searched.
1154 1157
  * @param int $count (optional) The number of matched and replaced needles
1155 1158
  * will be returned in count, which is passed by reference.
@@ -1219,12 +1222,12 @@  discard block
 block discarded – undo
1219 1222
 /**
1220 1223
  * Finds first occurrence of a string within another, case insensitive.
1221 1224
  * @param string $haystack The string from which to get the first occurrence.
1222
- * @param mixed $needle The string to be found.
1225
+ * @param string $needle The string to be found.
1223 1226
  * @param bool $before_needle (optional) Determines which portion of $haystack
1224 1227
  * this function returns. The default value is FALSE.
1225 1228
  * @param string $encoding (optional) The used internally by this function
1226 1229
  * character encoding. If it is omitted, the platform character set will be used by default.
1227
- * @return mixed Returns the portion of $haystack, or FALSE if $needle is not found.
1230
+ * @return false|string Returns the portion of $haystack, or FALSE if $needle is not found.
1228 1231
  * Notes:
1229 1232
  * If $needle is not a string, it is converted to an integer and applied as the
1230 1233
  * ordinal value (codepoint if the encoding is UTF-8) of a character.
@@ -1283,7 +1286,7 @@  discard block
 block discarded – undo
1283 1286
  * @param mixed $needle The string which first character is to be found.
1284 1287
  * @param bool $before_needle (optional) Determines which portion of $haystack this function returns. The default value is FALSE.
1285 1288
  * @param string $encoding (optional) The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
1286
- * @return mixed Returns the portion of $haystack, or FALSE if the first character from $needle is not found.
1289
+ * @return false|string Returns the portion of $haystack, or FALSE if the first character from $needle is not found.
1287 1290
  * Notes:
1288 1291
  * If $needle is not a string, it is converted to an integer and applied as the ordinal value (codepoint if the encoding is UTF-8) of a character.
1289 1292
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence.
@@ -1350,7 +1353,7 @@  discard block
 block discarded – undo
1350 1353
  * @param mixed $needle The string to be found.
1351 1354
  * @param bool $before_needle (optional) Determines which portion of $haystack this function returns. The default value is FALSE.
1352 1355
  * @param string $encoding (optional) The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
1353
- * @return mixed Returns the portion of $haystack, or FALSE if $needle is not found.
1356
+ * @return false|string Returns the portion of $haystack, or FALSE if $needle is not found.
1354 1357
  * Notes:
1355 1358
  * If $needle is not a string, it is converted to an integer and applied as the ordinal value (codepoint if the encoding is UTF-8) of a character.
1356 1359
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence of $needle.
@@ -1540,8 +1543,8 @@  discard block
 block discarded – undo
1540 1543
 
1541 1544
 /**
1542 1545
  * Performs a regular expression search and replace, UTF-8 aware when it is applicable.
1543
- * @param string|array $pattern			The pattern to search for. It can be either a string or an array with strings.
1544
- * @param string|array $replacement		The string or an array with strings to replace.
1546
+ * @param string $pattern			The pattern to search for. It can be either a string or an array with strings.
1547
+ * @param string $replacement		The string or an array with strings to replace.
1545 1548
  * @param string|array $subject			The string or an array with strings to search and replace.
1546 1549
  * @param int $limit					The maximum possible replacements for each pattern in each subject string. Defaults to -1 (no limit).
1547 1550
  * @param int &$count					If specified, this variable will be filled with the number of replacements done.
@@ -1692,7 +1695,7 @@  discard block
 block discarded – undo
1692 1695
 
1693 1696
 /**
1694 1697
  * This function checks whether two $encoding are equal (same, equvalent).
1695
- * @param string|array $encoding1		The first encoding
1698
+ * @param string $encoding1		The first encoding
1696 1699
  * @param string|array $encoding2		The second encoding
1697 1700
  * @param bool $strict					When this parameter is TRUE the comparison ignores aliases of encodings.
1698 1701
  * When the parameter is FALSE, aliases are taken into account.
@@ -1800,7 +1803,7 @@  discard block
 block discarded – undo
1800 1803
  * Checks a string for UTF-8 validity.
1801 1804
  * @param string $string
1802 1805
  *
1803
- * @return string
1806
+ * @return boolean
1804 1807
  */
1805 1808
 function api_is_valid_utf8($string)
1806 1809
 {
@@ -1974,7 +1977,7 @@  discard block
 block discarded – undo
1974 1977
 /**
1975 1978
  * Replaces non-valid formats for person names with the default (English) format.
1976 1979
  * @param string $format The input format to be verified.
1977
- * @return bool Returns the same format if is is valid, otherwise returns a valid English format.
1980
+ * @return string Returns the same format if is is valid, otherwise returns a valid English format.
1978 1981
  */
1979 1982
 function _api_validate_person_name_format($format)
1980 1983
 {
@@ -2106,6 +2109,9 @@  discard block
 block discarded – undo
2106 2109
 
2107 2110
 // This function checks whether the function _api_convert_encoding() (the php-
2108 2111
 // implementation) is able to convert from/to a given encoding.
2112
+/**
2113
+ * @param string $encoding
2114
+ */
2109 2115
 function _api_convert_encoding_supports($encoding)
2110 2116
 {
2111 2117
     static $supports = array();
@@ -2117,7 +2123,7 @@  discard block
 block discarded – undo
2117 2123
 
2118 2124
 /**
2119 2125
  * Given a date object, return a human or ISO format, with or without h:m:s
2120
- * @param object $date The Date object
2126
+ * @param DateTime $date The Date object
2121 2127
  * @param bool $showTime Whether to show the time and date (true) or only the date (false)
2122 2128
  * @param bool $humanForm Whether to show day-month-year (true) or year-month-day (false)
2123 2129
  * @return string Formatted date
Please login to merge, or discard this patch.
main/wiki/wiki.inc.php 1 patch
Doc Comments   +14 added lines, -6 removed lines patch added patch discarded remove patch
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
      * This function saves a change in a wiki page
293 293
      * @author Patrick Cool <[email protected]>, Ghent University
294 294
      * @param array $values
295
-     * @return language string saying that the changes are stored
295
+     * @return string string saying that the changes are stored
296 296
      **/
297 297
     public function save_wiki($values)
298 298
     {
@@ -1503,6 +1503,7 @@  discard block
 block discarded – undo
1503 1503
      * Checks if this navigation tab has to be set to active
1504 1504
      * @author Patrick Cool <[email protected]>, Ghent University
1505 1505
      *
1506
+     * @param string $paramwk
1506 1507
      * @return string html code
1507 1508
      */
1508 1509
     public function is_active_navigation_tab($paramwk)
@@ -2034,6 +2035,7 @@  discard block
 block discarded – undo
2034 2035
 
2035 2036
     /**
2036 2037
      * Sends pending e-mails
2038
+     * @param string $type
2037 2039
      */
2038 2040
     public function check_emailcue(
2039 2041
         $id_or_ref,
@@ -2258,7 +2260,7 @@  discard block
 block discarded – undo
2258 2260
     /**
2259 2261
      * Function export last wiki page version to document area
2260 2262
      * @param int $doc_id wiki page id
2261
-     * @return mixed
2263
+     * @return false|string
2262 2264
      * @author Juan Carlos Raña <[email protected]>
2263 2265
      */
2264 2266
     public function export2doc($doc_id)
@@ -2411,6 +2413,7 @@  discard block
 block discarded – undo
2411 2413
 
2412 2414
     /**
2413 2415
      * Exports the wiki page to PDF
2416
+     * @param string $course_code
2414 2417
      */
2415 2418
     public function export_to_pdf($id, $course_code)
2416 2419
     {
@@ -3084,6 +3087,7 @@  discard block
 block discarded – undo
3084 3087
     /**
3085 3088
      * Draws an HTML form select with the given options
3086 3089
      *
3090
+     * @param string $name
3087 3091
      */
3088 3092
     public function make_select($name, $values, $checked = '')
3089 3093
     {
@@ -3122,7 +3126,7 @@  discard block
 block discarded – undo
3122 3126
     /**
3123 3127
      * Get wiki information
3124 3128
      * @param   int|bool wiki id
3125
-     * @return  array   wiki data
3129
+     * @return  string   wiki data
3126 3130
      */
3127 3131
     public function getWikiDataFromDb($id)
3128 3132
     {
@@ -3170,6 +3174,7 @@  discard block
 block discarded – undo
3170 3174
      * Get wiki information
3171 3175
      * @param   string     wiki id
3172 3176
      * @param int $courseId
3177
+     * @param string $title
3173 3178
      * @return  array   wiki data
3174 3179
      */
3175 3180
     public function getPageByTitle($title, $courseId = null)
@@ -3202,6 +3207,8 @@  discard block
 block discarded – undo
3202 3207
      * @param int $courseId
3203 3208
      * @param string
3204 3209
      * @param string
3210
+     * @param string $groupfilter
3211
+     * @param string $condition_session
3205 3212
      * @return bool
3206 3213
      */
3207 3214
     public function deletePage(
@@ -4553,6 +4560,7 @@  discard block
 block discarded – undo
4553 4560
 
4554 4561
     /**
4555 4562
      * Show all pages
4563
+     * @param string $action
4556 4564
      */
4557 4565
     public function allPages($action)
4558 4566
     {
@@ -5446,7 +5454,7 @@  discard block
 block discarded – undo
5446 5454
 
5447 5455
     /**
5448 5456
      * Restore page
5449
-     * @return bool
5457
+     * @return false|null
5450 5458
      */
5451 5459
     public function restorePage()
5452 5460
     {
@@ -5600,7 +5608,7 @@  discard block
 block discarded – undo
5600 5608
     }
5601 5609
 
5602 5610
     /**
5603
-     * @param int|bool $wikiId
5611
+     * @param false|string $wikiId
5604 5612
      */
5605 5613
     public function setWikiData($wikiId)
5606 5614
     {
@@ -5618,7 +5626,7 @@  discard block
 block discarded – undo
5618 5626
     /**
5619 5627
      * Check last version
5620 5628
      * @param int $view
5621
-     * @return bool
5629
+     * @return false|null
5622 5630
      */
5623 5631
     public function checkLastVersion($view)
5624 5632
     {
Please login to merge, or discard this patch.
main/inc/lib/event_email_template.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
     }
87 87
 
88 88
     /**
89
-     * @return array
89
+     * @return string[]
90 90
      */
91 91
     public function get_status_list()
92 92
     {
Please login to merge, or discard this patch.
main/inc/lib/urlmanager.lib.php 1 patch
Doc Comments   +16 added lines, -13 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      * @param string $url The URL of the site
19 19
      * @param string $description The description of the site
20 20
      * @param int $active is active or not
21
-     * @return boolean if success
21
+     * @return Doctrine\DBAL\Driver\Statement if success
22 22
     */
23 23
     public static function add($url, $description, $active)
24 24
     {
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * @param string $url
44 44
      * @param string $description The description of the site
45 45
      * @param int $active is active or not
46
-     * @return boolean if success
46
+     * @return Doctrine\DBAL\Driver\Statement if success
47 47
      */
48 48
     public static function update($url_id, $url, $description, $active)
49 49
     {
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
     * @author Julio Montoya
386 386
     * @param int user id
387 387
     * @param int url id
388
-    * @return boolean true if success
388
+    * @return integer true if success
389 389
     * */
390 390
     public static function relation_url_user_exist($user_id, $url_id)
391 391
     {
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
     * @author Julio Montoya
404 404
     * @param int $courseId
405 405
     * @param int $urlId
406
-    * @return boolean true if success
406
+    * @return integer true if success
407 407
     * */
408 408
     public static function relation_url_course_exist($courseId, $urlId)
409 409
     {
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
      * @author Julio Montoya
425 425
      * @param int $userGroupId
426 426
      * @param int $urlId
427
-     * @return boolean true if success
427
+     * @return integer true if success
428 428
      * */
429 429
     public static function relationUrlUsergroupExist($userGroupId, $urlId)
430 430
     {
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
     * @author Julio Montoya
445 445
     * @param int user id
446 446
     * @param int url id
447
-    * @return boolean true if success
447
+    * @return integer true if success
448 448
     * */
449 449
     public static function relation_url_session_exist($session_id, $url_id)
450 450
     {
@@ -567,6 +567,8 @@  discard block
 block discarded – undo
567 567
      * @author Julio Montoya
568 568
      * @param  array of course ids
569 569
      * @param  array of url_ids
570
+     * @param integer[] $courseCategoryList
571
+     * @param integer[] $urlList
570 572
      * @return array
571 573
      **/
572 574
     public static function addCourseCategoryListToUrl($courseCategoryList, $urlList)
@@ -597,7 +599,7 @@  discard block
 block discarded – undo
597 599
      * @author Julio Montoya
598 600
      * @param int $categoryCourseId
599 601
      * @param int $urlId
600
-     * @return boolean true if success
602
+     * @return integer true if success
601 603
      * */
602 604
     public static function relationUrlCourseCategoryExist($categoryCourseId, $urlId)
603 605
     {
@@ -615,7 +617,7 @@  discard block
 block discarded – undo
615 617
     /**
616 618
      * @param int $userGroupId
617 619
      * @param int $urlId
618
-     * @return int
620
+     * @return string
619 621
      */
620 622
     public static function addUserGroupToUrl($userGroupId, $urlId)
621 623
     {
@@ -717,7 +719,7 @@  discard block
 block discarded – undo
717 719
      * @param int $courseId
718 720
      * @param int $url_id
719 721
      *
720
-     * @return resource
722
+     * @return boolean
721 723
      */
722 724
     public static function add_course_to_url($courseId, $url_id = 1)
723 725
     {
@@ -808,7 +810,7 @@  discard block
 block discarded – undo
808 810
     * @param  int  $courseId
809 811
     * @param  int  $urlId
810 812
      *
811
-    * @return boolean true if success
813
+    * @return Doctrine\DBAL\Driver\Statement true if success
812 814
     * */
813 815
     public static function delete_url_rel_course($courseId, $urlId)
814 816
     {
@@ -826,7 +828,7 @@  discard block
 block discarded – undo
826 828
      * @param  int $userGroupId
827 829
      * @param  int $urlId
828 830
      *
829
-     * @return boolean true if success
831
+     * @return Doctrine\DBAL\Driver\Statement true if success
830 832
      * */
831 833
     public static function delete_url_rel_usergroup($userGroupId, $urlId)
832 834
     {
@@ -845,7 +847,7 @@  discard block
 block discarded – undo
845 847
      * @param  int $userGroupId
846 848
      * @param  int $urlId
847 849
      *
848
-     * @return boolean true if success
850
+     * @return Doctrine\DBAL\Driver\Statement true if success
849 851
      * */
850 852
     public static function deleteUrlRelCourseCategory($userGroupId, $urlId)
851 853
     {
@@ -864,8 +866,9 @@  discard block
 block discarded – undo
864 866
     * @author Julio Montoya
865 867
     * @param  char  course code
866 868
     * @param  int url id
869
+    * @param integer $url_id
867 870
      *
868
-    * @return boolean true if success
871
+    * @return Doctrine\DBAL\Driver\Statement true if success
869 872
     * */
870 873
     public static function delete_url_rel_session($session_id, $url_id)
871 874
     {
Please login to merge, or discard this patch.
main/webservices/cm_webservice.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,6 +42,8 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @param int Error code
44 44
      * @param string Error message
45
+     * @param integer $code
46
+     * @param string $message
45 47
      */
46 48
     public function __construct($code, $message)
47 49
     {
@@ -91,6 +93,7 @@  discard block
 block discarded – undo
91 93
      * Handle method
92 94
      *
93 95
      * @param WSError $error Error
96
+     * @return void
94 97
      */
95 98
     public function handle($error);
96 99
 }
@@ -119,7 +122,7 @@  discard block
 block discarded – undo
119 122
      * Verifies the API key
120 123
      *
121 124
      * @param string $secret_key Secret key
122
-     * @return mixed WSError in case of failure, null in case of success
125
+     * @return WSCMError|null WSError in case of failure, null in case of success
123 126
      */
124 127
     protected function verifyKey($secret_key)
125 128
     {
@@ -145,7 +148,7 @@  discard block
 block discarded – undo
145 148
      * @param string $username of the user in chamilo
146 149
      * @param string $pass of the same user (in MD5 of SHA)
147 150
      *
148
-     * @return mixed "valid" if username e password are correct! Else, return a message error
151
+     * @return string "valid" if username e password are correct! Else, return a message error
149 152
      */
150 153
     public function verifyUserPass($username, $pass)
151 154
     {
Please login to merge, or discard this patch.