Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 1493-1502 (lines=10) @@
1490
                break;
1491
        }
1492
        $calendar .= $this->createXprop();
1493
        foreach( $this->components as $component ) {
1494
            if( empty( $component )) continue;
1495
            if( '' >= $component->getConfig( 'language'))
1496
                $component->setConfig( 'language',  $this->getConfig( 'language' ));
1497
            $component->setConfig( 'allowEmpty',  $this->getConfig( 'allowEmpty' ));
1498
            $component->setConfig( 'nl',          $this->getConfig( 'nl' ));
1499
            $component->setConfig( 'unique_id',   $this->getConfig( 'unique_id' ));
1500
            $component->setConfig( 'format',      $this->getConfig( 'format' ));
1501
            $calendar .= $component->createComponent( $this->xcaldecl );
1502
        }
1503
        if(( 0 < count( $this->xcaldecl )) && ( 'xcal' == $this->format )) { // xCal only
1504
            $calendarInit1 .= $this->nl.'['.$this->nl;
1505
            $old_xcaldecl = array();
@@ 6785-6794 (lines=10) @@
6782
     */
6783
    function createSubComponent() {
6784
        $output = null;
6785
        foreach( $this->components as $component ) {
6786
            if( empty( $component )) continue;
6787
            if( '' >= $component->getConfig( 'language'))
6788
                $component->setConfig( 'language',  $this->getConfig( 'language' ));
6789
            $component->setConfig( 'allowEmpty',  $this->getConfig( 'allowEmpty' ));
6790
            $component->setConfig( 'nl',          $this->getConfig( 'nl' ));
6791
            $component->setConfig( 'unique_id',   $this->getConfig( 'unique_id' ));
6792
            $component->setConfig( 'format',      $this->getConfig( 'format' ));
6793
            $output .= $component->createComponent( $this->xcaldecl );
6794
        }
6795
        return $output;
6796
    }
6797
    /********************************************************************************/