Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsForm.php 2 locations

@@ 531-534 (lines=4) @@
528
                $options[ 'class' ] = implode( ' ', $options[ 'class' ] );
529
530
            $options[ 'class' ] = (string) $options[ 'class' ];
531
            if ( isset( $attributes[ 'class' ] ) )
532
                $attributes[ 'class' ] = $attributes[ 'class' ] . ' ' . $options[ 'class' ];
533
            else
534
                $attributes[ 'class' ] = $options[ 'class' ];
535
536
            $attributes[ 'class' ] = trim( $attributes[ 'class' ] );
537
        }
@@ 540-543 (lines=4) @@
537
        }
538
539
        if ( !empty( $classes ) ) {
540
            if ( isset( $attributes[ 'class' ] ) )
541
                $attributes[ 'class' ] = $attributes[ 'class' ] . ' ' . $classes;
542
            else
543
                $attributes[ 'class' ] = $classes;
544
        }
545
546
        if ( isset( $options[ 'placeholder' ] ) && !empty( $options[ 'placeholder' ] ) ) {