Code Duplication    Length = 2-2 lines in 3 locations

classes/PodsMeta.php 3 locations

@@ 2836-2837 (lines=2) @@
2833
2834
        $object = $this->get_object( $object_type, $object_id );
2835
2836
        if ( empty( $object_id ) || empty( $object ) || !isset( $object[ 'fields' ][ $meta_key ] ) )
2837
            return $_null;
2838
2839
        if ( in_array( $object[ 'fields' ][ $meta_key ][ 'type' ], PodsForm::tableless_field_types() ) ) {
2840
            if ( !is_object( self::$current_field_pod ) || self::$current_field_pod->pod != $object[ 'name' ] )
@@ 2877-2878 (lines=2) @@
2874
2875
        $object = $this->get_object( $object_type, $object_id );
2876
2877
        if ( empty( $object_id ) || empty( $object ) || !isset( $object[ 'fields' ][ $meta_key ] ) )
2878
            return $_null;
2879
2880
        if ( !is_object( self::$current_field_pod ) || self::$current_field_pod->pod != $object[ 'name' ] )
2881
            self::$current_field_pod = pods( $object[ 'name' ] );
@@ 2922-2923 (lines=2) @@
2919
2920
        $object = $this->get_object( $object_type, $object_id );
2921
2922
        if ( empty( $object_id ) || empty( $object ) || !isset( $object[ 'fields' ][ $meta_key ] ) )
2923
            return $_null;
2924
2925
        // @todo handle $delete_all (delete the field values from all pod items)
2926
        if ( !empty( $meta_value ) && in_array( $object[ 'fields' ][ $meta_key ][ 'type' ], PodsForm::tableless_field_types() ) ) {