Code Duplication    Length = 2-2 lines in 3 locations

classes/PodsMeta.php 3 locations

@@ 2761-2762 (lines=2) @@
2758
2759
        $object = $this->get_object( $object_type, $object_id );
2760
2761
        if ( empty( $object_id ) || empty( $object ) || !isset( $object[ 'fields' ][ $meta_key ] ) )
2762
            return $_null;
2763
2764
        if ( in_array( $object[ 'fields' ][ $meta_key ][ 'type' ], PodsForm::tableless_field_types() ) ) {
2765
            if ( !is_object( self::$current_field_pod ) || self::$current_field_pod->pod != $object[ 'name' ] )
@@ 2802-2803 (lines=2) @@
2799
2800
        $object = $this->get_object( $object_type, $object_id );
2801
2802
        if ( empty( $object_id ) || empty( $object ) || !isset( $object[ 'fields' ][ $meta_key ] ) )
2803
            return $_null;
2804
2805
        if ( !is_object( self::$current_field_pod ) || self::$current_field_pod->pod != $object[ 'name' ] )
2806
            self::$current_field_pod = pods( $object[ 'name' ] );
@@ 2847-2848 (lines=2) @@
2844
2845
        $object = $this->get_object( $object_type, $object_id );
2846
2847
        if ( empty( $object_id ) || empty( $object ) || !isset( $object[ 'fields' ][ $meta_key ] ) )
2848
            return $_null;
2849
2850
        // @todo handle $delete_all (delete the field values from all pod items)
2851
        if ( !empty( $meta_value ) && in_array( $object[ 'fields' ][ $meta_key ][ 'type' ], PodsForm::tableless_field_types() ) ) {