Code Duplication    Length = 6-6 lines in 2 locations

classes/PodsMeta.php 2 locations

@@ 825-830 (lines=6) @@
822
823
    public function object_get( $type, $name ) {
824
825
        if ( 'post_type' == $type && 'attachment' == $name ) {
826
            $type = 'media';
827
            $name = 'media';
828
        } elseif ( 'term' == $type ) {
829
            $type = 'taxonomy';
830
        }
831
832
        $objects = $this->get_objects( $type );
833
@@ 879-884 (lines=6) @@
876
     */
877
    public function groups_get( $type, $name, $default_fields = null ) {
878
879
        if ( 'post_type' == $type && 'attachment' == $name ) {
880
            $type = 'media';
881
            $name = 'media';
882
        } elseif ( 'term' == $type ) {
883
            $type = 'taxonomy';
884
        }
885
886
        do_action( 'pods_meta_groups', $type, $name );
887