Completed
Push — master ( da7932 )
by
unknown
06:13
created
Form.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 	 *
292 292
 	 * @param   string  $name       The name of the form field for which to get the attribute value.
293 293
 	 * @param   string  $attribute  The name of the attribute for which to get a value.
294
-	 * @param   mixed   $default    The optional default value to use if no attribute value exists.
294
+	 * @param   string   $default    The optional default value to use if no attribute value exists.
295 295
 	 * @param   string  $group      The optional dot-separated form group path on which to find the field.
296 296
 	 *
297 297
 	 * @return  mixed  The attribute value for the field.
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
 	 *
536 536
 	 * @param   string  $name   The name of the form field.
537 537
 	 * @param   string  $group  The optional dot-separated form group path on which to find the field.
538
-	 * @param   mixed   $value  The optional value to use as the default for the field.
538
+	 * @param   string   $value  The optional value to use as the default for the field.
539 539
 	 *
540 540
 	 * @return  string  The form field markup.
541 541
 	 *
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
 	 *
591 591
 	 * @param   string  $name     The name of the field for which to get the value.
592 592
 	 * @param   string  $group    The optional dot-separated form group path on which to get the value.
593
-	 * @param   mixed   $default  The optional default value of the field value is empty.
593
+	 * @param   string   $default  The optional default value of the field value is empty.
594 594
 	 *
595 595
 	 * @return  mixed  The value of the field or the default value if empty.
596 596
 	 *
@@ -925,7 +925,7 @@  discard block
 block discarded – undo
925 925
 	 *
926 926
 	 * @param   string  $name       The name of the form field for which to set the attribute value.
927 927
 	 * @param   string  $attribute  The name of the attribute for which to set a value.
928
-	 * @param   mixed   $value      The value to set for the attribute.
928
+	 * @param   string   $value      The value to set for the attribute.
929 929
 	 * @param   string  $group      The optional dot-separated form group path on which to find the field.
930 930
 	 *
931 931
 	 * @return  boolean  True on success.
@@ -1015,7 +1015,7 @@  discard block
 block discarded – undo
1015 1015
 	 *
1016 1016
 	 * @param   string  $name   The name of the field for which to set the value.
1017 1017
 	 * @param   string  $group  The optional dot-separated form group path on which to find the field.
1018
-	 * @param   mixed   $value  The value to set for the field.
1018
+	 * @param   string   $value  The value to set for the field.
1019 1019
 	 *
1020 1020
 	 * @return  boolean  True on success.
1021 1021
 	 *
@@ -1052,7 +1052,7 @@  discard block
 block discarded – undo
1052 1052
 	 * @param   string  $group  The optional dot-separated form group path on which to filter the
1053 1053
 	 *                          fields to be validated.
1054 1054
 	 *
1055
-	 * @return  mixed  True on success.
1055
+	 * @return  boolean  True on success.
1056 1056
 	 *
1057 1057
 	 * @since   1.0
1058 1058
 	 */
Please login to merge, or discard this patch.
FormHelper.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 	 *
135 135
 	 * @param   string  $type  Type of a field whose class should be loaded.
136 136
 	 *
137
-	 * @return  mixed  Class name on success or false otherwise.
137
+	 * @return  string|false  Class name on success or false otherwise.
138 138
 	 *
139 139
 	 * @since   1.0
140 140
 	 */
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 	 *
150 150
 	 * @param   string  $type  Type of a rule whose class should be loaded.
151 151
 	 *
152
-	 * @return  mixed  Class name on success or false otherwise.
152
+	 * @return  string|false  Class name on success or false otherwise.
153 153
 	 *
154 154
 	 * @since   1.0
155 155
 	 */
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 	 * @param   string  $entity  One of the form entities (field or rule).
167 167
 	 * @param   string  $type    Type of an entity.
168 168
 	 *
169
-	 * @return  mixed  Class name on success or false otherwise.
169
+	 * @return  string|false  Class name on success or false otherwise.
170 170
 	 *
171 171
 	 * @since   1.0
172 172
 	 */
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 	/**
248 248
 	 * Method to add a path to the list of field include paths.
249 249
 	 *
250
-	 * @param   mixed  $new  A path or array of paths to add.
250
+	 * @param   string  $new  A path or array of paths to add.
251 251
 	 *
252 252
 	 * @return  array  The list of paths that have been added.
253 253
 	 *
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
 	/**
263 263
 	 * Method to add a path to the list of form include paths.
264 264
 	 *
265
-	 * @param   mixed  $new  A path or array of paths to add.
265
+	 * @param   string  $new  A path or array of paths to add.
266 266
 	 *
267 267
 	 * @return  array  The list of paths that have been added.
268 268
 	 *
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 	/**
277 277
 	 * Method to add a path to the list of rule include paths.
278 278
 	 *
279
-	 * @param   mixed  $new  A path or array of paths to add.
279
+	 * @param   string  $new  A path or array of paths to add.
280 280
 	 *
281 281
 	 * @return  array  The list of paths that have been added.
282 282
 	 *
Please login to merge, or discard this patch.
Html/Select.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 	 *                               set to null, the index of the value array is used.
108 108
 	 * @param   string   $optText    The name of the object variable for the option text.
109 109
 	 * @param   mixed    $selected   The key that is selected (accepts an array or a string).
110
-	 * @param   mixed    $idtag      Value of the field id or null by default
110
+	 * @param   string    $idtag      Value of the field id or null by default
111 111
 	 * @param   boolean  $translate  True to translate
112 112
 	 *
113 113
 	 * @return  string  HTML for the select list.
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
 	 *
414 414
 	 * @param   string   $value    The value of the option
415 415
 	 * @param   string   $text     The text for the option
416
-	 * @param   mixed    $optKey   If a string, the returned object property name for
416
+	 * @param   string    $optKey   If a string, the returned object property name for
417 417
 	 *                             the value. If an array, options. Valid options are:
418 418
 	 *                             attr: String|array. Additional attributes for this option.
419 419
 	 *                             Defaults to none.
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
 	 *                             parameter is ignored if an options array is passed.
436 436
 	 * @param   boolean  $disable  Not used.
437 437
 	 *
438
-	 * @return  object
438
+	 * @return  \stdClass
439 439
 	 *
440 440
 	 * @since   1.0
441 441
 	 */
