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   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -619,7 +619,7 @@
 block discarded – undo
619 619
 	 * @param string  $date             Defaults to time() if empty.
620 620
 	 * @param boolean $return_timestamp Whether to return the strtotime() or createFromFormat result or not.
621 621
 	 *
622
-	 * @return DateTime|null|int|false
622
+	 * @return string
623 623
 	 */
624 624
 	public function createFromFormat( $format, $date, $return_timestamp = false ) {
625 625
 
Please login to merge, or discard this patch.
classes/PodsAdmin.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2564,7 +2564,7 @@  discard block
 block discarded – undo
2564 2564
 	 * @param PodsUI     $obj PodsUI object.
2565 2565
 	 * @param int|string $id  Item ID.
2566 2566
 	 *
2567
-	 * @return mixed
2567
+	 * @return boolean|null
2568 2568
 	 */
2569 2569
 	public function admin_setup_reset( $obj, $id ) {
2570 2570
 
@@ -2613,7 +2613,7 @@  discard block
 block discarded – undo
2613 2613
 	 * @param int|string $id  Item ID.
2614 2614
 	 * @param PodsUI     $obj PodsUI object.
2615 2615
 	 *
2616
-	 * @return mixed
2616
+	 * @return boolean|null
2617 2617
 	 */
2618 2618
 	public function admin_setup_delete( $id, $obj ) {
2619 2619
 
@@ -2838,7 +2838,7 @@  discard block
 block discarded – undo
2838 2838
 	 *
2839 2839
 	 * @param PodsUI $ui PodsUI object
2840 2840
 	 *
2841
-	 * @return bool
2841
+	 * @return boolean|null
2842 2842
 	 */
2843 2843
 	public function admin_components_toggle( $ui ) {
2844 2844
 
@@ -2982,7 +2982,7 @@  discard block
 block discarded – undo
2982 2982
 	 *
2983 2983
 	 * @param array $capabilities List of extra capabilities to add.
2984 2984
 	 *
2985
-	 * @return array
2985
+	 * @return string[]
2986 2986
 	 */
2987 2987
 	public function admin_capabilities( $capabilities ) {
2988 2988
 
Please login to merge, or discard this patch.
classes/PodsData.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2238,8 +2238,8 @@  discard block
 block discarded – undo
2238 2238
 	 *
2239 2239
 	 * @param string|array $sql              The SQL to execute.
2240 2240
 	 * @param string       $error            Error to throw on problems.
2241
-	 * @param null         $results_error    (optional).
2242
-	 * @param null         $no_results_error (optional).
2241
+	 * @param string|null         $results_error    (optional).
2242
+	 * @param string|null         $no_results_error (optional).
2243 2243
 	 *
2244 2244
 	 * @return array|bool|mixed|null|void Result of the query
2245 2245
 	 *
@@ -2586,7 +2586,7 @@  discard block
 block discarded – undo
2586 2586
 	/**
2587 2587
 	 * Get the string to use in a query for matching, uses WP_Query meta_query arguments
2588 2588
 	 *
2589
-	 * @param string|int   $field  Field name or array index.
2589
+	 * @param string   $field  Field name or array index.
2590 2590
 	 * @param array|string $q      Query array (meta_query) or string for matching.
2591 2591
 	 * @param array        $pod    Related Pod.
2592 2592
 	 * @param object       $params Parameters passed from select().
Please login to merge, or discard this patch.
classes/Pods.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -580,7 +580,7 @@  discard block
 block discarded – undo
580 580
 	 * Return field array from a Pod, a field's data, or a field option
581 581
 	 *
582 582
 	 * @param null $field  Field name.
583
-	 * @param null $option Option name.
583
+	 * @param string $option Option name.
584 584
 	 *
585 585
 	 * @return bool|mixed
586 586
 	 *
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
 	 * list of text such as "Rick, John, and Gary"
664 664
 	 *
665 665
 	 * @param string|array|object  $name   The field name, or an associative array of parameters.
666
-	 * @param boolean|array|object $single (optional) For tableless fields, to return an array or the first.
666
+	 * @param boolean $single (optional) For tableless fields, to return an array or the first.
667 667
 	 *
668 668
 	 * @return string|null|false The output from the field, null if the field doesn't exist, false if no value returned
669 669
 	 *                           for tableless fields
@@ -723,7 +723,7 @@  discard block
 block discarded – undo
723 723
 	 * list of text such as "Rick, John, and Gary"
724 724
 	 *
725 725
 	 * @param string|array|object  $name   The field name, or an associative array of parameters.
726
-	 * @param boolean|array|object $single (optional) For tableless fields, to return an array or the first.
726
+	 * @param boolean $single (optional) For tableless fields, to return an array or the first.
727 727
 	 *
728 728
 	 * @return string|null|false The output from the field, null if the field doesn't exist, false if no value returned
729 729
 	 *                           for tableless fields
@@ -2803,7 +2803,7 @@  discard block
 block discarded – undo
2803 2803
 	 * @param null|int $offset Offset of rows.
2804 2804
 	 * @param null|int $total  Total rows.
2805 2805
 	 *
2806
-	 * @return int Number of pages
2806
+	 * @return double Number of pages
2807 2807
 	 * @since 2.3.10
2808 2808
 	 */
2809 2809
 	public function total_pages( $limit = null, $offset = null, $total = null ) {
@@ -2917,7 +2917,7 @@  discard block
 block discarded – undo
2917 2917
 	 * @see   PodsAPI::save_pod_item
2918 2918
 	 *
2919 2919
 	 * @param string $field Field name.
2920
-	 * @param mixed  $value IDs to add, int|float to add to number field, string for dates (+1 day), or string for text.
2920
+	 * @param string  $value IDs to add, int|float to add to number field, string for dates (+1 day), or string for text.
2921 2921
 	 * @param int    $id    (optional) ID of the pod item to update.
2922 2922
 	 *
2923 2923
 	 * @return int The item ID
@@ -3033,7 +3033,7 @@  discard block
 block discarded – undo
3033 3033
 	 * @see   PodsAPI::save_pod_item
3034 3034
 	 *
3035 3035
 	 * @param string $field Field name.
3036
-	 * @param mixed  $value IDs to add, int|float to add to number field, string for dates (-1 day), or string for text.
3036
+	 * @param string  $value IDs to add, int|float to add to number field, string for dates (-1 day), or string for text.
3037 3037
 	 * @param int    $id    (optional) ID of the pod item to update.
3038 3038
 	 *
3039 3039
 	 * @return int The item ID
Please login to merge, or discard this patch.