Code Duplication    Length = 7-7 lines in 2 locations

main/inc/lib/icalcreator/iCalcreator.class.php 2 locations

@@ 1414-1420 (lines=7) @@
1411
1412
                /* make attributes in array format */
1413
                $propattr = array();
1414
                foreach( $attr as $attribute ) {
1415
                    $attrsplit = explode( '=', $attribute, 2 );
1416
                    if( 1 < count( $attrsplit ))
1417
                        $propattr[$attrsplit[0]] = $attrsplit[1];
1418
                    else
1419
                        $propattr[] = $attribute;
1420
                }
1421
                /* update Property */
1422
                if( FALSE !== strpos( $line, ',' )) {
1423
                    $content  = explode( ',', $line );
@@ 6423-6429 (lines=7) @@
6420
            }
6421
            /* make attributes in array format */
6422
            $propattr = array();
6423
            foreach( $attr as $attribute ) {
6424
                $attrsplit = explode( '=', $attribute, 2 );
6425
                if( 1 < count( $attrsplit ))
6426
                    $propattr[$attrsplit[0]] = $attrsplit[1];
6427
                else
6428
                    $propattr[] = $attribute;
6429
            }
6430
            /* call setProperty( $propname.. . */
6431
            switch( $propname ) {
6432
                case 'ATTENDEE':