@@ -696,10 +696,10 @@  discard block
 block discarded – undo
696 696
 	/**
697 697
 	 * Generates an HTML radio list.
698 698
 	 *
699
-	 * @param   array    $data       An array of objects
699
+	 * @param   \stdClass[]    $data       An array of objects
700 700
 	 * @param   string   $name       The value of the HTML name attribute
701 701
 	 * @param   string   $attribs    Additional HTML attributes for the <select> tag
702
-	 * @param   mixed    $optKey     The key that is selected
702
+	 * @param   string    $optKey     The key that is selected
703 703
 	 * @param   string   $optText    The name of the object variable for the option value
704 704
 	 * @param   string   $selected   The name of the object variable for the option text
705 705
 	 * @param   boolean  $idtag      Value of the field id or null by default
Please login to merge, or discard this patch.
Rule/Color.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 	 * Method to test for a valid color in hexadecimal.
25 25
 	 *
26 26
 	 * @param   \SimpleXMLElement  $element  The SimpleXMLElement object representing the <field /> tag for the form field object.
27
-	 * @param   mixed              $value    The form field value to validate.
27
+	 * @param   string              $value    The form field value to validate.
28 28
 	 * @param   string             $group    The field name group control value. This acts as as an array container for the field.
29 29
 	 *                                       For example if the field has name="foo" and the group value is set to "bar" then the
30 30
 	 *                                       full field name would end up being "bar[foo]".
Please login to merge, or discard this patch.
Rule/Email.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 	 * Method to test the email address and optionally check for uniqueness.
35 35
 	 *
36 36
 	 * @param   SimpleXMLElement  $element  The SimpleXMLElement object representing the <field /> tag for the form field object.
37
-	 * @param   mixed             $value    The form field value to validate.
37
+	 * @param   string             $value    The form field value to validate.
38 38
 	 * @param   string            $group    The field name group control value. This acts as as an array container for the field.
39 39
 	 *                                      For example if the field has name="foo" and the group value is set to "bar" then the
40 40
 	 *                                      full field name would end up being "bar[foo]".
Please login to merge, or discard this patch.
Rule/Options.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 	 * Method to test the value.
27 27
 	 *
28 28
 	 * @param   SimpleXMLElement  $element  The SimpleXMLElement object representing the <field /> tag for the form field object.
29
-	 * @param   mixed             $value    The form field value to validate.
29
+	 * @param   string             $value    The form field value to validate.
30 30
 	 * @param   string            $group    The field name group control value. This acts as as an array container for the field.
31 31
 	 *                                      For example if the field has name="foo" and the group value is set to "bar" then the
32 32
 	 *                                      full field name would end up being "bar[foo]".
Please login to merge, or discard this patch.
Rule/Tel.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 	 * Method to test the url for a valid parts.
26 26
 	 *
27 27
 	 * @param   SimpleXMLElement  $element  The SimpleXMLElement object representing the <field /> tag for the form field object.
28
-	 * @param   mixed             $value    The form field value to validate.
28
+	 * @param   string             $value    The form field value to validate.
29 29
 	 * @param   string            $group    The field name group control value. This acts as as an array container for the field.
30 30
 	 *                                      For example if the field has name="foo" and the group value is set to "bar" then the
31 31
 	 *                                      full field name would end up being "bar[foo]".
Please login to merge, or discard this patch.
Rule/Url.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 	 * Method to test an external url for a valid parts.
28 28
 	 *
29 29
 	 * @param   SimpleXMLElement  $element  The SimpleXMLElement object representing the <field /> tag for the form field object.
30
-	 * @param   mixed             $value    The form field value to validate.
30
+	 * @param   string             $value    The form field value to validate.
31 31
 	 * @param   string            $group    The field name group control value. This acts as as an array container for the field.
32 32
 	 *                                      For example if the field has name="foo" and the group value is set to "bar" then the
33 33
 	 *                                      full field name would end up being "bar[foo]".
Please login to merge, or discard this patch.
Tests/fields/JFormFieldCheckboxTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 namespace Joomla\Form\Tests;
8 8
 
9 9
 use Joomla\Test\TestHelper;
10
-use Joomla\Form\Field_Checkbox;
11 10
 
12 11
 /**
13 12
  * Test class for JFormFieldCheckbox.
Please login to merge, or discard this patch.