Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsForm.php 2 locations

@@ 523-526 (lines=4) @@
520
                $options[ 'class' ] = implode( ' ', $options[ 'class' ] );
521
522
            $options[ 'class' ] = (string) $options[ 'class' ];
523
            if ( isset( $attributes[ 'class' ] ) )
524
                $attributes[ 'class' ] = $attributes[ 'class' ] . ' ' . $options[ 'class' ];
525
            else
526
                $attributes[ 'class' ] = $options[ 'class' ];
527
528
            $attributes[ 'class' ] = trim( $attributes[ 'class' ] );
529
        }
@@ 532-535 (lines=4) @@
529
        }
530
531
        if ( !empty( $classes ) ) {
532
            if ( isset( $attributes[ 'class' ] ) )
533
                $attributes[ 'class' ] = $attributes[ 'class' ] . ' ' . $classes;
534
            else
535
                $attributes[ 'class' ] = $classes;
536
        }
537
538
        if ( isset( $options[ 'placeholder' ] ) && !empty( $options[ 'placeholder' ] ) ) {