Completed
Pull Request — 2.x (#3316)
by Ramon van
05:48
created
classes/fields/avatar.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,6 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * Add options and set defaults to
50 50
      *
51
-     * @param array $options
52 51
      *
53 52
      * @since 2.0
54 53
      */
@@ -130,7 +129,7 @@  discard block
 block discarded – undo
130 129
      *
131 130
      * @param array $options
132 131
      *
133
-     * @return array
132
+     * @return boolean
134 133
      * @since 2.0
135 134
      */
136 135
     public function schema ( $options = null ) {
Please login to merge, or discard this patch.
classes/fields/boolean.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      *
79 79
      * @param array $options
80 80
      *
81
-     * @return array
81
+     * @return string
82 82
      * @since 2.0
83 83
      */
84 84
     public function schema ( $options = null ) {
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      * @param array $pod
232 232
      * @param object $params
233 233
      *
234
-     * @return int|mixed
234
+     * @return integer
235 235
      * @since 2.0
236 236
      */
237 237
     public function pre_save ( $value, $id = null, $name = null, $options = null, $fields = null, $pod = null, $params = null ) {
Please login to merge, or discard this patch.
classes/fields/code.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      *
102 102
      * @param array $options
103 103
      *
104
-     * @return array
104
+     * @return string
105 105
      * @since 2.0
106 106
      */
107 107
     public function schema ( $options = null ) {
@@ -122,7 +122,6 @@  discard block
 block discarded – undo
122 122
      * @param mixed $value
123 123
      * @param string $name
124 124
      * @param array $options
125
-     * @param array $fields
126 125
      * @param array $pod
127 126
      * @param int $id
128 127
      *
Please login to merge, or discard this patch.
classes/fields/currency.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 	 *
210 210
 	 * @param array $options
211 211
 	 *
212
-	 * @return array
212
+	 * @return string
213 213
 	 * @since 2.0
214 214
 	 */
215 215
 	public function schema( $options = null ) {
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 	 *
245 245
 	 * @param array $options
246 246
 	 *
247
-	 * @return array
247
+	 * @return string
248 248
 	 * @since 2.0
249 249
 	 */
250 250
 	public function prepare( $options = null ) {
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
 	 * @param array $pod
291 291
 	 * @param int $id
292 292
 	 *
293
-	 * @return mixed|null|string
293
+	 * @return string
294 294
 	 * @since 2.0
295 295
 	 */
296 296
 	public function display( $value = null, $name = null, $options = null, $pod = null, $id = null ) {
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
 	 * @param string $pod
391 391
 	 * @param int $id
392 392
 	 *
393
-	 * @return bool|string
393
+	 * @return string
394 394
 	 * @since 2.0
395 395
 	 */
396 396
 	public function regex( $value = null, $name = null, $options = null, $pod = null, $id = null ) {
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
 	 * @param int $id
450 450
 	 * @param null $params
451 451
 	 *
452
-	 * @return bool|mixed|void
452
+	 * @return string|boolean
453 453
 	 * @since 2.0
454 454
 	 */
455 455
 	public function validate( $value, $name = null, $options = null, $fields = null, $pod = null, $id = null, $params = null ) {
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
 	 * @param array $pod
519 519
 	 * @param object $params
520 520
 	 *
521
-	 * @return mixed|string
521
+	 * @return string
522 522
 	 * @since 2.0
523 523
 	 */
524 524
 	public function pre_save( $value, $id = null, $name = null, $options = null, $fields = null, $pod = null, $params = null ) {
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
 	 * @param array $fields
602 602
 	 * @param array $pod
603 603
 	 *
604
-	 * @return mixed|null|string
604
+	 * @return string
605 605
 	 * @since 2.0
606 606
 	 */
607 607
 	public function ui( $id, $value, $name = null, $options = null, $fields = null, $pod = null ) {
Please login to merge, or discard this patch.
classes/fields/file.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,6 @@  discard block
 block discarded – undo
59 59
     /**
60 60
      * Add options and set defaults to
61 61
      *
62
-     * @param array $options
63 62
      *
64 63
      * @since 2.0
65 64
      */
@@ -205,7 +204,7 @@  discard block
 block discarded – undo
205 204
      *
206 205
      * @param array $options
207 206
      *
208
-     * @return array
207
+     * @return boolean
209 208
      * @since 2.0
210 209
      */
211 210
     public function schema ( $options = null ) {
@@ -414,7 +413,7 @@  discard block
 block discarded – undo
414 413
      * @param array $fields
415 414
      * @param array $pod
416 415
      *
417
-     * @return mixed|void
416
+     * @return null|string
418 417
      * @since 2.0
419 418
      */
420 419
     public function ui ( $id, $value, $name = null, $options = null, $fields = null, $pod = null ) {
Please login to merge, or discard this patch.
classes/fields/html.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
      *
122 122
      * @param array $options
123 123
      *
124
-     * @return array
124
+     * @return boolean
125 125
      * @since 2.0
126 126
      */
127 127
     public function schema ( $options = null ) {
Please login to merge, or discard this patch.
classes/fields/number.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      *
135 135
      * @param array $options
136 136
      *
137
-     * @return array
137
+     * @return string
138 138
      * @since 2.0
139 139
      */
140 140
     public function schema ( $options = null ) {
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      *
164 164
      * @param array $options
165 165
      *
166
-     * @return array
166
+     * @return string
167 167
      * @since 2.0
168 168
      */
169 169
     public function prepare ( $options = null ) {
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      * @param array $pod
202 202
      * @param int $id
203 203
      *
204
-     * @return mixed|null|string
204
+     * @return string
205 205
      * @since 2.0
206 206
      */
207 207
     public function display ( $value = null, $name = null, $options = null, $pod = null, $id = null ) {
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
      * @param string $pod
265 265
      * @param int $id
266 266
      *
267
-     * @return bool|string
267
+     * @return string
268 268
      * @since 2.0
269 269
      */
270 270
     public function regex ( $value = null, $name = null, $options = null, $pod = null, $id = null ) {
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
      * @param int $id
310 310
      * @param null $params
311 311
      *
312
-     * @return bool|mixed|void
312
+     * @return string|boolean
313 313
      * @since 2.0
314 314
      */
315 315
     public function validate ( $value, $name = null, $options = null, $fields = null, $pod = null, $id = null, $params = null ) {
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
      * @param array $pod
364 364
      * @param object $params
365 365
      *
366
-     * @return mixed|string
366
+     * @return string
367 367
      * @since 2.0
368 368
      */
369 369
     public function pre_save ( $value, $id = null, $name = null, $options = null, $fields = null, $pod = null, $params = null ) {
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
      * @param array $fields
429 429
      * @param array $pod
430 430
      *
431
-     * @return mixed|null|string
431
+     * @return string
432 432
      * @since 2.0
433 433
      */
434 434
     public function ui ( $id, $value, $name = null, $options = null, $fields = null, $pod = null ) {
Please login to merge, or discard this patch.
classes/fields/pick.php 1 patch
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
      * @param string $label Object label
309 309
      * @param array $options Object options
310 310
      *
311
-     * @return array|boolean Object array or false if unsuccessful
311
+     * @return boolean Object array or false if unsuccessful
312 312
      * @since 2.3
313 313
      */
314 314
     public function register_related_object ( $name, $label, $options = null ) {
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
      *
635 635
      * @param array $options
636 636
      *
637
-     * @return array
637
+     * @return string|false
638 638
      * @since 2.0
639 639
      */
640 640
     public function schema ( $options = null ) {
@@ -654,7 +654,6 @@  discard block
 block discarded – undo
654 654
      * @param mixed $value
655 655
      * @param string $name
656 656
      * @param array $options
657
-     * @param array $fields
658 657
      * @param array $pod
659 658
      * @param int $id
660 659
      *
@@ -770,7 +769,7 @@  discard block
 block discarded – undo
770 769
      * @param int $id
771 770
      *
772 771
      * @param null $params
773
-     * @return array|bool
772
+     * @return string|boolean
774 773
      * @since 2.0
775 774
      */
776 775
     public function validate ( $value, $name = null, $options = null, $fields = null, $pod = null, $id = null, $params = null ) {
@@ -1275,7 +1274,7 @@  discard block
 block discarded – undo
1275 1274
      *
1276 1275
      * @param array $object_params Object data parameters
1277 1276
      *
1278
-     * @return array|bool Object data
1277
+     * @return string Object data
1279 1278
      */
1280 1279
     public function get_object_data ( $object_params = null ) {
1281 1280
         global $wpdb, $polylang, $sitepress, $icl_adjust_id_url_filter_off;
Please login to merge, or discard this patch.
classes/fields/text.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      *
113 113
      * @param array $options
114 114
      *
115
-     * @return array
115
+     * @return string
116 116
      * @since 2.0
117 117
      */
118 118
     public function schema ( $options = null ) {
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
      * @param array $pod
223 223
      * @param object $params
224 224
      *
225
-     * @return mixed|string
225
+     * @return string
226 226
      * @since 2.0
227 227
      */
228 228
     public function pre_save ( $value, $id = null, $name = null, $options = null, $fields = null, $pod = null, $params = null ) {
Please login to merge, or discard this patch.