Code Duplication    Length = 6-7 lines in 2 locations

classes/fields/wysiwyg.php 1 location

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

classes/fields/file.php 1 location

@@ 318-323 (lines=6) @@
315
            else
316
                $field_type = 'media';
317
        }
318
        else {
319
            // Support custom File Uploader integration
320
            do_action( 'pods_form_ui_field_file_uploader_' . pods_var( self::$type . '_uploader', $options ), $name, $value, $options, $pod, $id );
321
            do_action( 'pods_form_ui_field_file_uploader', pods_var( self::$type . '_uploader', $options ), $name, $value, $options, $pod, $id );
322
            return;
323
        }
324
325
        pods_view( PODS_DIR . 'ui/fields/' . $field_type . '.php', compact( array_keys( get_defined_vars() ) ) );
326
    }