Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsForm.php 2 locations

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