Completed
Push — 1.10.x ( 9e3317...fcbc7e )
by Angel Fernando Quiroz
31:56
created
main/inc/lib/grade_model.lib.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -259,10 +259,10 @@
 block discarded – undo
259 259
     }
260 260
 
261 261
     /**
262
-     * @param $form
262
+     * @param CatForm $form
263 263
      * @param string $name
264 264
      * @param null $default_value
265
-     * @return bool
265
+     * @return false|null
266 266
      */
267 267
     public function fill_grade_model_select_in_form(&$form, $name = 'gradebook_model_id', $default_value = null)
268 268
     {
Please login to merge, or discard this patch.
main/inc/lib/userportal.lib.php 1 patch
Doc Comments   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -682,6 +682,7 @@  discard block
 block discarded – undo
682 682
     * retrieves all the courses that the user has already subscribed to
683 683
     * @author Patrick Cool <[email protected]>, Ghent University, Belgium
684 684
     * @param int $user_id: the id of the user
685
+    * @param integer $user_id
685 686
     * @return array an array containing all the information of the courses of the given user
686 687
     */
687 688
     public function get_courses_of_user($user_id)
@@ -732,8 +733,8 @@  discard block
 block discarded – undo
732 733
 
733 734
     /**
734 735
      * @todo use the template system
735
-     * @param $title
736
-     * @param $content
736
+     * @param string|null $title
737
+     * @param string $content
737 738
      * @param string $id
738 739
      * @param array $params
739 740
      * @param string $idAccordion
@@ -1704,8 +1705,8 @@  discard block
 block discarded – undo
1704 1705
 
1705 1706
     /**
1706 1707
      * Return HTML code for personal user course category
1707
-     * @param $id
1708
-     * @param $title
1708
+     * @param integer $id
1709
+     * @param string $title
1709 1710
      * @return string
1710 1711
      */
1711 1712
     private static function getHtmlForUserCategory($id, $title)
@@ -1726,7 +1727,7 @@  discard block
 block discarded – undo
1726 1727
     /**
1727 1728
      * return HTML code for course display in session view
1728 1729
      * @param array $courseInfo
1729
-     * @param $userCategoryId
1730
+     * @param integer $userCategoryId
1730 1731
      * @param bool $displayButton
1731 1732
      * @param $loadDirs
1732 1733
      * @return string
Please login to merge, or discard this patch.
main/inc/lib/internationalization.lib.php 1 patch
Doc Comments   +17 added lines, -11 removed lines patch added patch discarded remove patch
@@ -437,6 +437,7 @@  discard block
 block discarded – undo
437 437
  * If null, the timezone will be determined based on user preference,
438 438
  * or timezone chosen by the admin for the platform.
439 439
  * @param string The timezone to be converted from. If null, UTC will be assumed.
440
+ * @param string $to_timezone
440 441
  * @return string The converted time formatted as Y-m-d H:i:s
441 442
  *
442 443
  * @author Guillaume Viguier <[email protected]>
@@ -793,6 +794,7 @@  discard block
 block discarded – undo
793 794
  * @param mixed The time to be converted
794 795
  * @param mixed Format to be used (TIME_NO_SEC_FORMAT, DATE_FORMAT_SHORT, DATE_FORMAT_LONG, DATE_TIME_FORMAT_LONG)
795 796
  * @param string Timezone to be converted from. If null, UTC will be assumed.
797
+ * @param string $from_timezone
796 798
  * @return string Converted and localized date
797 799
  *
798 800
  * @author Guillaume Viguier <[email protected]>
@@ -862,7 +864,7 @@  discard block
 block discarded – undo
862 864
  * @param int/string $format (optional)	The person name format. It may be a pattern-string (for example '%t %l, %f' or '%T %F %L', ...) or some of the constants PERSON_NAME_COMMON_CONVENTION (default), PERSON_NAME_WESTERN_ORDER, PERSON_NAME_EASTERN_ORDER, PERSON_NAME_LIBRARY_ORDER.
863 865
  * @param string $language (optional)	The language id. If it is omitted, the current interface language is assumed. This parameter has meaning with the format PERSON_NAME_COMMON_CONVENTION only.
864 866
  * @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.
865
- * @return bool							The result is sort of full name of the person.
867
+ * @return string							The result is sort of full name of the person.
866 868
  * Sample results:
867 869
  * Peter Ustinoff or Dr. Peter Ustinoff     - the Western order
868 870
  * Ustinoff Peter or Dr. Ustinoff Peter     - the Eastern order
@@ -956,7 +958,7 @@  discard block
 block discarded – undo
956 958
 
957 959
 /**
958 960
  * Checks whether a given format represents person name in Western order (for which first name is first).
959
- * @param int/string $format (optional)	The person name format. It may be a pattern-string (for example '%t. %l, %f') or some of the constants PERSON_NAME_COMMON_CONVENTION (default), PERSON_NAME_WESTERN_ORDER, PERSON_NAME_EASTERN_ORDER, PERSON_NAME_LIBRARY_ORDER.
961
+ * @param integer $format (optional)	The person name format. It may be a pattern-string (for example '%t. %l, %f') or some of the constants PERSON_NAME_COMMON_CONVENTION (default), PERSON_NAME_WESTERN_ORDER, PERSON_NAME_EASTERN_ORDER, PERSON_NAME_LIBRARY_ORDER.
960 962
  * @param string $language (optional)	The language id. If it is omitted, the current interface language is assumed. This parameter has meaning with the format PERSON_NAME_COMMON_CONVENTION only.
961 963
  * @return bool							The result TRUE means that the order is first_name last_name, FALSE means last_name first_name.
962 964
  * Note: You may use this function for determing the order of the fields or columns "First name" and "Last name" in forms, tables and reports.
@@ -1184,8 +1186,8 @@  discard block
 block discarded – undo
1184 1186
 
1185 1187
 /**
1186 1188
  * This function returns a string or an array with all occurrences of search in subject (ignoring case) replaced with the given replace value.
1187
- * @param mixed $search					String or array of strings to be found.
1188
- * @param mixed $replace				String or array of strings used for replacement.
1189
+ * @param string $search					String or array of strings to be found.
1190
+ * @param string $replace				String or array of strings used for replacement.
1189 1191
  * @param mixed $subject				String or array of strings being searched.
1190 1192
  * @param int $count (optional)			The number of matched and replaced needles will be returned in count, which is passed by reference.
1191 1193
  * @param string $encoding (optional)	The used internally by this function character encoding.
@@ -1248,10 +1250,10 @@  discard block
 block discarded – undo
1248 1250
 /**
1249 1251
  * Finds first occurrence of a string within another, case insensitive.
1250 1252
  * @param string $haystack					The string from which to get the first occurrence.
1251
- * @param mixed $needle						The string to be found.
1253
+ * @param string $needle						The string to be found.
1252 1254
  * @param bool $before_needle (optional)	Determines which portion of $haystack this function returns. The default value is FALSE.
1253 1255
  * @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.
1254
- * @return mixed							Returns the portion of $haystack, or FALSE if $needle is not found.
1256
+ * @return false|string							Returns the portion of $haystack, or FALSE if $needle is not found.
1255 1257
  * Notes:
1256 1258
  * 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.
1257 1259
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence of $needle.
@@ -1307,7 +1309,7 @@  discard block
 block discarded – undo
1307 1309
  * @param mixed $needle						The string which first character is to be found.
1308 1310
  * @param bool $before_needle (optional)	Determines which portion of $haystack this function returns. The default value is FALSE.
1309 1311
  * @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.
1310
- * @return mixed							Returns the portion of $haystack, or FALSE if the first character from $needle is not found.
1312
+ * @return false|string							Returns the portion of $haystack, or FALSE if the first character from $needle is not found.
1311 1313
  * Notes:
1312 1314
  * 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.
1313 1315
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence.
@@ -1374,7 +1376,7 @@  discard block
 block discarded – undo
1374 1376
  * @param mixed $needle						The string to be found.
1375 1377
  * @param bool $before_needle (optional)	Determines which portion of $haystack this function returns. The default value is FALSE.
1376 1378
  * @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.
1377
- * @return mixed							Returns the portion of $haystack, or FALSE if $needle is not found.
1379
+ * @return false|string							Returns the portion of $haystack, or FALSE if $needle is not found.
1378 1380
  * Notes:
1379 1381
  * 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.
1380 1382
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence of $needle.
@@ -1555,8 +1557,8 @@  discard block
 block discarded – undo
1555 1557
 
1556 1558
 /**
1557 1559
  * Performs a regular expression search and replace, UTF-8 aware when it is applicable.
1558
- * @param string|array $pattern			The pattern to search for. It can be either a string or an array with strings.
1559
- * @param string|array $replacement		The string or an array with strings to replace.
1560
+ * @param string $pattern			The pattern to search for. It can be either a string or an array with strings.
1561
+ * @param string $replacement		The string or an array with strings to replace.
1560 1562
  * @param string|array $subject			The string or an array with strings to search and replace.
1561 1563
  * @param int $limit					The maximum possible replacements for each pattern in each subject string. Defaults to -1 (no limit).
1562 1564
  * @param int &$count					If specified, this variable will be filled with the number of replacements done.
@@ -1808,6 +1810,7 @@  discard block
 block discarded – undo
1808 1810
 /**
1809 1811
  * Checks a string for UTF-8 validity.
1810 1812
  *
1813
+ * @param string $string
1811 1814
  */
1812 1815
 function api_is_valid_utf8(&$string)
1813 1816
 {
@@ -1950,7 +1953,7 @@  discard block
 block discarded – undo
1950 1953
 /**
1951 1954
  * Replaces non-valid formats for person names with the default (English) format.
1952 1955
  * @param string $format	The input format to be verified.
1953
- * @return bool				Returns the same format if is is valid, otherwise returns a valid English format.
1956
+ * @return string				Returns the same format if is is valid, otherwise returns a valid English format.
1954 1957
  */
1955 1958
 function _api_validate_person_name_format($format) {
1956 1959
     if (empty($format) || stripos($format, '%f') === false || stripos($format, '%l') === false) {
@@ -2077,6 +2080,9 @@  discard block
 block discarded – undo
2077 2080
 
2078 2081
 // This function checks whether the function _api_convert_encoding() (the php-
2079 2082
 // implementation) is able to convert from/to a given encoding.
2083
+/**
2084
+ * @param string $encoding
2085
+ */
2080 2086
 function _api_convert_encoding_supports($encoding) {
2081 2087
     static $supports = array();
2082 2088
     if (!isset($supports[$encoding])) {
Please login to merge, or discard this patch.
main/work/work.lib.php 1 patch
Doc Comments   +16 added lines, -15 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
  * Create a group of select from a date
159 159
  * @param FormValidator $form
160 160
  * @param string $prefix
161
- * @return array
161
+ * @return HTML_QuickForm_element[]
162 162
  */
163 163
 function create_group_date_select($form, $prefix = '')
164 164
 {
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
  * @author Bert Vanderkimpen
753 753
  * @author Yannick Warnier <[email protected]> Adaptation for work tool
754 754
  * @param   string $base_work_dir Base work dir (.../work)
755
- * @param   string $desiredDirName complete path of the desired name
755
+ * @param   string $desired_dir_name complete path of the desired name
756 756
  *
757 757
  * @return  string actual directory name if it succeeds, boolean false otherwise
758 758
  */
@@ -774,7 +774,7 @@  discard block
 block discarded – undo
774 774
 /**
775 775
  * Delete a work-tool directory
776 776
  * @param   int  $id work directory id to delete
777
- * @return  integer -1 on error
777
+ * @return  boolean|null -1 on error
778 778
  */
779 779
 function deleteDirWork($id)
780 780
 {
@@ -917,7 +917,7 @@  discard block
 block discarded – undo
917 917
  * Update the url of a dir in the student_publication table
918 918
  * @param  array $work_data work original data
919 919
  * @param  string $newPath Example: "folder1"
920
- * @return bool
920
+ * @return boolean|null
921 921
  */
922 922
 function updateDirName($work_data, $newPath)
923 923
 {
@@ -974,6 +974,7 @@  discard block
 block discarded – undo
974 974
 /**
975 975
  * Transform an all directory structure (only directories) in an array
976 976
  * @param   string path of the directory
977
+ * @param string $directory
977 978
  * @return  array the directory structure into an array
978 979
  * @author  Julio Montoya Dokeos
979 980
  * @version April 2008
@@ -1043,7 +1044,7 @@  discard block
 block discarded – undo
1043 1044
  * @param   string the path of the directory
1044 1045
  * @param   boolean true if we want the total quantity of files
1045 1046
  * include in others child directories, false only  files in the directory
1046
- * @return  array the first element is an integer with the number of files
1047
+ * @return  integer[] the first element is an integer with the number of files
1047 1048
  * in the folder, the second element is the number of directories
1048 1049
  * @author  Julio Montoya
1049 1050
  * @version April 2008
@@ -2318,7 +2319,7 @@  discard block
 block discarded – undo
2318 2319
 }
2319 2320
 
2320 2321
 /**
2321
- * @param $name
2322
+ * @param string $name
2322 2323
  * @param $values
2323 2324
  * @param string $checked
2324 2325
  * @return string
@@ -2844,7 +2845,7 @@  discard block
 block discarded – undo
2844 2845
  * @param int $userId
2845 2846
  * @param int $workId
2846 2847
  * @param int $courseId
2847
- * @return bool
2848
+ * @return boolean|null
2848 2849
  */
2849 2850
 function allowOnlySubscribedUser($userId, $workId, $courseId)
2850 2851
 {
@@ -3121,6 +3122,7 @@  discard block
 block discarded – undo
3121 3122
  * @param int $parentId
3122 3123
  * @param array $courseInfo
3123 3124
  * @param int $sessionId
3125
+ * @param integer $userId
3124 3126
  * @return int
3125 3127
  */
3126 3128
 function getLastWorkStudentFromParentByUser(
@@ -3757,12 +3759,11 @@  discard block
 block discarded – undo
3757 3759
 
3758 3760
 /**
3759 3761
  * Creates a new task (directory) in the assignment tool
3760
- * @param array $params
3761 3762
  * @param int $user_id
3762 3763
  * @param array $courseInfo
3763 3764
  * @param int $group_id
3764 3765
  * @param int $session_id
3765
- * @return bool|int
3766
+ * @return string|false
3766 3767
  * @note $params can have the following elements, but should at least have the 2 first ones: (
3767 3768
  *       'new_dir' => 'some-name',
3768 3769
  *       'description' => 'some-desc',
@@ -4258,7 +4259,7 @@  discard block
 block discarded – undo
4258 4259
 }
4259 4260
 
4260 4261
 /**
4261
- * @return array
4262
+ * @return string[]
4262 4263
  */
4263 4264
 function getUploadDocumentType()
4264 4265
 {
@@ -4630,7 +4631,7 @@  discard block
 block discarded – undo
4630 4631
  * @param int Session ID
4631 4632
  * @param $correction
4632 4633
  *
4633
- * @return array|bool
4634
+ * @return boolean
4634 4635
  */
4635 4636
 function getFileContents($id, $course_info, $sessionId = 0, $correction = false)
4636 4637
 {
@@ -4748,7 +4749,7 @@  discard block
 block discarded – undo
4748 4749
  * @param int $userId
4749 4750
  * @param array $courseInfo
4750 4751
  * @param string $format
4751
- * @return bool
4752
+ * @return false|null
4752 4753
  */
4753 4754
 function exportAllWork($userId, $courseInfo, $format = 'pdf')
4754 4755
 {
@@ -4796,7 +4797,7 @@  discard block
 block discarded – undo
4796 4797
  * @param array $courseInfo
4797 4798
  * @param int $sessionId
4798 4799
  * @param string $format
4799
- * @return bool
4800
+ * @return false|null
4800 4801
  */
4801 4802
 function exportAllStudentWorkFromPublication(
4802 4803
     $workId,
@@ -4934,7 +4935,7 @@  discard block
 block discarded – undo
4934 4935
  * Downloads all user files per user
4935 4936
  * @param int $userId
4936 4937
  * @param array $courseInfo
4937
- * @return bool
4938
+ * @return false|null
4938 4939
  */
4939 4940
 function downloadAllFilesPerUser($userId, $courseInfo)
4940 4941
 {
@@ -5048,7 +5049,7 @@  discard block
 block discarded – undo
5048 5049
 /**
5049 5050
  * @param array $courseInfo
5050 5051
  * @param int $workId
5051
- * @return bool
5052
+ * @return boolean|null
5052 5053
  */
5053 5054
 function protectWork($courseInfo, $workId)
5054 5055
 {
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Entity/Session.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -506,7 +506,7 @@  discard block
 block discarded – undo
506 506
      * Set description
507 507
      *
508 508
      * @param string $description
509
-     * @return Groups
509
+     * @return Session
510 510
      */
511 511
     public function setDescription($description)
512 512
     {
@@ -839,7 +839,7 @@  discard block
 block discarded – undo
839 839
     }
840 840
 
841 841
     /**
842
-     * @return array
842
+     * @return string[]
843 843
      */
844 844
     public static function getStatusList()
845 845
     {
Please login to merge, or discard this patch.
main/inc/lib/system_announcements.lib.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -306,7 +306,7 @@
 block discarded – undo
306 306
 	 * @param int    Whether the announcement should be visible to anonymous users (1) or not (0)
307 307
 	 * @param string The language for which the announvement should be shown. Leave null for all langages
308 308
 	 * @param int    Whether to send an e-mail to all users (1) or not (0)
309
-	 * @return mixed  insert_id on success, false on failure
309
+	 * @return false|string  insert_id on success, false on failure
310 310
 	 */
311 311
     public static function add_announcement(
312 312
         $title,
Please login to merge, or discard this patch.
main/inc/lib/system/session.class.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@  discard block
 block discarded – undo
14 14
 class Session implements \ArrayAccess
15 15
 {
16 16
 
17
+    /**
18
+     * @param string $variable
19
+     */
17 20
     static function read($variable, $default = null)
18 21
     {
19 22
         return isset($_SESSION[$variable]) ? $_SESSION[$variable] : $default;
@@ -39,7 +42,7 @@  discard block
 block discarded – undo
39 42
      * Returns true if session has variable set up, false otherwise.
40 43
      *
41 44
      * @param string $variable
42
-     * @return mixed value
45
+     * @return boolean value
43 46
      */
44 47
     static function has($variable)
45 48
     {
Please login to merge, or discard this patch.
main/inc/lib/document.lib.php 1 patch
Doc Comments   +21 added lines, -18 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
     /**
278 278
      *  @param string
279 279
      *  @param string
280
-     * 	@return true if the user is allowed to see the document, false otherwise
280
+     * 	@return boolean if the user is allowed to see the document, false otherwise
281 281
      * 	@author Sergio A Kessler, first version
282 282
      * 	@author Roan Embrechts, bugfix
283 283
      *  @todo not only check if a file is visible, but also check if the user is allowed to see the file??
@@ -736,7 +736,7 @@  discard block
 block discarded – undo
736 736
      * Gets the paths of all folders in a course
737 737
      * can show all folders (except for the deleted ones) or only visible ones
738 738
      *
739
-     * @param array $_course
739
+     * @param Chamilo\CoreBundle\Entity\Course $_course
740 740
      * @param int $to_group_id
741 741
      * @param boolean $can_see_invisible
742 742
      *
@@ -1544,7 +1544,7 @@  discard block
 block discarded – undo
1544 1544
      * Return true if the documentpath have visibility=1 as
1545 1545
      * item_property (you should use the is_visible_by_id)
1546 1546
      *
1547
-     * @param string $document_path the relative complete path of the document
1547
+     * @param string $doc_path the relative complete path of the document
1548 1548
      * @param array  $course the _course array info of the document's course
1549 1549
      * @param int
1550 1550
      * @param string
@@ -1629,6 +1629,8 @@  discard block
 block discarded – undo
1629 1629
      * @param   int
1630 1630
      * @param   int
1631 1631
      * @param bool
1632
+     * @param integer $session_id
1633
+     * @param integer $user_id
1632 1634
      * @return  bool
1633 1635
      */
1634 1636
     public static function is_visible_by_id(
@@ -2116,6 +2118,7 @@  discard block
 block discarded – undo
2116 2118
      * @param	bool  	is file or string html
2117 2119
      * @param	string	type (one of the app tools) - optional (otherwise takes the current item's type)
2118 2120
      * @param	int		level of recursivity we're in
2121
+     * @param string $source_html
2119 2122
      * @return	array	List of file paths. An additional field containing 'local' or 'remote' helps determine
2120 2123
      * if the file should be copied into the zip or just linked
2121 2124
      */
@@ -2942,6 +2945,7 @@  discard block
 block discarded – undo
2942 2945
 
2943 2946
     /**
2944 2947
      * Obtains the text inside the file with the right parser
2948
+     * @param string $doc_path
2945 2949
      */
2946 2950
     public static function get_text_content($doc_path, $doc_mime)
2947 2951
     {
@@ -3192,6 +3196,7 @@  discard block
 block discarded – undo
3192 3196
      * Shows a play icon next to the document title in the document list
3193 3197
      * @param int
3194 3198
      * @param string
3199
+     * @param integer|null $i
3195 3200
      * @return string	html content
3196 3201
      */
3197 3202
     static function generate_media_preview($i, $type = 'simple')
@@ -4082,7 +4087,7 @@  discard block
 block discarded – undo
4082 4087
     }
4083 4088
 
4084 4089
     /**
4085
-     * @return array
4090
+     * @return string[]
4086 4091
      */
4087 4092
     public static function get_web_odf_extension_list()
4088 4093
     {
@@ -4091,10 +4096,10 @@  discard block
 block discarded – undo
4091 4096
 
4092 4097
     /**
4093 4098
      * Set of extension allowed to use Jodconverter
4094
-     * @param $mode 'from'
4099
+     * @param string $mode 'from'
4095 4100
      *              'to'
4096 4101
      *              'all'
4097
-     * @param $format   'text'
4102
+     * @param string $format   'text'
4098 4103
      *                  'spreadsheet'
4099 4104
      *                  'presentation'
4100 4105
      *                  'drawing'
@@ -4298,7 +4303,7 @@  discard block
 block discarded – undo
4298 4303
     }
4299 4304
 
4300 4305
     /**
4301
-     * @return array
4306
+     * @return string[]
4302 4307
      */
4303 4308
     public static function get_system_folders()
4304 4309
     {
@@ -4316,7 +4321,7 @@  discard block
 block discarded – undo
4316 4321
     }
4317 4322
 
4318 4323
     /**
4319
-     * @return array
4324
+     * @return string[]
4320 4325
      */
4321 4326
     public static function getProtectedFolderFromStudent()
4322 4327
     {
@@ -4472,7 +4477,7 @@  discard block
 block discarded – undo
4472 4477
      * Requires the ffmpeg lib. In ubuntu: sudo apt-get install ffmpeg
4473 4478
      * @param string $wavFile
4474 4479
      * @param bool $removeWavFileIfSuccess
4475
-     * @return bool
4480
+     * @return string|false
4476 4481
      */
4477 4482
     public static function convertWavToMp3($wavFile, $removeWavFileIfSuccess = false)
4478 4483
     {
@@ -5561,9 +5566,6 @@  discard block
 block discarded – undo
5561 5566
     /**
5562 5567
      * Creates the row of edit icons for a file/folder
5563 5568
      *
5564
-     * @param string $curdirpath current path (cfr open folder)
5565
-     * @param string $type (file/folder)
5566
-     * @param string $path dbase path of file/folder
5567 5569
      * @param int $visibility (1/0)
5568 5570
      * @param int $id dbase id of the document
5569 5571
      * @return string html img tags with hyperlinks
@@ -5893,7 +5895,7 @@  discard block
 block discarded – undo
5893 5895
     /**
5894 5896
      * Gets the path translated with title of docs and folders
5895 5897
      * @param string $path the real path
5896
-     * @return the path which should be displayed
5898
+     * @return string path which should be displayed
5897 5899
      */
5898 5900
     public static function get_titles_of_path($path)
5899 5901
     {
@@ -5948,7 +5950,8 @@  discard block
 block discarded – undo
5948 5950
 
5949 5951
     /**
5950 5952
      * Checks whether the user is in shared folder
5951
-     * @return return bool Return true when user is into shared folder
5953
+     * @param integer $current_session_id
5954
+     * @return boolean bool Return true when user is into shared folder
5952 5955
      */
5953 5956
     public static function is_shared_folder($curdirpath, $current_session_id)
5954 5957
     {
@@ -5964,7 +5967,7 @@  discard block
 block discarded – undo
5964 5967
 
5965 5968
     /**
5966 5969
      * Checks whether the user is into any user shared folder
5967
-     * @return return bool Return true when user is in any user shared folder
5970
+     * @return boolean bool Return true when user is in any user shared folder
5968 5971
      */
5969 5972
     public static function is_any_user_shared_folder($path, $current_session_id)
5970 5973
     {
@@ -6178,7 +6181,7 @@  discard block
 block discarded – undo
6178 6181
      * @param int $id
6179 6182
      * @param array $courseInfo
6180 6183
      * @param int $sessionId
6181
-     * @return bool
6184
+     * @return boolean|null
6182 6185
      */
6183 6186
     public static function downloadDeletedDocument($id, $courseInfo, $sessionId)
6184 6187
     {
@@ -6197,7 +6200,7 @@  discard block
 block discarded – undo
6197 6200
      * @param array $courseInfo
6198 6201
      * @param int $sessionId
6199 6202
      *
6200
-     * @return bool
6203
+     * @return false|null
6201 6204
      */
6202 6205
     public static function downloadAllDeletedDocument($courseInfo, $sessionId)
6203 6206
     {
@@ -6236,7 +6239,7 @@  discard block
 block discarded – undo
6236 6239
      * @param array $courseInfo
6237 6240
      * @param int $sessionId
6238 6241
      *
6239
-     * @return bool
6242
+     * @return false|null
6240 6243
      */
6241 6244
     public function deleteDocumentsFromSession($courseInfo, $sessionId)
6242 6245
     {
Please login to merge, or discard this patch.
main/inc/lib/course.lib.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2240,7 +2240,7 @@  discard block
 block discarded – undo
2240 2240
 
2241 2241
     /**
2242 2242
      * Creates a file called mysql_dump.sql in the course folder
2243
-     * @param $course_code The code of the course
2243
+     * @param string $course_code The code of the course
2244 2244
      * @todo Implementation for single database
2245 2245
      */
2246 2246
     public static function create_database_dump($course_code)
@@ -2966,6 +2966,7 @@  discard block
 block discarded – undo
2966 2966
      * @param int $limit
2967 2967
      * @param string $column
2968 2968
      * @param string $direction
2969
+     * @param integer $status
2969 2970
      * @return array    courses
2970 2971
      */
2971 2972
     public static function get_courses_followed_by_drh(
Please login to merge, or discard this patch.