Completed
Pull Request — 2.x (#4569)
by Scott Kingsley
04:42
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
 	 *
@@ -594,7 +594,7 @@  discard block
 block discarded – undo
594 594
 	 * Return field array from a Pod, a field's data, or a field option
595 595
 	 *
596 596
 	 * @param null $field  Field name.
597
-	 * @param null $option Option name.
597
+	 * @param string $option Option name.
598 598
 	 *
599 599
 	 * @return bool|mixed
600 600
 	 *
@@ -677,7 +677,7 @@  discard block
 block discarded – undo
677 677
 	 * list of text such as "Rick, John, and Gary"
678 678
 	 *
679 679
 	 * @param string|array|object  $name   The field name, or an associative array of parameters.
680
-	 * @param boolean|array|object $single (optional) For tableless fields, to return an array or the first.
680
+	 * @param boolean $single (optional) For tableless fields, to return an array or the first.
681 681
 	 *
682 682
 	 * @return string|null|false The output from the field, null if the field doesn't exist, false if no value returned
683 683
 	 *                           for tableless fields
@@ -737,7 +737,7 @@  discard block
 block discarded – undo
737 737
 	 * list of text such as "Rick, John, and Gary"
738 738
 	 *
739 739
 	 * @param string|array|object  $name   The field name, or an associative array of parameters.
740
-	 * @param boolean|array|object $single (optional) For tableless fields, to return an array or the first.
740
+	 * @param boolean $single (optional) For tableless fields, to return an array or the first.
741 741
 	 *
742 742
 	 * @return string|null|false The output from the field, null if the field doesn't exist, false if no value returned
743 743
 	 *                           for tableless fields
@@ -2817,7 +2817,7 @@  discard block
 block discarded – undo
2817 2817
 	 * @param null|int $offset Offset of rows.
2818 2818
 	 * @param null|int $total  Total rows.
2819 2819
 	 *
2820
-	 * @return int Number of pages
2820
+	 * @return double Number of pages
2821 2821
 	 * @since 2.3.10
2822 2822
 	 */
2823 2823
 	public function total_pages( $limit = null, $offset = null, $total = null ) {
@@ -2931,7 +2931,7 @@  discard block
 block discarded – undo
2931 2931
 	 * @see   PodsAPI::save_pod_item
2932 2932
 	 *
2933 2933
 	 * @param string $field Field name.
2934
-	 * @param mixed  $value IDs to add, int|float to add to number field, string for dates (+1 day), or string for text.
2934
+	 * @param string  $value IDs to add, int|float to add to number field, string for dates (+1 day), or string for text.
2935 2935
 	 * @param int    $id    (optional) ID of the pod item to update.
2936 2936
 	 *
2937 2937
 	 * @return int The item ID
@@ -3047,7 +3047,7 @@  discard block
 block discarded – undo
3047 3047
 	 * @see   PodsAPI::save_pod_item
3048 3048
 	 *
3049 3049
 	 * @param string $field Field name.
3050
-	 * @param mixed  $value IDs to add, int|float to add to number field, string for dates (-1 day), or string for text.
3050
+	 * @param string  $value IDs to add, int|float to add to number field, string for dates (-1 day), or string for text.
3051 3051
 	 * @param int    $id    (optional) ID of the pod item to update.
3052 3052
 	 *
3053 3053
 	 * @return int The item ID
Please login to merge, or discard this patch.