Passed
Push — 1.10.x ( f64eef...04397c )
by Angel Fernando Quiroz
132:38 queued 79:40
created
main/inc/lib/pear/HTML/QuickForm/Rule.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
      *
72 72
      * @param     mixed     Options for the rule
73 73
      * @access    public
74
-     * @return    array     first element is code to setup validation, second is the check itself
74
+     * @return    string[]     first element is code to setup validation, second is the check itself
75 75
      * @abstract
76 76
      */
77 77
     function getValidationScript($options = null)
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/Rule/Compare.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -73,6 +73,9 @@
 block discarded – undo
73 73
     }
74 74
 
75 75
 
76
+    /**
77
+     * @param integer[] $values
78
+     */
76 79
     function validate($values, $operator = null)
77 80
     {
78 81
         $operator = $this->_findOperator($operator);
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/Rule/Date.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 	/**
10 10
 	 * Function to check a date
11 11
 	 * @see HTML_QuickForm_Rule
12
-	 * @param array $date An array with keys F (month), d (day) and Y (year)
12
+	 * @param string $date An array with keys F (month), d (day) and Y (year)
13 13
 	 * @return boolean True if date is valid
14 14
 	 */
15 15
 	function validate($date, $options)
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/RuleRegistry.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      * @param     mixed    $values          Can be a scalar or an array of values
175 175
      *                                      to be validated
176 176
      * @param     mixed    $options         Options used by the rule
177
-     * @param     mixed    $multiple        Whether to validate an array of values altogether
177
+     * @param     boolean    $multiple        Whether to validate an array of values altogether
178 178
      * @access    public
179 179
      * @return    mixed    true if no error found, int of valid values (when an array of values is given) or false if error
180 180
      */
@@ -258,6 +258,7 @@  discard block
 block discarded – undo
258 258
     *                                   the value
259 259
     * @param  integer                   value's index in the array (only used for
260 260
     *                                   multielement rules)
261
+    * @param integer $index
261 262
     * @return array     first item is value javascript, second is reset
262 263
     */
263 264
     function _getJsValue(&$element, $elementName, $reset = false, $index = null)
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/select.php 1 patch
Doc Comments   +5 added lines, -8 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      *
146 146
      * @since     1.0
147 147
      * @access    public
148
-     * @return    array of selected values
148
+     * @return    string of selected values
149 149
      */
150 150
     function getSelected()
151 151
     {
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
     /**
209 209
      * Sets the value of the form element
210 210
      *
211
-     * @param     mixed    $values  Array or comma delimited string of selected values
211
+     * @param     mixed    $value  Array or comma delimited string of selected values
212 212
      * @since     1.0
213 213
      * @access    public
214 214
      * @return    void
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
      *
227 227
      * @since     1.0
228 228
      * @access    public
229
-     * @return    array of selected values
229
+     * @return    string of selected values
230 230
      */
231 231
     function getValue()
232 232
     {
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
      *
258 258
      * @since     1.0
259 259
      * @access    public
260
-     * @return    int
260
+     * @return    string|null
261 261
      */
262 262
     function getSize()
263 263
     {
@@ -357,12 +357,9 @@  discard block
 block discarded – undo
357 357
         /**
358 358
      * Adds a new OPTION to the SELECT
359 359
      *
360
-     * @param     string    $text       Display text for the OPTION
361
-     * @param     string    $value      Value for the OPTION
362
-     * @param     mixed     $attributes Either a typical HTML attribute string
363
-     *                                  or an associative array
364 360
      * @since     1.0
365 361
      * @access    public
362
+     * @param string $label
366 363
      * @return    void
367 364
      */
368 365
     function addOptGroup($options, $label)
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/submit.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      * Freeze the element so that only its value is returned
61 61
      *
62 62
      * @access    public
63
-     * @return    void
63
+     * @return    boolean
64 64
      */
65 65
     function freeze()
66 66
     {
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/textarea.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -54,6 +54,8 @@
 block discarded – undo
54 54
      * @param     string    Input field name attribute
55 55
      * @param     mixed     Label(s) for a field
56 56
      * @param     mixed     Either a typical HTML attribute string or an associative array
57
+     * @param string $elementName
58
+     * @param string $elementLabel
57 59
      * @since     1.0
58 60
      * @access    public
59 61
      * @return    void
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/Table.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
      * Adds a table row and returns the row identifier
666 666
      * @param    array     $contents     (optional) Must be a indexed array of
667 667
      *                                   valid cell contents
668
-     * @param    mixed     $attributes   (optional) Associative array or string
668
+     * @param    string     $attributes   (optional) Associative array or string
669 669
      *                                   of table row attributes. This can also
670 670
      *                                   be an array of attributes, in which
671 671
      *                                   case the attributes will be repeated
@@ -719,7 +719,7 @@  discard block
 block discarded – undo
719 719
     /**
720 720
      * Updates the row attributes for an existing row
721 721
      * @param    int      $row          Row index
722
-     * @param    mixed    $attributes   Associative array or string of table row
722
+     * @param    string    $attributes   Associative array or string of table row
723 723
      *                                  attributes
724 724
      * @param    bool     $inTR         false if attributes are to be applied in
725 725
      *                                  TD tags; true if attributes are to be
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/Table/Storage.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     /**
166 166
      * Returns the autoFill value
167 167
      * @access   public
168
-     * @return   mixed
168
+     * @return   string
169 169
      */
170 170
     function getAutoFill()
171 171
     {
@@ -174,7 +174,6 @@  discard block
 block discarded – undo
174 174
 
175 175
     /**
176 176
      * Sets the autoGrow value
177
-     * @param    bool   $fill
178 177
      * @access   public
179 178
      */
180 179
     function setAutoGrow($grow)
@@ -185,7 +184,7 @@  discard block
 block discarded – undo
185 184
     /**
186 185
      * Returns the autoGrow value
187 186
      * @access   public
188
-     * @return   mixed
187
+     * @return   boolean
189 188
      */
190 189
     function getAutoGrow()
191 190
     {
Please login to merge, or discard this patch.