Completed
Push — 1.11.x ( 729904...f6c0c1 )
by José
91:24 queued 46:21
created
main/inc/lib/formvalidator/FormValidator.class.php 1 patch
Doc Comments   +6 added lines, -6 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 addSelectLanguage($name, $label, $options = [], $attributes = [])
231 231
     {
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      * @param string $label
238 238
      * @param array $attributes
239 239
      *
240
-     * @return mixed
240
+     * @return HTML_QuickForm_element
241 241
      */
242 242
     public function addDateTimePicker($name, $label, $attributes = [])
243 243
     {
@@ -700,7 +700,7 @@  discard block
 block discarded – undo
700 700
      * @param array  $options
701 701
      * @param array  $attributes
702 702
      *
703
-     * @return HTML_QuickForm_radio
703
+     * @return HTML_QuickForm_group
704 704
      */
705 705
     public function addRadio($name, $label, $options = array(), $attributes = array())
706 706
     {
@@ -835,7 +835,7 @@  discard block
 block discarded – undo
835 835
      * @param string $name
836 836
      * @param string $label
837 837
      *
838
-     * @return mixed
838
+     * @return HTML_QuickForm_element
839 839
      */
840 840
     public function addButtonAdvancedSettings($name, $label = '')
841 841
     {
@@ -932,7 +932,7 @@  discard block
 block discarded – undo
932 932
     /**
933 933
      * This function has been created for avoiding changes directly within QuickForm class.
934 934
      * When we use it, the element is threated as 'required' to be dealt during validation.
935
-     * @param array $element					The array of elements
935
+     * @param array $elements					The array of elements
936 936
      * @param string $message					The message displayed
937 937
      */
938 938
     public function add_multiple_required_rule($elements, $message)
Please login to merge, or discard this patch.
plugin/vchamilo/views/editinstance_form.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@  discard block
 block discarded – undo
13 13
 
14 14
     /**
15 15
      * ChamiloForm constructor.
16
-     * @param $mode
17
-     * @param $returnurl
18
-     * @param $cancelurl
16
+     * @param string $mode
17
+     * @param string $returnurl
18
+     * @param string $cancelurl
19 19
      * @param $customdata
20 20
      */
21 21
     public function __construct($mode, $returnurl, $cancelurl, $customdata = [])
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      * Check that form data is valid.
138 138
      * You should almost always use this, rather than {@see validate_defined_fields}
139 139
      *
140
-     * @return bool true if form data valid
140
+     * @return boolean|null true if form data valid
141 141
      */
142 142
     public function is_validated()
143 143
     {
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      *                is NOT to validate the form when a no submit button has been pressed.
167 167
      *                pass true here to override this behaviour
168 168
      *
169
-     * @return bool true if form data valid
169
+     * @return boolean|null true if form data valid
170 170
      */
171 171
     public function validate_defined_fields($validateonnosubmit=false)
172 172
     {
Please login to merge, or discard this patch.
main/template/default/auth/courses_categories.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
  * @param $stok
429 429
  * @param $code
430 430
  * @param $search_term
431
- * @return html
431
+ * @return string
432 432
  */
433 433
 function return_register_button($course, $stok, $code, $search_term)
434 434
 {
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
  * @param $stok
444 444
  * @param $search_term
445 445
  * @param $code
446
- * @return html
446
+ * @return string
447 447
  */
448 448
 function return_unregister_button($course, $stok, $search_term, $code)
449 449
 {
Please login to merge, or discard this patch.
main/inc/lib/userportal.lib.php 1 patch
Doc Comments   +8 added lines, -7 removed lines patch added patch discarded remove patch
@@ -657,6 +657,7 @@  discard block
 block discarded – undo
657 657
     * retrieves all the courses that the user has already subscribed to
658 658
     * @author Patrick Cool <[email protected]>, Ghent University, Belgium
659 659
     * @param int $user_id: the id of the user
660
+    * @param integer $user_id
660 661
     * @return array an array containing all the information of the courses of the given user
661 662
     */
662 663
     public function get_courses_of_user($user_id)
@@ -707,13 +708,13 @@  discard block
 block discarded – undo
707 708
 
708 709
     /**
709 710
      * @todo use the template system
710
-     * @param $title
711
-     * @param $content
711
+     * @param string|null $title
712
+     * @param string $content
712 713
      * @param string $id
713 714
      * @param array $params
714 715
      * @param string $idAccordion
715 716
      * @param string $idCollapse
716
-     * @return null|string
717
+     * @return string
717 718
      */
718 719
     public function show_right_block(
719 720
         $title,
@@ -937,7 +938,7 @@  discard block
 block discarded – undo
937 938
     }
938 939
 
939 940
     /**
940
-     * @return null|string
941
+     * @return string
941 942
      */
942 943
     public function return_course_block()
943 944
     {
@@ -1590,8 +1591,8 @@  discard block
 block discarded – undo
1590 1591
 
1591 1592
     /**
1592 1593
      * Return HTML code for personal user course category
1593
-     * @param $id
1594
-     * @param $title
1594
+     * @param integer $id
1595
+     * @param string $title
1595 1596
      * @return string
1596 1597
      */
1597 1598
     private static function getHtmlForUserCategory($id, $title)
@@ -1612,7 +1613,7 @@  discard block
 block discarded – undo
1612 1613
     /**
1613 1614
      * return HTML code for course display in session view
1614 1615
      * @param array $courseInfo
1615
-     * @param $userCategoryId
1616
+     * @param integer $userCategoryId
1616 1617
      * @param bool $displayButton
1617 1618
      * @param $loadDirs
1618 1619
      * @return string
Please login to merge, or discard this patch.
plugin/bbb/lib/bbb_plugin.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     }
43 43
 
44 44
     /**
45
-     * @return BBBPlugin|null
45
+     * @return BBBPlugin
46 46
      */
47 47
     public static function create()
48 48
     {
Please login to merge, or discard this patch.
main/inc/lib/image.lib.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -63,6 +63,9 @@  discard block
 block discarded – undo
63 63
         return $image;
64 64
     }
65 65
 
66
+    /**
67
+     * @param string $convert_file_to
68
+     */
66 69
     public function send_image(
67 70
         $file = '',
68 71
         $compress = -1,
@@ -144,6 +147,9 @@  discard block
 block discarded – undo
144 147
     public $image;
145 148
     public $filter = Imagick::FILTER_LANCZOS;
146 149
 
150
+    /**
151
+     * @param string $path
152
+     */
147 153
     public function __construct($path)
148 154
     {
149 155
           parent::__construct($path);
@@ -191,6 +197,10 @@  discard block
 block discarded – undo
191 197
 	}
192 198
 
193 199
 	//@todo implement border logic case for Imagick
200
+
201
+	/**
202
+	 * @param integer $border
203
+	 */
194 204
 	public function resize($thumbw, $thumbh, $border, $specific_size = false)
195 205
     {
196 206
 	    if (!$this->image_validated) return false;
@@ -272,6 +282,9 @@  discard block
 block discarded – undo
272 282
 {
273 283
     public $bg;
274 284
 
285
+    /**
286
+     * @param string $path
287
+     */
275 288
     function __construct($path) {
276 289
         parent::__construct($path);
277 290
     }
@@ -329,6 +342,9 @@  discard block
 block discarded – undo
329 342
     	}
330 343
     }
331 344
 
345
+    /**
346
+     * @param integer $border
347
+     */
332 348
     public function resize($thumbw, $thumbh, $border, $specific_size = false)
333 349
     {
334 350
         if (!$this->image_validated) return false;
Please login to merge, or discard this patch.
plugin/vchamilo/lib.php 1 patch
Doc Comments   +20 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 /**
129 129
 * provides a side connection to a vchamilo database
130 130
 * @param array $vchamilo
131
-* @return a connection
131
+* @return null|Doctrine\DBAL\Connection connection
132 132
 */
133 133
 function vchamilo_boot_connection(&$_configuration)
134 134
 {
@@ -608,6 +608,9 @@  discard block
 block discarded – undo
608 608
     }
609 609
 }
610 610
 
611
+/**
612
+ * @param string $path
613
+ */
611 614
 function chop_last_slash($path)
612 615
 {
613 616
     return preg_replace('/\/$/', '', $path);
@@ -766,6 +769,9 @@  discard block
 block discarded – undo
766 769
     return $str;
767 770
 }
768 771
 
772
+/**
773
+ * @param string $key
774
+ */
769 775
 function print_error($key, $component = '', $passthru = false, $extrainfo = ''){
770 776
     global $debuglevel;
771 777
     global $debugdisplay;
@@ -778,6 +784,10 @@  discard block
 block discarded – undo
778 784
     ctrace('ERROR: '. $str);
779 785
 }
780 786
 
787
+/**
788
+ * @param string $message
789
+ * @param integer $level
790
+ */
781 791
 function debugging($message, $level) {
782 792
     global $debuglevel;
783 793
     global $debugdisplay;
@@ -790,6 +800,9 @@  discard block
 block discarded – undo
790 800
     }
791 801
 }
792 802
 
803
+/**
804
+ * @param string $str
805
+ */
793 806
 function ctrace($str) {
794 807
     if (!defined('CLI_SCRIPT')) echo "<pre>";
795 808
     Display::addFlash(Display::return_message($str));
@@ -1073,6 +1086,9 @@  discard block
 block discarded – undo
1073 1086
     die("Missing expected param $key in request input");
1074 1087
 }
1075 1088
 
1089
+/**
1090
+ * @param integer $default
1091
+ */
1076 1092
 function optional_param($key, $default, $type = 0)
1077 1093
 {
1078 1094
     if (array_key_exists($key, $_REQUEST)) {
@@ -1083,6 +1099,9 @@  discard block
 block discarded – undo
1083 1099
     return $default;
1084 1100
 }
1085 1101
 
1102
+/**
1103
+ * @param integer $type
1104
+ */
1086 1105
 function param_filter_type($value, $type)
1087 1106
 {
1088 1107
     switch($type) {
Please login to merge, or discard this patch.
main/inc/lib/pear/excelreader/OLERead.inc 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@
 block discarded – undo
23 23
 //echo $data[ROOT_START_BLOCK_POS];
24 24
 //function log
25 25
 
26
+/**
27
+ * @param integer $pos
28
+ */
26 29
 function GetInt4d($data, $pos)
27 30
 {
28 31
 	$value = ord($data[$pos]) | (ord($data[$pos+1])	<< 8) | (ord($data[$pos+2]) << 16) | (ord($data[$pos+3]) << 24);
Please login to merge, or discard this patch.
main/inc/lib/xajax/xajaxResponse.inc.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,6 +97,7 @@  discard block
 block discarded – undo
97 97
 	 * @param string  contains the character encoding string to use
98 98
 	 * @param boolean lets you set if you want special characters in the output
99 99
 	 *                converted to HTML entities
100
+	 * @param string $sEncoding
100 101
 	 *
101 102
 	 */
102 103
 	public function __construct($sEncoding=XAJAX_DEFAULT_CHAR_ENCODING, $bOutputEntities=false)
@@ -279,6 +280,7 @@  discard block
 block discarded – undo
279 280
 	 * <i>Usage:</i> <kbd>$objResponse->addScript("var x = prompt('get some text');");</kbd>
280 281
 	 *
281 282
 	 * @param string contains Javascript code to be executed
283
+	 * @param string $sJS
282 284
 	 */
283 285
 	function addScript($sJS)
284 286
 	{
@@ -290,8 +292,6 @@  discard block
 block discarded – undo
290 292
 	 *
291 293
 	 * <i>Usage:</i> <kbd>$objResponse->addScriptCall("myJSFunction", "arg 1", "arg 2", 12345);</kbd>
292 294
 	 *
293
-	 * @param string $sFunc the name of a Javascript function
294
-	 * @param mixed $args,... optional arguments to pass to the Javascript function
295 295
 	 */
296 296
 	function addScriptCall() {
297 297
 		$arguments = func_get_args();
Please login to merge, or discard this patch.