Completed
Push — 1.10.x ( 4797fb...ab3968 )
by Yannick
46:02
created
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/api.lib.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1359,6 +1359,7 @@  discard block
 block discarded – undo
1359 1359
  * Gets the list of courses a specific user is subscribed to
1360 1360
  * @param int       User ID
1361 1361
  * @param boolean   $fetch_session Whether to get session courses or not - NOT YET IMPLEMENTED
1362
+ * @param integer $userid
1362 1363
  * @return array    Array of courses in the form [0]=>('code'=>xxx,'db'=>xxx,'dir'=>xxx,'status'=>d)
1363 1364
  */
1364 1365
 function api_get_user_courses($userid, $fetch_session = true)
@@ -6733,7 +6734,7 @@  discard block
 block discarded – undo
6733 6734
 /**
6734 6735
  * Returns an array of global configuration settings which should be ignored
6735 6736
  * when printing the configuration settings screens
6736
- * @return array Array of strings, each identifying one of the excluded settings
6737
+ * @return string[] Array of strings, each identifying one of the excluded settings
6737 6738
  */
6738 6739
 function api_get_locked_settings() {
6739 6740
     return array(
@@ -6776,6 +6777,7 @@  discard block
 block discarded – undo
6776 6777
  * false if he isn't. If the user ID is given and is an integer, then the same
6777 6778
  * ID is simply returned
6778 6779
  * @param  integer User ID
6780
+ * @param integer $user_id
6779 6781
  * @return boolean Integer User ID is logged in, or false otherwise
6780 6782
  */
6781 6783
 function api_user_is_login($user_id = null) {
@@ -7220,6 +7222,7 @@  discard block
 block discarded – undo
7220 7222
 /**
7221 7223
  * Gets memory limit in bytes
7222 7224
  * @param string The memory size (128M, 1G, 1000K, etc)
7225
+ * @param string $mem
7223 7226
  * @return int
7224 7227
  * @assert (null) === false
7225 7228
  * @assert ('1t')  === 1099511627776
@@ -8131,7 +8134,7 @@  discard block
 block discarded – undo
8131 8134
 /**
8132 8135
  * Like strip_tags(), but leaves an additional space and removes only the given tags
8133 8136
  * @param string $string
8134
- * @param array $tags Tags to be removed
8137
+ * @param string[] $tags Tags to be removed
8135 8138
  * @return  string The original string without the given tags
8136 8139
  */
8137 8140
 function stripGivenTags($string, $tags) {
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/exercice/export/exercise_import.inc.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -949,7 +949,6 @@
 block discarded – undo
949 949
 /**
950 950
  * Processes an IMS/QTI manifest file: store links to new files to be able to transform them into questions text
951 951
  * @param string $filePath The absolute filepath
952
- * @param array $links List of filepaths changes
953 952
  * @return bool
954 953
  */
955 954
 function qtiProcessManifest($filePath)
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.