Code Duplication    Length = 2-2 lines in 3 locations

classes/PodsMeta.php 3 locations

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