Code Duplication    Length = 2-2 lines in 3 locations

classes/PodsMeta.php 3 locations

@@ 2718-2719 (lines=2) @@
2715
2716
        $object = $this->get_object( $object_type, $object_id );
2717
2718
        if ( empty( $object_id ) || empty( $object ) || !isset( $object[ 'fields' ][ $meta_key ] ) )
2719
            return $_null;
2720
2721
        if ( in_array( $object[ 'fields' ][ $meta_key ][ 'type' ], PodsForm::tableless_field_types() ) ) {
2722
            if ( !is_object( self::$current_field_pod ) || self::$current_field_pod->pod != $object[ 'name' ] )
@@ 2759-2760 (lines=2) @@
2756
2757
        $object = $this->get_object( $object_type, $object_id );
2758
2759
        if ( empty( $object_id ) || empty( $object ) || !isset( $object[ 'fields' ][ $meta_key ] ) )
2760
            return $_null;
2761
2762
        if ( !is_object( self::$current_field_pod ) || self::$current_field_pod->pod != $object[ 'name' ] )
2763
            self::$current_field_pod = pods( $object[ 'name' ] );
@@ 2804-2805 (lines=2) @@
2801
2802
        $object = $this->get_object( $object_type, $object_id );
2803
2804
        if ( empty( $object_id ) || empty( $object ) || !isset( $object[ 'fields' ][ $meta_key ] ) )
2805
            return $_null;
2806
2807
        // @todo handle $delete_all (delete the field values from all pod items)
2808
        if ( !empty( $meta_value ) && in_array( $object[ 'fields' ][ $meta_key ][ 'type' ], PodsForm::tableless_field_types() ) ) {