Completed
Pull Request — 2.x (#4569)
by Scott Kingsley
07:47
created
deprecated/classes/Pods.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 	/**
20 20
 	 * Constructor - Pods Deprecated functionality (pre 2.0)
21 21
 	 *
22
-	 * @param object $obj The Pods object
22
+	 * @param Pods $obj The Pods object
23 23
 	 *
24 24
 	 * @license http://www.gnu.org/licenses/gpl-2.0.html
25 25
 	 * @since   2.0
Please login to merge, or discard this patch.
deprecated/classes/PodsAPI.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 	/**
22 22
 	 * Constructor - PodsAPI Deprecated functionality (pre 2.0)
23 23
 	 *
24
-	 * @param object $obj The PodsAPI object
24
+	 * @param PodsAPI $obj The PodsAPI object
25 25
 	 *
26 26
 	 * @license http://www.gnu.org/licenses/gpl-2.0.html
27 27
 	 * @since   2.0
Please login to merge, or discard this patch.
deprecated/deprecated.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
  * @param string $message
443 443
  * @param bool   $error Whether or not it is an error message
444 444
  *
445
- * @return bool
445
+ * @return boolean|null
446 446
  *
447 447
  * @since     1.12
448 448
  * @deprcated 2.3
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
  *
460 460
  * @param string $message
461 461
  *
462
- * @return bool
462
+ * @return boolean|null
463 463
  *
464 464
  * @since     1.12
465 465
  * @deprcated 2.3
@@ -516,7 +516,7 @@  discard block
 block discarded – undo
516 516
  *
517 517
  * @param $version
518 518
  *
519
- * @return array|string
519
+ * @return string
520 520
  */
521 521
 function pods_version_to_point( $version ) {
522 522
 
Please login to merge, or discard this patch.
sql/upgrade/PodsUpgrade_2_1_0.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 	}
18 18
 
19 19
 	/**
20
-	 * @return array|bool|int|mixed|null|void
20
+	 * @return integer
21 21
 	 */
22 22
 	public function prepare_relationships() {
23 23
 
Please login to merge, or discard this patch.
classes/fields/datetime.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -606,7 +606,7 @@  discard block
 block discarded – undo
606 606
 	 * @param string  $date             Defaults to time() if empty.
607 607
 	 * @param boolean $return_timestamp Whether to return the strtotime() or createFromFormat result or not
608 608
 	 *
609
-	 * @return DateTime|null|int|false
609
+	 * @return string
610 610
 	 */
611 611
 	public function createFromFormat( $format, $date, $return_timestamp = false ) {
612 612
 
@@ -656,7 +656,7 @@  discard block
 block discarded – undo
656 656
 	 * Convert a date from one format to another
657 657
 	 *
658 658
 	 * @param         $value
659
-	 * @param         $new_format
659
+	 * @param         string $new_format
660 660
 	 * @param string     $original_format
661 661
 	 * @param boolean    $return_timestamp Whether to return the strtotime() or createFromFormat result or not
662 662
 	 *
Please login to merge, or discard this patch.
classes/fields/oembed.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -148,6 +148,8 @@
 block discarded – undo
148 148
 
149 149
 	/**
150 150
 	 * {@inheritdoc}
151
+	 * @param string $value
152
+	 * @param string $name
151 153
 	 */
152 154
 	public function display( $value = null, $name = null, $options = null, $pod = null, $id = null ) {
153 155
 
Please login to merge, or discard this patch.
classes/Pods.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
 	/**
436 436
 	 * Rewind Iterator
437 437
 	 *
438
-	 * @return void|boolean
438
+	 * @return null|false
439 439
 	 *
440 440
 	 * @since 2.3.4
441 441
 	 *
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
 	/**
492 492
 	 * Move onto the next Iterator row
493 493
 	 *
494
-	 * @return void|boolean
494
+	 * @return null|false
495 495
 	 *
496 496
 	 * @since 2.3.4
497 497
 	 *
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
 	 * Return field array from a Pod, a field's data, or a field option
591 591
 	 *
592 592
 	 * @param null $field
593
-	 * @param null $option
593
+	 * @param string $option
594 594
 	 *
595 595
 	 * @return bool|mixed
596 596
 	 *
@@ -673,7 +673,7 @@  discard block
 block discarded – undo
673 673
 	 * list of text such as "Rick, John, and Gary"
674 674
 	 *
675 675
 	 * @param string|array|object  $name   The field name, or an associative array of parameters
676
-	 * @param boolean|array|object $single (optional) For tableless fields, to return an array or the first
676
+	 * @param boolean $single (optional) For tableless fields, to return an array or the first
677 677
 	 *
678 678
 	 * @return string|null|false The output from the field, null if the field doesn't exist, false if no value returned
679 679
 	 *                           for tableless fields
@@ -731,7 +731,7 @@  discard block
 block discarded – undo
731 731
 	 * list of text such as "Rick, John, and Gary"
732 732
 	 *
733 733
 	 * @param string|array|object  $name   The field name, or an associative array of parameters
734
-	 * @param boolean|array|object $single (optional) For tableless fields, to return an array or the first
734
+	 * @param boolean $single (optional) For tableless fields, to return an array or the first
735 735
 	 *
736 736
 	 * @return string|null|false The output from the field, null if the field doesn't exist, false if no value returned
737 737
 	 *                           for tableless fields
@@ -2786,7 +2786,7 @@  discard block
 block discarded – undo
2786 2786
 	 * @param null|int $offset Offset of rows
2787 2787
 	 * @param null|int $total  Total rows
2788 2788
 	 *
2789
-	 * @return int Number of pages
2789
+	 * @return double Number of pages
2790 2790
 	 * @since 2.3.10
2791 2791
 	 */
2792 2792
 	public function total_pages( $limit = null, $offset = null, $total = null ) {
@@ -2900,7 +2900,7 @@  discard block
 block discarded – undo
2900 2900
 	 * @see   PodsAPI::save_pod_item
2901 2901
 	 *
2902 2902
 	 * @param string $field Field name
2903
-	 * @param mixed  $value ID(s) to add, int|float to add to number field, string for dates (+1 week), or string for
2903
+	 * @param string  $value ID(s) to add, int|float to add to number field, string for dates (+1 week), or string for
2904 2904
 	 *                      text
2905 2905
 	 * @param int    $id    (optional) ID of the pod item to update
2906 2906
 	 *
@@ -3017,7 +3017,7 @@  discard block
 block discarded – undo
3017 3017
 	 * @see   PodsAPI::save_pod_item
3018 3018
 	 *
3019 3019
 	 * @param string $field Field name
3020
-	 * @param mixed  $value ID(s) to add, int|float to add to number field, string for dates (-1 week), or string for
3020
+	 * @param string  $value ID(s) to add, int|float to add to number field, string for dates (-1 week), or string for
3021 3021
 	 *                      text
3022 3022
 	 * @param int    $id    (optional) ID of the pod item to update
3023 3023
 	 *
Please login to merge, or discard this patch.