Completed
Push — 1.10.x ( 9d3ef5...048bd3 )
by José
53:13
created
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.
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.
main/inc/lib/api.lib.php 1 patch
Doc Comments   +6 added lines, -3 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)
@@ -5354,7 +5355,7 @@  discard block
 block discarded – undo
5354 5355
  * Gets the access url info in an array
5355 5356
  * @param int $id Id of the access url
5356 5357
  * @param bool $returnDefault Set to false if you want the real URL if URL 1 is still 'http://localhost/'
5357
- * @return array All the info (url, description, active, created_by, tms)
5358
+ * @return string All the info (url, description, active, created_by, tms)
5358 5359
  * from the access_url table
5359 5360
  * @author Julio Montoya
5360 5361
  */
@@ -6803,7 +6804,7 @@  discard block
 block discarded – undo
6803 6804
 /**
6804 6805
  * Returns an array of global configuration settings which should be ignored
6805 6806
  * when printing the configuration settings screens
6806
- * @return array Array of strings, each identifying one of the excluded settings
6807
+ * @return string[] Array of strings, each identifying one of the excluded settings
6807 6808
  */
6808 6809
 function api_get_locked_settings() {
6809 6810
     return array(
@@ -6846,6 +6847,7 @@  discard block
 block discarded – undo
6846 6847
  * false if he isn't. If the user ID is given and is an integer, then the same
6847 6848
  * ID is simply returned
6848 6849
  * @param  integer User ID
6850
+ * @param integer $user_id
6849 6851
  * @return boolean Integer User ID is logged in, or false otherwise
6850 6852
  */
6851 6853
 function api_user_is_login($user_id = null) {
@@ -7290,6 +7292,7 @@  discard block
 block discarded – undo
7290 7292
 /**
7291 7293
  * Gets memory limit in bytes
7292 7294
  * @param string The memory size (128M, 1G, 1000K, etc)
7295
+ * @param string $mem
7293 7296
  * @return int
7294 7297
  * @assert (null) === false
7295 7298
  * @assert ('1t')  === 1099511627776
@@ -8201,7 +8204,7 @@  discard block
 block discarded – undo
8201 8204
 /**
8202 8205
  * Like strip_tags(), but leaves an additional space and removes only the given tags
8203 8206
  * @param string $string
8204
- * @param array $tags Tags to be removed
8207
+ * @param string[] $tags Tags to be removed
8205 8208
  * @return  string The original string without the given tags
8206 8209
  */
8207 8210
 function stripGivenTags($string, $tags) {
Please login to merge, or discard this patch.