Code Duplication    Length = 2-2 lines in 2 locations

classes/fields/pick.php 2 locations

@@ 1895-1896 (lines=2) @@
1892
            pods_error( __( 'Invalid field request', 'pods' ), PodsInit::$admin );
1893
        elseif ( 'pick' != $field[ 'type' ] || empty( $field[ 'table_info' ] ) )
1894
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1895
        elseif ( 'single' == pods_var( self::$type . '_format_type', $field ) && 'autocomplete' == pods_var( self::$type . '_format_single', $field ) )
1896
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1897
        elseif ( 'multi' == pods_var( self::$type . '_format_type', $field ) && 'autocomplete' == pods_var( self::$type . '_format_multi', $field ) )
1898
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1899
@@ 1897-1898 (lines=2) @@
1894
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1895
        elseif ( 'single' == pods_var( self::$type . '_format_type', $field ) && 'autocomplete' == pods_var( self::$type . '_format_single', $field ) )
1896
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1897
        elseif ( 'multi' == pods_var( self::$type . '_format_type', $field ) && 'autocomplete' == pods_var( self::$type . '_format_multi', $field ) )
1898
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1899
1900
        $object_params = array(
1901
            'name' => $field[ 'name' ], // The name of the field