Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsForm.php 2 locations

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