Completed
Pull Request — 2.x (#3869)
by Ramon van
08:41 queued 03:51
created
classes/fields/currency.php 1 patch
Doc Comments   +6 added lines, -6 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 ) {
@@ -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 ) {
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
 	 * @param array $pod
520 520
 	 * @param object $params
521 521
 	 *
522
-	 * @return mixed|string
522
+	 * @return string
523 523
 	 * @since 2.0
524 524
 	 */
525 525
 	public function pre_save( $value, $id = null, $name = null, $options = null, $fields = null, $pod = null, $params = null ) {
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
 	 * @param array $fields
604 604
 	 * @param array $pod
605 605
 	 *
606
-	 * @return mixed|null|string
606
+	 * @return string
607 607
 	 * @since 2.0
608 608
 	 */
609 609
 	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|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 ) {
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
      * @param array $pod
365 365
      * @param object $params
366 366
      *
367
-     * @return mixed|string
367
+     * @return string
368 368
      * @since 2.0
369 369
      */
370 370
     public function pre_save ( $value, $id = null, $name = null, $options = null, $fields = null, $pod = null, $params = null ) {
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
      * @param array $fields
431 431
      * @param array $pod
432 432
      *
433
-     * @return mixed|null|string
433
+     * @return string
434 434
      * @since 2.0
435 435
      */
436 436
     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   +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.