Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsForm.php 2 locations

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