Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsForm.php 2 locations

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