Code Duplication    Length = 11-11 lines in 2 locations

classes/PodsForm.php 2 locations

@@ 314-324 (lines=11) @@
311
     *
312
     * @since 2.0
313
     */
314
    protected static function field_db( $name, $value = null, $options = null ) {
315
        $form_field_type = self::$field_type;
316
317
        ob_start();
318
319
        pods_view( PODS_DIR . 'ui/fields/_db.php', compact( array_keys( get_defined_vars() ) ) );
320
321
        $output = ob_get_clean();
322
323
        return apply_filters( 'pods_form_ui_field_db', $output, $name, $value, $options );
324
    }
325
326
    /**
327
     * Output a hidden field
@@ 329-339 (lines=11) @@
326
    /**
327
     * Output a hidden field
328
     */
329
    protected static function field_hidden( $name, $value = null, $options = null ) {
330
        $form_field_type = self::$field_type;
331
332
        ob_start();
333
334
        pods_view( PODS_DIR . 'ui/fields/_hidden.php', compact( array_keys( get_defined_vars() ) ) );
335
336
        $output = ob_get_clean();
337
338
        return apply_filters( 'pods_form_ui_field_hidden', $output, $name, $value, $options );
339
    }
340
341
	/**
342
	 * Returns a submit button, with provided text and appropriate class, copied from WP Core for use on the frontend