Completed
Pull Request — 2.x (#3273)
by Scott Kingsley
05:29
created
classes/PodsAPI.php 1 patch
Doc Comments   +5 added lines, -6 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
@@ -3896,7 +3896,7 @@  discard block
 block discarded – undo
3896 3896
      * Save relationships
3897 3897
      *
3898 3898
      * @param int $id ID of item
3899
-     * @param int|array $related_id ID or IDs to save
3899
+     * @param int|array $related_ids ID or IDs to save
3900 3900
      * @param array $pod Pod data
3901 3901
      * @param array $field Field data
3902 3902
      */
@@ -4990,7 +4990,6 @@  discard block
 block discarded – undo
4990 4990
      * Delete an object from tableless fields
4991 4991
      *
4992 4992
      * @param int $id
4993
-     * @param string $type
4994 4993
      * @param string $name
4995 4994
      *
4996 4995
      * @return bool
@@ -6677,7 +6676,7 @@  discard block
 block discarded – undo
6677 6676
      * @param string $type Field type to look for
6678 6677
      * @param array $options (optional) Options of the field to pass to the schema function.
6679 6678
      *
6680
-     * @return array|bool|mixed|null
6679
+     * @return string
6681 6680
      *
6682 6681
      * @since 2.0
6683 6682
      */
@@ -7113,7 +7112,7 @@  discard block
 block discarded – undo
7113 7112
 	 *
7114 7113
 	 * Load the information about an objects MySQL table
7115 7114
 	 *
7116
-	 * @param $object_type
7115
+	 * @param string $object_type
7117 7116
 	 * @param string $object The object to look for
7118 7117
 	 * @param null $name (optional) Name of the pod to load
7119 7118
 	 * @param array $pod (optional) Array with pod information
@@ -7754,7 +7753,7 @@  discard block
 block discarded – undo
7754 7753
      * @param array|string $data (optional) An associative array containing a package, or the json encoded package
7755 7754
      * @param bool $output (optional)
7756 7755
      *
7757
-     * @return array|bool
7756
+     * @return boolean
7758 7757
      *
7759 7758
      * @since 1.9.0
7760 7759
      * @deprecated 2.0
Please login to merge, or discard this patch.
classes/PodsData.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2347,7 +2347,7 @@  discard block
 block discarded – undo
2347 2347
     /**
2348 2348
      * Get the string to use in a query for matching, uses WP_Query meta_query arguments
2349 2349
      *
2350
-     * @param string|int $field Field name or array index
2350
+     * @param string $field Field name or array index
2351 2351
      * @param array|string $q Query array (meta_query) or string for matching
2352 2352
      * @param array $pod Related Pod
2353 2353
 	 * @param object $params Parameters passed from select()
@@ -3074,6 +3074,7 @@  discard block
 block discarded – undo
3074 3074
      * Get the complete sql
3075 3075
      *
3076 3076
      * @since 2.0.5
3077
+     * @param string $sql
3077 3078
      */
3078 3079
     public function get_sql ( $sql ) {
3079 3080
         global $wpdb;
Please login to merge, or discard this patch.
classes/PodsMeta.php 1 patch
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -795,7 +795,7 @@  discard block
 block discarded – undo
795 795
     }
796 796
 
797 797
     /**
798
-     * @param $type
798
+     * @param string $type
799 799
      * @param $name
800 800
      * @param $default_fields
801 801
      *
@@ -2707,7 +2707,7 @@  discard block
 block discarded – undo
2707 2707
      * @param string $meta_value
2708 2708
      * @param bool $unique
2709 2709
      *
2710
-     * @return bool|int|null
2710
+     * @return null|integer
2711 2711
      */
2712 2712
     public function add_meta ( $object_type, $_null = null, $object_id = 0, $meta_key = '', $meta_value = '', $unique = false ) {
2713 2713
         if ( pods_tableless() )
@@ -2748,7 +2748,7 @@  discard block
 block discarded – undo
2748 2748
      * @param string $meta_value
2749 2749
      * @param string $prev_value
2750 2750
      *
2751
-     * @return bool|int|null
2751
+     * @return null|integer
2752 2752
      */
2753 2753
     public function update_meta ( $object_type, $_null = null, $object_id = 0, $meta_key = '', $meta_value = '', $prev_value = '' ) {
2754 2754
         if ( pods_tableless() )
@@ -2889,6 +2889,9 @@  discard block
 block discarded – undo
2889 2889
         return $this->delete_object( 'media', $id );
2890 2890
     }
2891 2891
 
2892
+    /**
2893
+     * @param string $type
2894
+     */
2892 2895
     public function delete_object ( $type, $id, $name = null ) {
2893 2896
         if ( empty( $name ) )
2894 2897
             $name = $type;
Please login to merge, or discard this patch.