Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsForm.php 2 locations

@@ 546-549 (lines=4) @@
543
                $options[ 'class' ] = implode( ' ', $options[ 'class' ] );
544
545
            $options[ 'class' ] = (string) $options[ 'class' ];
546
            if ( isset( $attributes[ 'class' ] ) )
547
                $attributes[ 'class' ] = $attributes[ 'class' ] . ' ' . $options[ 'class' ];
548
            else
549
                $attributes[ 'class' ] = $options[ 'class' ];
550
551
            $attributes[ 'class' ] = trim( $attributes[ 'class' ] );
552
        }
@@ 555-558 (lines=4) @@
552
        }
553
554
        if ( !empty( $classes ) ) {
555
            if ( isset( $attributes[ 'class' ] ) )
556
                $attributes[ 'class' ] = $attributes[ 'class' ] . ' ' . $classes;
557
            else
558
                $attributes[ 'class' ] = $classes;
559
        }
560
561
        if ( isset( $options[ 'placeholder' ] ) && !empty( $options[ 'placeholder' ] ) ) {