Completed
Pull Request — 2.x (#3169)
by Scott Kingsley
09:55
created
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/paragraph.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      *
162 162
      * @param array $options
163 163
      *
164
-     * @return array
164
+     * @return string
165 165
      * @since 2.0
166 166
      */
167 167
     public function schema ( $options = null ) {
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
      * @param array $pod
262 262
      * @param object $params
263 263
      *
264
-     * @return mixed|string
264
+     * @return string
265 265
      * @since 2.0
266 266
      */
267 267
     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/password.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
      *
82 82
      * @param array $options
83 83
      *
84
-     * @return array
84
+     * @return string
85 85
      * @since 2.0
86 86
      */
87 87
     public function schema ( $options = null ) {
Please login to merge, or discard this patch.
classes/fields/phone.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
      */
@@ -118,7 +117,7 @@  discard block
 block discarded – undo
118 117
      *
119 118
      * @param array $options
120 119
      *
121
-     * @return array
120
+     * @return string
122 121
      * @since 2.0
123 122
      */
124 123
     public function schema ( $options = 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/slug.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      *
51 51
      * @param array $options
52 52
      *
53
-     * @return array
53
+     * @return string
54 54
      * @since 2.0
55 55
      */
56 56
     public function schema ( $options = null ) {
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      * @param array $pod
159 159
      * @param object $params
160 160
      *
161
-     * @return mixed|string
161
+     * @return string
162 162
      * @since 2.0
163 163
      */
164 164
     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/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.
classes/fields/time.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      *
127 127
      * @param array $options
128 128
      *
129
-     * @return array
129
+     * @return string
130 130
      * @since 2.0
131 131
      */
132 132
     public function schema ( $options = null ) {
@@ -298,8 +298,8 @@  discard block
 block discarded – undo
298 298
     }
299 299
 
300 300
     /**
301
-     * @param $format
302
-     * @param $date
301
+     * @param string $format
302
+     * @param string $date
303 303
      *
304 304
      * @return DateTime
305 305
      */
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
      * Convert a date from one format to another
330 330
      *
331 331
      * @param $date
332
-     * @param $new_format
332
+     * @param string $new_format
333 333
      * @param $original_format
334 334
      */
335 335
     public function convert_date ( $value, $new_format, $original_format = 'H:i:s' ) {
Please login to merge, or discard this patch.
classes/fields/website.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
      */
@@ -106,7 +105,7 @@  discard block
 block discarded – undo
106 105
      *
107 106
      * @param array $options
108 107
      *
109
-     * @return array
108
+     * @return string
110 109
      * @since 2.0
111 110
      */
112 111
     public function schema ( $options = null ) {
Please login to merge, or discard this patch.