Completed
Pull Request — 2.x (#3958)
by Jory
04:29
created
classes/fields/pick.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
      *
662 662
      * @param array $options
663 663
      *
664
-     * @return array
664
+     * @return string|false
665 665
      * @since 2.0
666 666
      */
667 667
     public function schema ( $options = null ) {
@@ -681,7 +681,6 @@  discard block
 block discarded – undo
681 681
      * @param mixed $value
682 682
      * @param string $name
683 683
      * @param array $options
684
-     * @param array $fields
685 684
      * @param array $pod
686 685
      * @param int $id
687 686
      *
@@ -797,7 +796,7 @@  discard block
 block discarded – undo
797 796
      * @param int $id
798 797
      *
799 798
      * @param null $params
800
-     * @return array|bool
799
+     * @return string|boolean
801 800
      * @since 2.0
802 801
      */
803 802
     public function validate ( $value, $name = null, $options = null, $fields = null, $pod = null, $id = null, $params = null ) {
@@ -1302,7 +1301,7 @@  discard block
 block discarded – undo
1302 1301
      *
1303 1302
      * @param array $object_params Object data parameters
1304 1303
      *
1305
-     * @return array|bool Object data
1304
+     * @return string Object data
1306 1305
      */
1307 1306
     public function get_object_data ( $object_params = null ) {
1308 1307
 
Please login to merge, or discard this patch.
classes/PodsAPI.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1559,7 +1559,7 @@  discard block
 block discarded – undo
1559 1559
      *
1560 1560
      * @param array $params An associative array of parameters
1561 1561
      * @param bool $sanitized (optional) Decides whether the params have been sanitized before being passed, will sanitize them if false.
1562
-     * @param bool|int $db (optional) Whether to save into the DB or just return Pod array.
1562
+     * @param boolean $db (optional) Whether to save into the DB or just return Pod array.
1563 1563
      *
1564 1564
      * @return int Pod ID
1565 1565
      * @since 1.7.9
@@ -3903,7 +3903,7 @@  discard block
 block discarded – undo
3903 3903
      * Save relationships
3904 3904
      *
3905 3905
      * @param int $id ID of item
3906
-     * @param int|array $related_id ID or IDs to save
3906
+     * @param int|array $related_ids ID or IDs to save
3907 3907
      * @param array $pod Pod data
3908 3908
      * @param array $field Field data
3909 3909
      */
@@ -5061,7 +5061,6 @@  discard block
 block discarded – undo
5061 5061
      * Delete an object from tableless fields
5062 5062
      *
5063 5063
      * @param int $id
5064
-     * @param string $type
5065 5064
      * @param string $name
5066 5065
      *
5067 5066
      * @return bool
@@ -5284,6 +5283,7 @@  discard block
 block discarded – undo
5284 5283
      * $params['name'] string Pod name
5285 5284
      *
5286 5285
      * @param array $params An associative array of parameters
5286
+     * @param string $type
5287 5287
      *
5288 5288
      * @return bool True if exists
5289 5289
      *
@@ -6792,7 +6792,7 @@  discard block
 block discarded – undo
6792 6792
      * @param string $type Field type to look for
6793 6793
      * @param array $options (optional) Options of the field to pass to the schema function.
6794 6794
      *
6795
-     * @return array|bool|mixed|null
6795
+     * @return string
6796 6796
      *
6797 6797
      * @since 2.0
6798 6798
      */
@@ -7228,7 +7228,7 @@  discard block
 block discarded – undo
7228 7228
 	 *
7229 7229
 	 * Load the information about an objects MySQL table
7230 7230
 	 *
7231
-	 * @param $object_type
7231
+	 * @param string $object_type
7232 7232
 	 * @param string $object The object to look for
7233 7233
 	 * @param null $name (optional) Name of the pod to load
7234 7234
 	 * @param array $pod (optional) Array with pod information
Please login to merge, or discard this patch.
classes/fields/currency.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 	 *
209 209
 	 * @param array $options
210 210
 	 *
211
-	 * @return array
211
+	 * @return string
212 212
 	 * @since 2.0
213 213
 	 */
214 214
 	public function schema( $options = null ) {
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 	 *
244 244
 	 * @param array $options
245 245
 	 *
246
-	 * @return array
246
+	 * @return string
247 247
 	 * @since 2.0
248 248
 	 */
249 249
 	public function prepare( $options = null ) {
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 	 * @param array $pod
290 290
 	 * @param int $id
291 291
 	 *
292
-	 * @return mixed|null|string
292
+	 * @return string
293 293
 	 * @since 2.0
294 294
 	 */
295 295
 	public function display( $value = null, $name = null, $options = null, $pod = null, $id = null ) {
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
 	 * @param int $id
449 449
 	 * @param null $params
450 450
 	 *
451
-	 * @return bool|mixed
451
+	 * @return string|boolean
452 452
 	 * @since 2.0
453 453
 	 */
454 454
 	public function validate( $value, $name = null, $options = null, $fields = null, $pod = null, $id = null, $params = null ) {
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
 	 * @param array $pod
523 523
 	 * @param object $params
524 524
 	 *
525
-	 * @return mixed|string
525
+	 * @return string
526 526
 	 * @since 2.0
527 527
 	 */
528 528
 	public function pre_save( $value, $id = null, $name = null, $options = null, $fields = null, $pod = null, $params = null ) {
@@ -606,7 +606,7 @@  discard block
 block discarded – undo
606 606
 	 * @param array $fields
607 607
 	 * @param array $pod
608 608
 	 *
609
-	 * @return mixed|null|string
609
+	 * @return string
610 610
 	 * @since 2.0
611 611
 	 */
612 612
 	public function ui( $id, $value, $name = null, $options = null, $fields = null, $pod = null ) {
Please login to merge, or discard this patch.
classes/fields/number.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 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 ) {
@@ -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
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 ) {
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
      * @param array $pod
369 369
      * @param object $params
370 370
      *
371
-     * @return mixed|string
371
+     * @return string
372 372
      * @since 2.0
373 373
      */
374 374
     public function pre_save ( $value, $id = null, $name = null, $options = null, $fields = null, $pod = null, $params = null ) {
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
      * @param array $fields
435 435
      * @param array $pod
436 436
      *
437
-     * @return mixed|null|string
437
+     * @return string
438 438
      * @since 2.0
439 439
      */
440 440
     public function ui ( $id, $value, $name = null, $options = null, $fields = null, $pod = null ) {
Please login to merge, or discard this patch.