Code Duplication    Length = 2-2 lines in 2 locations

classes/fields/pick.php 2 locations

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