Code Duplication    Length = 2-2 lines in 2 locations

classes/fields/pick.php 2 locations

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