Code Duplication    Length = 2-2 lines in 2 locations

classes/fields/pick.php 2 locations

@@ 1548-1549 (lines=2) @@
1545
1546
                if ( 'single' == pods_var( self::$type . '_format_type', $options, 'single' ) && 'autocomplete' == pods_var( self::$type . '_format_single', $options, 'dropdown' ) )
1547
                    $autocomplete = true;
1548
                elseif ( 'multi' == pods_var( self::$type . '_format_type', $options, 'single' ) && 'autocomplete' == pods_var( self::$type . '_format_multi', $options, 'checkbox' ) )
1549
                    $autocomplete = true;
1550
1551
                $hierarchy = false;
1552
@@ 1556-1557 (lines=2) @@
1553
                if ( 'data' == $context && !$autocomplete ) {
1554
                    if ( 'single' == pods_var( self::$type . '_format_type', $options, 'single' ) && in_array( pods_var( self::$type . '_format_single', $options, 'dropdown' ), array( 'dropdown', 'radio' ) ) )
1555
                        $hierarchy = true;
1556
                    elseif ( 'multi' == pods_var( self::$type . '_format_type', $options, 'single' ) && in_array( pods_var( self::$type . '_format_multi', $options, 'checkbox' ), array( 'multiselect', 'checkbox' ) ) )
1557
                        $hierarchy = true;
1558
                }
1559
1560
                if ( $hierarchy && $options[ 'table_info' ][ 'object_hierarchical' ] && !empty( $options[ 'table_info' ][ 'field_parent' ] ) )