Code Duplication    Length = 11-11 lines in 2 locations

classes/PodsForm.php 2 locations

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