Completed
Push — 2.x ( 60d56d...baee98 )
by Phil
13s
created
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.
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/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.
classes/PodsAdmin.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2568,7 +2568,7 @@  discard block
 block discarded – undo
2568 2568
 	 * @param PodsUI     $obj PodsUI object.
2569 2569
 	 * @param int|string $id  Item ID.
2570 2570
 	 *
2571
-	 * @return mixed
2571
+	 * @return boolean|null
2572 2572
 	 */
2573 2573
 	public function admin_setup_reset( $obj, $id ) {
2574 2574
 
@@ -2617,7 +2617,7 @@  discard block
 block discarded – undo
2617 2617
 	 * @param int|string $id  Item ID.
2618 2618
 	 * @param PodsUI     $obj PodsUI object.
2619 2619
 	 *
2620
-	 * @return mixed
2620
+	 * @return boolean|null
2621 2621
 	 */
2622 2622
 	public function admin_setup_delete( $id, $obj ) {
2623 2623
 
@@ -2848,7 +2848,7 @@  discard block
 block discarded – undo
2848 2848
 	 *
2849 2849
 	 * @param PodsUI $ui PodsUI object.
2850 2850
 	 *
2851
-	 * @return bool
2851
+	 * @return boolean|null
2852 2852
 	 */
2853 2853
 	public function admin_components_toggle( $ui ) {
2854 2854
 
@@ -2992,7 +2992,7 @@  discard block
 block discarded – undo
2992 2992
 	 *
2993 2993
 	 * @param array $capabilities List of extra capabilities to add.
2994 2994
 	 *
2995
-	 * @return array
2995
+	 * @return string[]
2996 2996
 	 */
2997 2997
 	public function admin_capabilities( $capabilities ) {
2998 2998
 
Please login to merge, or discard this patch.
classes/PodsArray.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 	/**
106 106
 	 * Validate value on a specific type and set default (if empty)
107 107
 	 *
108
-	 * @param mixed       $offset  Used to get value of Array or Variable on Object.
108
+	 * @param string       $offset  Used to get value of Array or Variable on Object.
109 109
 	 * @param mixed|null  $default Used to set default value if it doesn't exist.
110 110
 	 * @param string|null $type    Used to force a specific type of variable (allowed: array, object, integer, absint,
111 111
 	 *                             boolean).
Please login to merge, or discard this patch.
classes/PodsMeta.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 	}
349 349
 
350 350
 	/**
351
-	 * @param $type
351
+	 * @param string $type
352 352
 	 * @param $pod
353 353
 	 *
354 354
 	 * @return array|bool|int
@@ -837,7 +837,7 @@  discard block
 block discarded – undo
837 837
 	 * @param $type
838 838
 	 * @param $name
839 839
 	 *
840
-	 * @return array|bool|mixed|void
840
+	 * @return string
841 841
 	 */
842 842
 	public function object_get( $type, $name ) {
843 843
 
@@ -893,7 +893,7 @@  discard block
 block discarded – undo
893 893
 	}
894 894
 
895 895
 	/**
896
-	 * @param $type
896
+	 * @param string $type
897 897
 	 * @param $name
898 898
 	 * @param $default_fields
899 899
 	 *
@@ -3154,7 +3154,7 @@  discard block
 block discarded – undo
3154 3154
 	 * @param string $meta_value
3155 3155
 	 * @param bool   $unique
3156 3156
 	 *
3157
-	 * @return bool|int|null
3157
+	 * @return null|integer
3158 3158
 	 */
3159 3159
 	public function add_meta( $object_type, $_null = null, $object_id = 0, $meta_key = '', $meta_value = '', $unique = false ) {
3160 3160
 
@@ -3202,7 +3202,7 @@  discard block
 block discarded – undo
3202 3202
 	 * @param string $meta_value
3203 3203
 	 * @param string $prev_value
3204 3204
 	 *
3205
-	 * @return bool|int|null
3205
+	 * @return null|integer
3206 3206
 	 */
3207 3207
 	public function update_meta( $object_type, $_null = null, $object_id = 0, $meta_key = '', $meta_value = '', $prev_value = '' ) {
3208 3208
 
@@ -3386,7 +3386,7 @@  discard block
 block discarded – undo
3386 3386
 	}
3387 3387
 
3388 3388
 	/**
3389
-	 * @param      $type
3389
+	 * @param      string $type
3390 3390
 	 * @param      $id
3391 3391
 	 * @param null $name
3392 3392
 	 *
Please login to merge, or discard this patch.
sql/upgrade/PodsUpgrade.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 	}
165 165
 
166 166
 	/**
167
-	 * @param      $method
167
+	 * @param      string $method
168 168
 	 * @param      $v
169 169
 	 * @param null   $x
170 170
 	 */
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 	}
187 187
 
188 188
 	/**
189
-	 * @param      $method
189
+	 * @param      string $method
190 190
 	 * @param null   $x
191 191
 	 *
192 192
 	 * @return bool
Please login to merge, or discard this patch.