Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsForm.php 2 locations

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