Completed
Pull Request — 2.x (#3273)
by Scott Kingsley
05:29
created
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.