Code Duplication    Length = 2-2 lines in 3 locations

classes/PodsMeta.php 3 locations

@@ 2724-2725 (lines=2) @@
2721
2722
        $object = $this->get_object( $object_type, $object_id );
2723
2724
        if ( empty( $object_id ) || empty( $object ) || !isset( $object[ 'fields' ][ $meta_key ] ) )
2725
            return $_null;
2726
2727
        if ( in_array( $object[ 'fields' ][ $meta_key ][ 'type' ], PodsForm::tableless_field_types() ) ) {
2728
            if ( !is_object( self::$current_field_pod ) || self::$current_field_pod->pod != $object[ 'name' ] )
@@ 2765-2766 (lines=2) @@
2762
2763
        $object = $this->get_object( $object_type, $object_id );
2764
2765
        if ( empty( $object_id ) || empty( $object ) || !isset( $object[ 'fields' ][ $meta_key ] ) )
2766
            return $_null;
2767
2768
        if ( !is_object( self::$current_field_pod ) || self::$current_field_pod->pod != $object[ 'name' ] )
2769
            self::$current_field_pod = pods( $object[ 'name' ] );
@@ 2810-2811 (lines=2) @@
2807
2808
        $object = $this->get_object( $object_type, $object_id );
2809
2810
        if ( empty( $object_id ) || empty( $object ) || !isset( $object[ 'fields' ][ $meta_key ] ) )
2811
            return $_null;
2812
2813
        // @todo handle $delete_all (delete the field values from all pod items)
2814
        if ( !empty( $meta_value ) && in_array( $object[ 'fields' ][ $meta_key ][ 'type' ], PodsForm::tableless_field_types() ) ) {