Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 1425-1431 (lines=7) @@
1422
                if( FALSE !== strpos( $line, ',' )) {
1423
                    $content  = explode( ',', $line );
1424
                    $clen     = count( $content );
1425
                    for( $cix = 0; $cix < $clen; $cix++ ) {
1426
                        if( "\\" == substr( $content[$cix], -1 )) {
1427
                            $content[$cix] .= ','.$content[$cix + 1];
1428
                            unset( $content[$cix + 1] );
1429
                            $cix++;
1430
                        }
1431
                    }
1432
                    if( 1 < count( $content )) {
1433
                        foreach( $content as $cix => $contentPart )
1434
                            $content[$cix] = $toolbox->_strunrep( $contentPart );
@@ 6445-6451 (lines=7) @@
6442
                    if( FALSE !== strpos( $line, ',' )) {
6443
                        $content  = explode( ',', $line );
6444
                        $clen     = count( $content );
6445
                        for( $cix = 0; $cix < $clen; $cix++ ) {
6446
                            if( "\\" == substr($content[$cix], -1)) {
6447
                                $content[$cix] .= ','.$content[$cix + 1];
6448
                                unset($content[$cix + 1]);
6449
                                $cix++;
6450
                            }
6451
                        }
6452
                        if( 1 < count( $content )) {
6453
                            $content = array_values( $content );
6454
                            foreach( $content as $cix => $contentPart )