Code Duplication    Length = 2-2 lines in 2 locations

classes/fields/pick.php 2 locations

@@ 1831-1832 (lines=2) @@
1828
            pods_error( __( 'Invalid field request', 'pods' ), PodsInit::$admin );
1829
        elseif ( 'pick' != $field[ 'type' ] || empty( $field[ 'table_info' ] ) )
1830
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1831
        elseif ( 'single' == pods_var( self::$type . '_format_type', $field ) && 'autocomplete' == pods_var( self::$type . '_format_single', $field ) )
1832
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1833
        elseif ( 'multi' == pods_var( self::$type . '_format_type', $field ) && 'autocomplete' == pods_var( self::$type . '_format_multi', $field ) )
1834
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1835
@@ 1833-1834 (lines=2) @@
1830
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1831
        elseif ( 'single' == pods_var( self::$type . '_format_type', $field ) && 'autocomplete' == pods_var( self::$type . '_format_single', $field ) )
1832
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1833
        elseif ( 'multi' == pods_var( self::$type . '_format_type', $field ) && 'autocomplete' == pods_var( self::$type . '_format_multi', $field ) )
1834
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1835
1836
        $object_params = array(
1837
            'name' => $field[ 'name' ], // The name of the field