Code Duplication    Length = 11-11 lines in 2 locations

classes/PodsForm.php 2 locations

@@ 335-345 (lines=11) @@
332
     *
333
     * @since 2.0
334
     */
335
    protected static function field_db( $name, $value = null, $options = null ) {
336
        $form_field_type = self::$field_type;
337
338
        ob_start();
339
340
        pods_view( PODS_DIR . 'ui/fields/_db.php', compact( array_keys( get_defined_vars() ) ) );
341
342
        $output = ob_get_clean();
343
344
        return apply_filters( 'pods_form_ui_field_db', $output, $name, $value, $options );
345
    }
346
347
    /**
348
     * Output a hidden field
@@ 350-360 (lines=11) @@
347
    /**
348
     * Output a hidden field
349
     */
350
    protected static function field_hidden( $name, $value = null, $options = null ) {
351
        $form_field_type = self::$field_type;
352
353
        ob_start();
354
355
        pods_view( PODS_DIR . 'ui/fields/_hidden.php', compact( array_keys( get_defined_vars() ) ) );
356
357
        $output = ob_get_clean();
358
359
        return apply_filters( 'pods_form_ui_field_hidden', $output, $name, $value, $options );
360
    }
361
362
	/**
363
	 * Returns a submit button, with provided text and appropriate class, copied from WP Core for use on the frontend