Completed
Pull Request — 1.11.x (#1599)
by José
28:19
created
src/Chamilo/CourseBundle/Entity/CForumThread.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@
 block discarded – undo
181 181
 
182 182
     /**
183 183
      * set threadPeerQualify
184
-     * @param $threadPeerQualify
184
+     * @param integer $threadPeerQualify
185 185
      * @return $this
186 186
      */
187 187
     public function setThreadPeerQualify($threadPeerQualify)
Please login to merge, or discard this patch.
main/lp/openoffice_document.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -186,9 +186,9 @@
 block discarded – undo
186 186
 
187 187
     /**
188 188
      * Get images files from remote host (with webservices)
189
-     * @param   array $file current ppt file details
189
+     * @param   string $file current ppt file details
190 190
      * @param   string  $size The expected final size of the rendered slides
191
-     * @return  array images files
191
+     * @return  string images files
192 192
      */
193 193
     private function _get_remote_ppt2lp_files($file, $size = null)
194 194
     {
Please login to merge, or discard this patch.
app/SymfonyRequirements.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      * Adds a mandatory requirement in form of a php.ini configuration.
221 221
      *
222 222
      * @param string        $cfgName           The configuration name used for ini_get()
223
-     * @param bool|callback $evaluation        Either a boolean indicating whether the configuration should evaluate to true or false,
223
+     * @param boolean|string $evaluation        Either a boolean indicating whether the configuration should evaluate to true or false,
224 224
      *                                         or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
225 225
      * @param bool          $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
226 226
      *                                         This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
      * Adds an optional recommendation in form of a php.ini configuration.
239 239
      *
240 240
      * @param string        $cfgName           The configuration name used for ini_get()
241
-     * @param bool|callback $evaluation        Either a boolean indicating whether the configuration should evaluate to true or false,
241
+     * @param string|false $evaluation        Either a boolean indicating whether the configuration should evaluate to true or false,
242 242
      *                                         or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
243 243
      * @param bool          $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
244 244
      *                                         This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
Please login to merge, or discard this patch.
main/inc/lib/document.lib.php 1 patch
Doc Comments   +23 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??
@@ -1529,7 +1529,7 @@  discard block
 block discarded – undo
1529 1529
      * Return true if the documentpath have visibility=1 as
1530 1530
      * item_property (you should use the is_visible_by_id)
1531 1531
      *
1532
-     * @param string $document_path the relative complete path of the document
1532
+     * @param string $doc_path the relative complete path of the document
1533 1533
      * @param array  $course the _course array info of the document's course
1534 1534
      * @param int
1535 1535
      * @param string
@@ -1615,6 +1615,8 @@  discard block
 block discarded – undo
1615 1615
      * @param   int
1616 1616
      * @param   int
1617 1617
      * @param bool
1618
+     * @param integer $session_id
1619
+     * @param integer $user_id
1618 1620
      * @return  bool
1619 1621
      */
1620 1622
     public static function is_visible_by_id(
@@ -1966,7 +1968,7 @@  discard block
 block discarded – undo
1966 1968
      * Remove default certificate
1967 1969
      * @param string $course_id The course code
1968 1970
      * @param int $default_certificate_id The document id of the default certificate
1969
-     * @return void
1971
+     * @return false|null
1970 1972
      */
1971 1973
     public static function remove_attach_certificate($course_id, $default_certificate_id)
1972 1974
     {
@@ -2101,6 +2103,7 @@  discard block
 block discarded – undo
2101 2103
      * @param	bool  	is file or string html
2102 2104
      * @param	string	type (one of the app tools) - optional (otherwise takes the current item's type)
2103 2105
      * @param	int		level of recursivity we're in
2106
+     * @param string $source_html
2104 2107
      * @return	array	List of file paths. An additional field containing 'local' or 'remote' helps determine
2105 2108
      * if the file should be copied into the zip or just linked
2106 2109
      */
@@ -2940,6 +2943,7 @@  discard block
 block discarded – undo
2940 2943
 
2941 2944
     /**
2942 2945
      * Obtains the text inside the file with the right parser
2946
+     * @param string $doc_path
2943 2947
      */
2944 2948
     public static function get_text_content($doc_path, $doc_mime)
2945 2949
     {
@@ -3191,6 +3195,7 @@  discard block
 block discarded – undo
3191 3195
      * Shows a play icon next to the document title in the document list
3192 3196
      * @param int
3193 3197
      * @param string
3198
+     * @param integer|null $i
3194 3199
      * @return string	html content
3195 3200
      */
3196 3201
     public static function generate_media_preview($i, $type = 'simple')
@@ -4089,7 +4094,7 @@  discard block
 block discarded – undo
4089 4094
     }
4090 4095
 
4091 4096
     /**
4092
-     * @return array
4097
+     * @return string[]
4093 4098
      */
4094 4099
     public static function get_web_odf_extension_list()
4095 4100
     {
@@ -4098,10 +4103,10 @@  discard block
 block discarded – undo
4098 4103
 
4099 4104
     /**
4100 4105
      * Set of extension allowed to use Jodconverter
4101
-     * @param $mode 'from'
4106
+     * @param string $mode 'from'
4102 4107
      *              'to'
4103 4108
      *              'all'
4104
-     * @param $format   'text'
4109
+     * @param string $format   'text'
4105 4110
      *                  'spreadsheet'
4106 4111
      *                  'presentation'
4107 4112
      *                  'drawing'
@@ -4305,7 +4310,7 @@  discard block
 block discarded – undo
4305 4310
     }
4306 4311
 
4307 4312
     /**
4308
-     * @return array
4313
+     * @return string[]
4309 4314
      */
4310 4315
     public static function get_system_folders()
4311 4316
     {
@@ -4323,7 +4328,7 @@  discard block
 block discarded – undo
4323 4328
     }
4324 4329
 
4325 4330
     /**
4326
-     * @return array
4331
+     * @return string[]
4327 4332
      */
4328 4333
     public static function getProtectedFolderFromStudent()
4329 4334
     {
@@ -4479,7 +4484,7 @@  discard block
 block discarded – undo
4479 4484
      * Requires the ffmpeg lib. In ubuntu: sudo apt-get install ffmpeg
4480 4485
      * @param string $wavFile
4481 4486
      * @param bool $removeWavFileIfSuccess
4482
-     * @return bool
4487
+     * @return string|false
4483 4488
      */
4484 4489
     public static function convertWavToMp3($wavFile, $removeWavFileIfSuccess = false)
4485 4490
     {
@@ -5055,6 +5060,8 @@  discard block
 block discarded – undo
5055 5060
      * @param string	The current folder (path inside of the "document" directory, including the prefix "/")
5056 5061
      * @param string	Group directory, if empty, prevents documents to be uploaded (because group documents cannot be uploaded in root)
5057 5062
      * @param	boolean	Whether to change the renderer (this will add a template <span> to the QuickForm object displaying the form)
5063
+     * @param string $document_id
5064
+     * @param FormValidator $form
5058 5065
 
5059 5066
      * @return string html form
5060 5067
      */
@@ -5560,9 +5567,6 @@  discard block
 block discarded – undo
5560 5567
     /**
5561 5568
      * Creates the row of edit icons for a file/folder
5562 5569
      *
5563
-     * @param string $curdirpath current path (cfr open folder)
5564
-     * @param string $type (file/folder)
5565
-     * @param string $path dbase path of file/folder
5566 5570
      * @param int $visibility (1/0)
5567 5571
      * @param int $id dbase id of the document
5568 5572
      * @return string html img tags with hyperlinks
@@ -5896,7 +5900,7 @@  discard block
 block discarded – undo
5896 5900
     /**
5897 5901
      * Gets the path translated with title of docs and folders
5898 5902
      * @param string $path the real path
5899
-     * @return the path which should be displayed
5903
+     * @return string path which should be displayed
5900 5904
      */
5901 5905
     public static function get_titles_of_path($path)
5902 5906
     {
@@ -5952,7 +5956,8 @@  discard block
 block discarded – undo
5952 5956
 
5953 5957
     /**
5954 5958
      * Checks whether the user is in shared folder
5955
-     * @return return bool Return true when user is into shared folder
5959
+     * @param integer $current_session_id
5960
+     * @return boolean bool Return true when user is into shared folder
5956 5961
      */
5957 5962
     public static function is_shared_folder($curdirpath, $current_session_id)
5958 5963
     {
@@ -5968,7 +5973,7 @@  discard block
 block discarded – undo
5968 5973
 
5969 5974
     /**
5970 5975
      * Checks whether the user is into any user shared folder
5971
-     * @return return bool Return true when user is in any user shared folder
5976
+     * @return boolean bool Return true when user is in any user shared folder
5972 5977
      */
5973 5978
     public static function is_any_user_shared_folder($path, $current_session_id)
5974 5979
     {
@@ -6182,7 +6187,7 @@  discard block
 block discarded – undo
6182 6187
      * @param int $id
6183 6188
      * @param array $courseInfo
6184 6189
      * @param int $sessionId
6185
-     * @return bool
6190
+     * @return boolean|null
6186 6191
      */
6187 6192
     public static function downloadDeletedDocument($id, $courseInfo, $sessionId)
6188 6193
     {
@@ -6201,7 +6206,7 @@  discard block
 block discarded – undo
6201 6206
      * @param array $courseInfo
6202 6207
      * @param int $sessionId
6203 6208
      *
6204
-     * @return bool
6209
+     * @return false|null
6205 6210
      */
6206 6211
     public static function downloadAllDeletedDocument($courseInfo, $sessionId)
6207 6212
     {
@@ -6240,7 +6245,7 @@  discard block
 block discarded – undo
6240 6245
      * @param array $courseInfo
6241 6246
      * @param int $sessionId
6242 6247
      *
6243
-     * @return bool
6248
+     * @return false|null
6244 6249
      */
6245 6250
     public static function deleteDocumentsFromSession($courseInfo, $sessionId)
6246 6251
     {
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/lp/learnpathItem.class.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1869,7 +1869,7 @@  discard block
 block discarded – undo
1869 1869
 
1870 1870
     /**
1871 1871
      * Get the extra terms (tags) that identify this item
1872
-     * @return mixed
1872
+     * @return string
1873 1873
      */
1874 1874
     public function get_terms()
1875 1875
     {
@@ -2069,7 +2069,7 @@  discard block
 block discarded – undo
2069 2069
 
2070 2070
     /**
2071 2071
      * Opens/launches the item. Initialises runtime values.
2072
-     * @return    boolean    True on success, false on failure.
2072
+     * @return    boolean|null    True on success, false on failure.
2073 2073
      */
2074 2074
     public function open($allow_new_attempt = false)
2075 2075
     {
@@ -3504,7 +3504,7 @@  discard block
 block discarded – undo
3504 3504
 
3505 3505
     /**
3506 3506
      * Checks if the current status is part of the list of status given
3507
-     * @param  array  $list  An array of status to check for.
3507
+     * @param  string[]  $list  An array of status to check for.
3508 3508
      * If the current status is one of the strings, return true
3509 3509
      *
3510 3510
      * @return boolean True if the status was one of the given strings,
@@ -3681,7 +3681,7 @@  discard block
 block discarded – undo
3681 3681
     /**
3682 3682
      * Write objectives to DB. This method is separate from write_to_db() because otherwise
3683 3683
      * objectives are lost as a side effect to AJAX and session concurrent access
3684
-     * @return    boolean        True or false on error
3684
+     * @return    boolean|null        True or false on error
3685 3685
      */
3686 3686
     public function write_objectives_to_db()
3687 3687
     {
@@ -4322,7 +4322,7 @@  discard block
 block discarded – undo
4322 4322
      * Removes the relation between the current item and an audio file. The file
4323 4323
      * is only removed from the lp_item table, but remains in the document table
4324 4324
      * and directory
4325
-     * @return bool
4325
+     * @return false|null
4326 4326
      */
4327 4327
     public function remove_audio()
4328 4328
     {
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Entity/Session.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
     }
373 373
 
374 374
     /**
375
-     * @param $courses
375
+     * @param ArrayCollection $courses
376 376
      */
377 377
     public function setCourses($courses)
378 378
     {
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
      * Set description
515 515
      *
516 516
      * @param string $description
517
-     * @return Groups
517
+     * @return Session
518 518
      */
519 519
     public function setDescription($description)
520 520
     {
@@ -847,7 +847,7 @@  discard block
 block discarded – undo
847 847
     }
848 848
 
849 849
     /**
850
-     * @return array
850
+     * @return string[]
851 851
      */
852 852
     public static function getStatusList()
853 853
     {
Please login to merge, or discard this patch.
src/Chamilo/PageBundle/Entity/User.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -907,7 +907,7 @@  discard block
 block discarded – undo
907 907
     /**
908 908
      * Get pictureUri
909 909
      *
910
-     * @return Media
910
+     * @return string
911 911
      */
912 912
     public function getPictureUri()
913 913
     {
@@ -1284,7 +1284,7 @@  discard block
 block discarded – undo
1284 1284
     }
1285 1285
 
1286 1286
     /**
1287
-     * @return Media
1287
+     * @return string
1288 1288
      */
1289 1289
     public function getAvatar()
1290 1290
     {
@@ -2051,7 +2051,7 @@  discard block
 block discarded – undo
2051 2051
       /**
2052 2052
      * Returns the user roles
2053 2053
      *
2054
-     * @return array The roles
2054
+     * @return string[] The roles
2055 2055
      */
2056 2056
     public function getRoles()
2057 2057
     {
Please login to merge, or discard this patch.
src/Chamilo/UserBundle/Entity/User.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -995,7 +995,7 @@  discard block
 block discarded – undo
995 995
     /**
996 996
      * Get pictureUri
997 997
      *
998
-     * @return Media
998
+     * @return string
999 999
      */
1000 1000
     public function getPictureUri()
1001 1001
     {
@@ -1303,7 +1303,7 @@  discard block
 block discarded – undo
1303 1303
     }
1304 1304
 
1305 1305
     /**
1306
-     * @return Media
1306
+     * @return string
1307 1307
      */
1308 1308
     public function getAvatar()
1309 1309
     {
@@ -2078,7 +2078,7 @@  discard block
 block discarded – undo
2078 2078
       /**
2079 2079
      * Returns the user roles
2080 2080
      *
2081
-     * @return array The roles
2081
+     * @return string[] The roles
2082 2082
      */
2083 2083
     public function getRoles()
2084 2084
     {
@@ -2403,7 +2403,7 @@  discard block
 block discarded – undo
2403 2403
     /**
2404 2404
      * Check if the user has the skill
2405 2405
      * @param Skill $skill The skill
2406
-     * @return boolean
2406
+     * @return boolean|null
2407 2407
      */
2408 2408
     public function hasSkill(Skill $skill)
2409 2409
     {
Please login to merge, or discard this patch.