Code Duplication    Length = 6-7 lines in 2 locations

classes/fields/wysiwyg.php 1 location

@@ 287-293 (lines=7) @@
284
            $field_type = 'tinymce';
285
        elseif ( 'cleditor' == pods_var( self::$type . '_editor', $options ) )
286
            $field_type = 'cleditor';
287
        else {
288
            // Support custom WYSIWYG integration
289
            do_action( 'pods_form_ui_field_wysiwyg_' . pods_var( self::$type . '_editor', $options ), $name, $value, $options, $pod, $id );
290
            do_action( 'pods_form_ui_field_wysiwyg', pods_var( self::$type . '_editor', $options ), $name, $value, $options, $pod, $id );
291
292
            return;
293
        }
294
295
        pods_view( PODS_DIR . 'ui/fields/' . $field_type . '.php', compact( array_keys( get_defined_vars() ) ) );
296
    }

classes/fields/file.php 1 location

@@ 364-369 (lines=6) @@
361
            else
362
                $field_type = 'media';
363
        }
364
        else {
365
            // Support custom File Uploader integration
366
            do_action( 'pods_form_ui_field_file_uploader_' . pods_var( self::$type . '_uploader', $options ), $name, $value, $options, $pod, $id );
367
            do_action( 'pods_form_ui_field_file_uploader', pods_var( self::$type . '_uploader', $options ), $name, $value, $options, $pod, $id );
368
            return;
369
        }
370
371
        pods_view( PODS_DIR . 'ui/fields/' . $field_type . '.php', compact( array_keys( get_defined_vars() ) ) );
372
    }