Completed
Push — 1.10.x ( ad23de...73a570 )
by Yannick
448:11 queued 407:15
created
main/inc/lib/phpseclib/Crypt/AES.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -98,6 +98,7 @@  discard block
 block discarded – undo
98 98
      * CRYPT_DES_MODE_ECB or CRYPT_DES_MODE_CBC.  If not explictly set, CRYPT_DES_MODE_CBC will be used.
99 99
      *
100 100
      * @param optional Integer $mode
101
+     * @param integer $mode
101 102
      * @return Crypt_TripleDES
102 103
      * @access public
103 104
      */
@@ -318,6 +319,7 @@  discard block
 block discarded – undo
318 319
      *
319 320
      * @access public
320 321
      * @param String $plaintext
322
+     * @return string
321 323
      */
322 324
     function encrypt($plaintext)
323 325
     {
Please login to merge, or discard this patch.
main/inc/lib/phpseclib/Crypt/Blowfish.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -563,6 +563,7 @@  discard block
 block discarded – undo
563 563
      * If not explictly set, CRYPT_TWOFISH_MODE_CBC will be used.
564 564
      *
565 565
      * @param optional Integer $mode
566
+     * @param integer $mode
566 567
      * @access public
567 568
      */
568 569
     function Crypt_Twofish($mode = CRYPT_TWOFISH_MODE_CBC)
@@ -1072,6 +1073,7 @@  discard block
 block discarded – undo
1072 1073
      *
1073 1074
      * @see Crypt_Twofish::_unpad()
1074 1075
      * @access private
1076
+     * @param string $text
1075 1077
      */
1076 1078
     function _pad($text)
1077 1079
     {
@@ -1099,6 +1101,7 @@  discard block
 block discarded – undo
1099 1101
      *
1100 1102
      * @see Crypt_Twofish::_pad()
1101 1103
      * @access private
1104
+     * @param string $text
1102 1105
      */
1103 1106
     function _unpad($text)
1104 1107
     {
Please login to merge, or discard this patch.
main/newscorm/openoffice_text.class.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * Gets html pages and compose them into a learning path
40 40
      * @param	array	The files that will compose the generated learning path. Unused so far.
41
-     * @return	boolean	False if file does not exit. Nothing otherwise.
41
+     * @return	false|null	False if file does not exit. Nothing otherwise.
42 42
      */
43 43
     public function make_lp($files = array())
44 44
     {
@@ -92,6 +92,7 @@  discard block
 block discarded – undo
92 92
      * Manages chapter splitting
93 93
      * @param	string	Chapter header
94 94
      * @param	string	Content
95
+     * @param string $content
95 96
      * @return	void
96 97
      */
97 98
     function dealPerChapter($header, $content)
@@ -164,6 +165,7 @@  discard block
 block discarded – undo
164 165
      * Manages page splitting
165 166
      * @param	string	Page header
166 167
      * @param	string	Page body
168
+     * @param string $body
167 169
      * @return	void
168 170
      */
169 171
     function dealPerPage($header, $body)
Please login to merge, or discard this patch.
main/user/subscribe_user.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -735,7 +735,6 @@
 block discarded – undo
735 735
  * lock = the user can no longer use this account
736 736
  * @author Patrick Cool <[email protected]>, Ghent University
737 737
  * @param int $active the current state of the account
738
- * @param int $user_id The user id
739 738
  * @param string $urlParams
740 739
  *
741 740
  * @return string Some HTML-code with the lock/unlock button
Please login to merge, or discard this patch.
main/webservices/access_url.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@
 block discarded – undo
20 20
 
21 21
 define('WS_ERROR_SECRET_KEY', 1);
22 22
 
23
+/**
24
+ * @param integer $code
25
+ */
23 26
 function return_error($code) {
24 27
     $fault = null;
25 28
     switch ($code) {
Please login to merge, or discard this patch.
main/webservices/cm_webservice_course.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -453,6 +453,7 @@
 block discarded – undo
453 453
 	 * @param string Session id field name
454 454
 	 * @param string Session id value
455 455
 	 * @param int State (1 to subscribe, 0 to unsubscribe)
456
+	 * @param integer $state
456 457
 	 * @return mixed True on success, WSError otherwise
457 458
 	 */
458 459
 	protected function changeCourseSubscription($course_id_field_name, $course_id_value, $session_id_field_name, $session_id_value, $state) {
Please login to merge, or discard this patch.
main/webservices/webservice_course.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -453,6 +453,7 @@
 block discarded – undo
453 453
 	 * @param string Session id field name
454 454
 	 * @param string Session id value
455 455
 	 * @param int State (1 to subscribe, 0 to unsubscribe)
456
+	 * @param integer $state
456 457
 	 * @return mixed True on success, WSError otherwise
457 458
 	 */
458 459
 	protected function changeCourseSubscription($course_id_field_name, $course_id_value, $session_id_field_name, $session_id_value, $state) {
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??
@@ -1527,7 +1527,7 @@  discard block
 block discarded – undo
1527 1527
      * Return true if the documentpath have visibility=1 as
1528 1528
      * item_property (you should use the is_visible_by_id)
1529 1529
      *
1530
-     * @param string $document_path the relative complete path of the document
1530
+     * @param string $doc_path the relative complete path of the document
1531 1531
      * @param array  $course the _course array info of the document's course
1532 1532
      * @param int
1533 1533
      * @param string
@@ -1612,6 +1612,8 @@  discard block
 block discarded – undo
1612 1612
      * @param   int
1613 1613
      * @param   int
1614 1614
      * @param bool
1615
+     * @param integer $session_id
1616
+     * @param integer $user_id
1615 1617
      * @return  bool
1616 1618
      */
1617 1619
     public static function is_visible_by_id(
@@ -2090,6 +2092,7 @@  discard block
 block discarded – undo
2090 2092
      * @param	bool  	is file or string html
2091 2093
      * @param	string	type (one of the app tools) - optional (otherwise takes the current item's type)
2092 2094
      * @param	int		level of recursivity we're in
2095
+     * @param string $source_html
2093 2096
      * @return	array	List of file paths. An additional field containing 'local' or 'remote' helps determine
2094 2097
      * if the file should be copied into the zip or just linked
2095 2098
      */
@@ -2913,6 +2916,7 @@  discard block
 block discarded – undo
2913 2916
 
2914 2917
     /**
2915 2918
      * Obtains the text inside the file with the right parser
2919
+     * @param string $doc_path
2916 2920
      */
2917 2921
     public static function get_text_content($doc_path, $doc_mime)
2918 2922
     {
@@ -3163,6 +3167,7 @@  discard block
 block discarded – undo
3163 3167
      * Shows a play icon next to the document title in the document list
3164 3168
      * @param int
3165 3169
      * @param string
3170
+     * @param integer|null $i
3166 3171
      * @return string	html content
3167 3172
      */
3168 3173
     static function generate_media_preview($i, $type = 'simple')
@@ -3557,7 +3562,7 @@  discard block
 block discarded – undo
3557 3562
      * @param bool $add_move_button
3558 3563
      * @param string $target
3559 3564
      * @param string $overwrite_url
3560
-     * @return null|string
3565
+     * @return string
3561 3566
      */
3562 3567
     private static function parseFile(
3563 3568
         $course_info,
@@ -4058,7 +4063,7 @@  discard block
 block discarded – undo
4058 4063
     }
4059 4064
 
4060 4065
     /**
4061
-     * @return array
4066
+     * @return string[]
4062 4067
      */
4063 4068
     public static function get_web_odf_extension_list()
4064 4069
     {
@@ -4067,10 +4072,10 @@  discard block
 block discarded – undo
4067 4072
 
4068 4073
     /**
4069 4074
      * Set of extension allowed to use Jodconverter
4070
-     * @param $mode 'from'
4075
+     * @param string $mode 'from'
4071 4076
      *              'to'
4072 4077
      *              'all'
4073
-     * @param $format   'text'
4078
+     * @param string $format   'text'
4074 4079
      *                  'spreadsheet'
4075 4080
      *                  'presentation'
4076 4081
      *                  'drawing'
@@ -4274,7 +4279,7 @@  discard block
 block discarded – undo
4274 4279
     }
4275 4280
 
4276 4281
     /**
4277
-     * @return array
4282
+     * @return string[]
4278 4283
      */
4279 4284
     public static function get_system_folders()
4280 4285
     {
@@ -4292,7 +4297,7 @@  discard block
 block discarded – undo
4292 4297
     }
4293 4298
 
4294 4299
     /**
4295
-     * @return array
4300
+     * @return string[]
4296 4301
      */
4297 4302
     public static function getProtectedFolderFromStudent()
4298 4303
     {
@@ -4448,7 +4453,7 @@  discard block
 block discarded – undo
4448 4453
      * Requires the ffmpeg lib. In ubuntu: sudo apt-get install ffmpeg
4449 4454
      * @param string $wavFile
4450 4455
      * @param bool $removeWavFileIfSuccess
4451
-     * @return bool
4456
+     * @return string|false
4452 4457
      */
4453 4458
     public static function convertWavToMp3($wavFile, $removeWavFileIfSuccess = false)
4454 4459
     {
@@ -5536,9 +5541,6 @@  discard block
 block discarded – undo
5536 5541
     /**
5537 5542
      * Creates the row of edit icons for a file/folder
5538 5543
      *
5539
-     * @param string $curdirpath current path (cfr open folder)
5540
-     * @param string $type (file/folder)
5541
-     * @param string $path dbase path of file/folder
5542 5544
      * @param int $visibility (1/0)
5543 5545
      * @param int $id dbase id of the document
5544 5546
      * @return string html img tags with hyperlinks
@@ -5867,7 +5869,7 @@  discard block
 block discarded – undo
5867 5869
     /**
5868 5870
      * Gets the path translated with title of docs and folders
5869 5871
      * @param string $path the real path
5870
-     * @return the path which should be displayed
5872
+     * @return string path which should be displayed
5871 5873
      */
5872 5874
     public static function get_titles_of_path($path)
5873 5875
     {
@@ -5922,7 +5924,8 @@  discard block
 block discarded – undo
5922 5924
 
5923 5925
     /**
5924 5926
      * Checks whether the user is in shared folder
5925
-     * @return return bool Return true when user is into shared folder
5927
+     * @param integer $current_session_id
5928
+     * @return boolean bool Return true when user is into shared folder
5926 5929
      */
5927 5930
     public static function is_shared_folder($curdirpath, $current_session_id)
5928 5931
     {
@@ -5938,7 +5941,7 @@  discard block
 block discarded – undo
5938 5941
 
5939 5942
     /**
5940 5943
      * Checks whether the user is into any user shared folder
5941
-     * @return return bool Return true when user is in any user shared folder
5944
+     * @return boolean bool Return true when user is in any user shared folder
5942 5945
      */
5943 5946
     public static function is_any_user_shared_folder($path, $current_session_id)
5944 5947
     {
@@ -6152,7 +6155,7 @@  discard block
 block discarded – undo
6152 6155
      * @param int $id
6153 6156
      * @param array $courseInfo
6154 6157
      * @param int $sessionId
6155
-     * @return bool
6158
+     * @return boolean|null
6156 6159
      */
6157 6160
     public static function downloadDeletedDocument($id, $courseInfo, $sessionId)
6158 6161
     {
@@ -6171,7 +6174,7 @@  discard block
 block discarded – undo
6171 6174
      * @param array $courseInfo
6172 6175
      * @param int $sessionId
6173 6176
      *
6174
-     * @return bool
6177
+     * @return false|null
6175 6178
      */
6176 6179
     public static function downloadAllDeletedDocument($courseInfo, $sessionId)
6177 6180
     {
@@ -6210,7 +6213,7 @@  discard block
 block discarded – undo
6210 6213
      * @param array $courseInfo
6211 6214
      * @param int $sessionId
6212 6215
      *
6213
-     * @return bool
6216
+     * @return false|null
6214 6217
      */
6215 6218
     public function deleteDocumentsFromSession($courseInfo, $sessionId)
6216 6219
     {
Please login to merge, or discard this patch.
main/dropbox/dropbox_functions.inc.php 1 patch
Doc Comments   +8 added lines, -7 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
 /**
24 24
 * This function is a wrapper function for the multiple actions feature.
25
-* @return   Mixed   If there is a problem, return a string message, otherwise nothing
25
+* @return   string|null   If there is a problem, return a string message, otherwise nothing
26 26
 * @author   Patrick Cool <[email protected]>, Ghent University
27 27
 * @version  march 2006
28 28
 */
@@ -209,9 +209,9 @@  discard block
 block discarded – undo
209 209
 *
210 210
 * @param $id the id of the file we are moving
211 211
 * @param $target the id of the folder we are moving to
212
-* @param $part are we moving a received file or a sent file?
212
+* @param string $part are we moving a received file or a sent file?
213 213
 *
214
-* @return language string
214
+* @return string string
215 215
 *
216 216
 * @author Patrick Cool <[email protected]>, Ghent University
217 217
 * @version march 2006
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
 * @param $id the unique id of the file
291 291
 * @param $part are we dealing with a sent or with a received file?
292 292
 *
293
-* @return html code
293
+* @return string code
294 294
 *
295 295
 * @author Patrick Cool <[email protected]>, Ghent University
296 296
 * @version march 2006
@@ -786,6 +786,7 @@  discard block
 block discarded – undo
786 786
 }
787 787
 
788 788
 /**
789
+* @param string $user_id
789 790
 * @return boolean indicating if user with user_id=$user_id is a course member
790 791
 * @todo check if this function is still necessary. There might be a library function for this.
791 792
 */
@@ -1147,7 +1148,7 @@  discard block
 block discarded – undo
1147 1148
 /**
1148 1149
 * This function returns the html code to display the feedback messages on a given dropbox file
1149 1150
 * @param $feedback_array an array that contains all the feedback messages about the given document.
1150
-* @return html code
1151
+* @return string code
1151 1152
 * @todo add the form for adding new comment (if the other party has not deleted it yet).
1152 1153
 *
1153 1154
 * @author Patrick Cool <[email protected]>, Ghent University
@@ -1164,7 +1165,7 @@  discard block
 block discarded – undo
1164 1165
 
1165 1166
 /**
1166 1167
 * this function returns the code for the form for adding a new feedback message to a dropbox file.
1167
-* @return html code
1168
+* @return string code
1168 1169
 *
1169 1170
 * @author Patrick Cool <[email protected]>, Ghent University
1170 1171
 * @version march 2006
@@ -1225,7 +1226,7 @@  discard block
 block discarded – undo
1225 1226
 }
1226 1227
 
1227 1228
 /**
1228
-* @return a language string (depending on the success or failure.
1229
+* @return string language string (depending on the success or failure.
1229 1230
 *
1230 1231
 * @author Patrick Cool <[email protected]>, Ghent University
1231 1232
 * @version march 2006
Please login to merge, or discard this patch.