Code Duplication    Length = 6-6 lines in 2 locations

classes/fields/avatar.php 1 location

@@ 195-200 (lines=6) @@
192
193
        if ( 'plupload' == pods_v( self::$type . '_uploader', $options ) )
194
            $field_type = 'plupload';
195
        elseif ( 'attachment' == pods_v( self::$type . '_uploader', $options ) ) {
196
            if ( !pods_version_check( 'wp', '3.5' ) || !is_admin() ) // @todo test frontend media modal
197
                $field_type = 'attachment';
198
            else
199
                $field_type = 'media';
200
        }
201
        else {
202
            // Support custom File Uploader integration
203
            do_action( 'pods_form_ui_field_avatar_uploader_' . pods_v( self::$type . '_uploader', $options ), $name, $value, $options, $pod, $id );

classes/fields/file.php 1 location

@@ 298-303 (lines=6) @@
295
            $field_type = 'plupload';
296
        elseif ( 'plupload' == pods_var( self::$type . '_uploader', $options ) )
297
            $field_type = 'plupload';
298
        elseif ( 'attachment' == pods_var( self::$type . '_uploader', $options ) ) {
299
            if ( !pods_version_check( 'wp', '3.5' ) || !is_admin() ) // @todo test frontend media modal
300
                $field_type = 'attachment';
301
            else
302
                $field_type = 'media';
303
        }
304
        else {
305
            // Support custom File Uploader integration
306
            do_action( 'pods_form_ui_field_file_uploader_' . pods_var( self::$type . '_uploader', $options ), $name, $value, $options, $pod, $id );