Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsForm.php 2 locations

@@ 450-453 (lines=4) @@
447
                $options[ 'class' ] = implode( ' ', $options[ 'class' ] );
448
449
            $options[ 'class' ] = (string) $options[ 'class' ];
450
            if ( isset( $attributes[ 'class' ] ) )
451
                $attributes[ 'class' ] = $attributes[ 'class' ] . ' ' . $options[ 'class' ];
452
            else
453
                $attributes[ 'class' ] = $options[ 'class' ];
454
455
            $attributes[ 'class' ] = trim( $attributes[ 'class' ] );
456
        }
@@ 459-462 (lines=4) @@
456
        }
457
458
        if ( !empty( $classes ) ) {
459
            if ( isset( $attributes[ 'class' ] ) )
460
                $attributes[ 'class' ] = $attributes[ 'class' ] . ' ' . $classes;
461
            else
462
                $attributes[ 'class' ] = $classes;
463
        }
464
465
        if ( isset( $options[ 'placeholder' ] ) && !empty( $options[ 'placeholder' ] ) ) {