Completed
Push — 1.10.x ( 621120...d467f0 )
by Julito
151:33 queued 107:02
created
main/inc/lib/formvalidator/FormValidator.class.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
      * @param string $label
214 214
      * @param array $attributes
215 215
      *
216
-     * @return mixed
216
+     * @return HTML_QuickForm_element
217 217
      */
218 218
     public function addDatePicker($name, $label, $attributes = [])
219 219
     {
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
      * @param string $label
226 226
      * @param array $attributes
227 227
      *
228
-     * @return mixed
228
+     * @return HTML_QuickForm_element
229 229
      */
230 230
     public function addDateTimePicker($name, $label, $attributes = [])
231 231
     {
@@ -688,7 +688,7 @@  discard block
 block discarded – undo
688 688
      * @param array  $options
689 689
      * @param array  $attributes
690 690
      *
691
-     * @return HTML_QuickForm_radio
691
+     * @return HTML_QuickForm_group
692 692
      */
693 693
     public function addRadio($name, $label, $options = array(), $attributes = array())
694 694
     {
@@ -817,7 +817,7 @@  discard block
 block discarded – undo
817 817
      * @param string $name
818 818
      * @param string $label
819 819
      *
820
-     * @return mixed
820
+     * @return HTML_QuickForm_element
821 821
      */
822 822
     public function addButtonAdvancedSettings($name, $label = '')
823 823
     {
@@ -914,7 +914,7 @@  discard block
 block discarded – undo
914 914
     /**
915 915
      * This function has been created for avoiding changes directly within QuickForm class.
916 916
      * When we use it, the element is threated as 'required' to be dealt during validation.
917
-     * @param array $element					The array of elements
917
+     * @param array $elements					The array of elements
918 918
      * @param string $message					The message displayed
919 919
      */
920 920
     public function add_multiple_required_rule($elements, $message)
Please login to merge, or discard this patch.
main/inc/lib/formvalidator/Rule/HTML.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
      * Get allowed tags
26 26
      * @param int $mode NO_HTML, STUDENT_HTML, TEACHER_HTML,
27 27
      * STUDENT_HTML_FULLPAGE or TEACHER_HTML_FULLPAGE
28
-     * @param boolean $fullpage If true, the allowed tags for full-page editing
29
-     * are returned.
28
+     * @return string
30 29
      */
31 30
     static function get_allowed_tags($mode)
32 31
     {
Please login to merge, or discard this patch.
main/inc/lib/formvalidator/Rule/MaxFileSize.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 {
10 10
 	/**
11 11
 	 * @param $value array     Uploaded file info (from $_FILES)
12
-	 * @param null $options
13 12
 	 * @return bool
14 13
 	 */
15 14
 	public function validate($elementValue, $maxSize)
Please login to merge, or discard this patch.
main/inc/lib/formvalidator/Rule/MobilePhoneNumber.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      *
17 17
      * @param string Mobile phone number to be validated
18 18
      * @param string Not using it. Just to respect the declaration
19
-     * @return boolean Returns true if valid, false otherwise.
19
+     * @return integer Returns true if valid, false otherwise.
20 20
      */
21 21
     function validate($mobilePhoneNumber, $options = null)
22 22
     {
Please login to merge, or discard this patch.
main/inc/lib/getid3/getid3.php 1 patch
Doc Comments   +22 added lines patch added patch discarded remove patch
@@ -456,6 +456,10 @@  discard block
 block discarded – undo
456 456
 
457 457
 
458 458
     // Add warning(s) to $this->warnings[]
459
+
460
+    /**
461
+     * @param string $message
462
+     */
459 463
     public function warning($message) {
460 464
 
461 465
         if (is_array($message)) {
@@ -482,6 +486,11 @@  discard block
 block discarded – undo
482 486
 
483 487
 
484 488
     // Convert string between charsets -- iconv() wrapper
489
+
490
+    /**
491
+     * @param string $out_charset
492
+     * @param string $string
493
+     */
485 494
     public function iconv($in_charset, $out_charset, $string, $drop01 = false) {
486 495
 
487 496
         if ($drop01 && ($string === "\x00" || $string === "\x01")) {
@@ -509,6 +518,9 @@  discard block
 block discarded – undo
509 518
 
510 519
 
511 520
 
521
+    /**
522
+     * @param string $name
523
+     */
512 524
     public function include_module($name) {
513 525
 
514 526
         if (!file_exists($this->include_path.'module.'.$name.'.php')) {
@@ -1342,6 +1354,10 @@  discard block
 block discarded – undo
1342 1354
 
1343 1355
 
1344 1356
     // Convert Big Endian byte string to int - max 32 bits
1357
+
1358
+    /**
1359
+     * @param string $byte_word
1360
+     */
1345 1361
     public static function BigEndian2Int($byte_word, $signed = false) {
1346 1362
 
1347 1363
         $int_value = 0;
@@ -1391,6 +1407,9 @@  discard block
 block discarded – undo
1391 1407
 
1392 1408
 
1393 1409
 
1410
+    /**
1411
+     * @param string $byte_word
1412
+     */
1394 1413
     public static function BigEndian2Float($byte_word) {
1395 1414
 
1396 1415
 		// ANSI/IEEE Standard 754-1985, Standard for Binary Floating Point Arithmetic
@@ -1478,6 +1497,9 @@  discard block
 block discarded – undo
1478 1497
 
1479 1498
 
1480 1499
 
1500
+	/**
1501
+	 * @param string $binary_numerator
1502
+	 */
1481 1503
 	public static function DecimalBinary2Float($binary_numerator) {
1482 1504
 		$numerator   = bindec($binary_numerator);
1483 1505
 		$denominator = bindec('1'.str_repeat('0', strlen($binary_numerator)));
Please login to merge, or discard this patch.
main/inc/lib/getid3/module.audio-video.flv.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -276,6 +276,9 @@  discard block
 block discarded – undo
276 276
 	public $pos;
277 277
 
278 278
 
279
+	/**
280
+	 * @param string $bytes
281
+	 */
279 282
 	public function AMFStream($bytes) {
280 283
 
281 284
 		$this->bytes = $bytes;
@@ -389,6 +392,9 @@  discard block
 block discarded – undo
389 392
 {
390 393
 	public $stream;
391 394
 
395
+	/**
396
+	 * @param AMFStream $stream
397
+	 */
392 398
 	public function __construct($stream) {
393 399
 
394 400
 		$this->stream = $stream;
Please login to merge, or discard this patch.
main/inc/lib/glossary.lib.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      * This functions stores the glossary in the database
87 87
      *
88 88
      * @param array    Array of title + description (glossary_title => $title, glossary_comment => $comment)
89
-     * @return mixed   Term id on success, false on failure
89
+     * @return false|string   Term id on success, false on failure
90 90
      * @author Christian Fasanando <[email protected]>
91 91
      * @author Patrick Cool <[email protected]>, Ghent University, Belgium
92 92
      * @version januari 2009, dokeos 1.8.6
@@ -443,6 +443,10 @@  discard block
 block discarded – undo
443 443
      * @param integer Number of items to collect
444 444
      * @param string  Name of column on which to order
445 445
      * @param string  Whether to sort in ascending (ASC) or descending (DESC)
446
+     * @param integer $from
447
+     * @param integer $number_of_items
448
+     * @param integer $column
449
+     * @param string $direction
446 450
      * @return unknown
447 451
      *
448 452
      * @author Patrick Cool <[email protected]>
@@ -520,6 +524,7 @@  discard block
 block discarded – undo
520 524
      * @param integer $glossary_id
521 525
      * @param array   Parameters to use to affect links
522 526
      * @param array   The line of results from a query on the glossary table
527
+     * @param string $url_params
523 528
      * @return string HTML string for the action icons columns
524 529
      *
525 530
      * @author Patrick Cool <[email protected]>, Ghent University, Belgium
Please login to merge, or discard this patch.
main/inc/lib/grade_model.lib.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -248,6 +248,9 @@
 block discarded – undo
248 248
 	    //event_system(LOG_CAREER_DELETE, LOG_CAREER_ID, $id, api_get_utc_datetime(), api_get_user_id());
249 249
     }
250 250
 
251
+    /**
252
+     * @param CatForm $form
253
+     */
251 254
     public function fill_grade_model_select_in_form(&$form, $name = 'gradebook_model_id', $default_value = null)
252 255
     {
253 256
         if (api_get_setting('gradebook_enable_grade_model') == 'false') {
Please login to merge, or discard this patch.
main/inc/lib/group_portal_manager.lib.php 1 patch
Doc Comments   +10 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      * @param	int		$visibility is active or not
22 22
      * @param   string  $picture
23 23
      *
24
-     * @return boolean if success
24
+     * @return string|false if success
25 25
      */
26 26
     public static function add($name, $description, $url, $visibility, $picture = '')
27 27
     {
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * @param int $visibility
58 58
      * @param string $picture_uri
59 59
      * @param bool $allowMemberGroupToLeave
60
-     * @return bool if success
60
+     * @return Statement|null if success
61 61
      */
62 62
     public static function update($group_id, $name, $description, $url, $visibility, $picture_uri, $allowMemberGroupToLeave = null)
63 63
     {
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      * Deletes a group
88 88
      * @author Julio Montoya
89 89
      * @param int $id
90
-     * @return boolean true if success
90
+     * @return Statement|null true if success
91 91
      * */
92 92
     public static function delete($id)
93 93
     {
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      * @param int $group_id
176 176
      * @param int $parent_group_id if 0, we delete the parent_group association
177 177
      * @param int $relation_type
178
-     * @return resource
178
+     * @return Statement|null
179 179
      **/
180 180
     public static function set_parent_group($group_id, $parent_group_id, $relation_type = 1)
181 181
     {
@@ -652,6 +652,7 @@  discard block
 block discarded – undo
652 652
      * @author Julio Montoya
653 653
      * @param  int user_id
654 654
      * @param  int url_id
655
+     * @param integer $relation_type
655 656
      * @return boolean true if success
656 657
      **/
657 658
     public static function add_user_to_group($user_id, $group_id, $relation_type = GROUP_USER_PERMISSION_READER)
@@ -735,7 +736,7 @@  discard block
 block discarded – undo
735 736
      * @author Julio Montoya
736 737
      * @param int $group_id
737 738
      * @param int $relation_type (optional)
738
-     * @return boolean true if success
739
+     * @return Statement|null true if success
739 740
      * */
740 741
     public static function delete_users($group_id, $relation_type = null)
741 742
     {
@@ -916,6 +917,7 @@  discard block
 block discarded – undo
916 917
      * If an empty name is provided, then old user photos are deleted only, @see UserManager::delete_user_picture()
917 918
      * as the prefered way for deletion.
918 919
      * @param	string		$source_file The full system name of the image from which user photos will be created.
920
+     * @param integer $group_id
919 921
      * @return	string/bool	Returns the resulting file name of created images which usually should be stored in DB.
920 922
      * When deletion is recuested returns empty string. In case of internal error or negative validation returns FALSE.
921 923
      */
@@ -1074,7 +1076,9 @@  discard block
 block discarded – undo
1074 1076
      *
1075 1077
      * @param  string file picture
1076 1078
      * @param  int size in pixels
1077
-     * @return obj image object
1079
+     * @param string|null $file
1080
+     * @param integer $max_size_for_picture
1081
+     * @return Image image object
1078 1082
      */
1079 1083
     public static function resize_picture($file, $max_size_for_picture)
1080 1084
     {
Please login to merge, or discard this patch.