Code Duplication    Length = 8-9 lines in 2 locations

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

@@ 1432-1439 (lines=8) @@
1429
                            $cix++;
1430
                        }
1431
                    }
1432
                    if( 1 < count( $content )) {
1433
                        foreach( $content as $cix => $contentPart )
1434
                            $content[$cix] = $toolbox->_strunrep( $contentPart );
1435
                        $this->setProperty( $propname, $content, $propattr );
1436
                        continue;
1437
                    }
1438
                    else
1439
                        $line = reset( $content );
1440
                    $line = $toolbox->_strunrep( $line );
1441
                }
1442
                $this->setProperty( $propname, trim( $line ), $propattr );
@@ 6452-6460 (lines=9) @@
6449
                                $cix++;
6450
                            }
6451
                        }
6452
                        if( 1 < count( $content )) {
6453
                            $content = array_values( $content );
6454
                            foreach( $content as $cix => $contentPart )
6455
                                $content[$cix] = $this->_strunrep( $contentPart );
6456
                            $this->setProperty( $propname, $content, $propattr );
6457
                            break;
6458
                        }
6459
                        else
6460
                            $line = reset( $content );
6461
                    }
6462
                //no break
6463
                case 'X-':