Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 2706-2711 (lines=6) @@
2703
                        $freebusyPairMember = $this->_duration_array( $fbMember );
2704
                    }
2705
                }
2706
                elseif(( 3 <= strlen( trim( $fbMember ))) &&    // string format duration
2707
                    ( in_array( $fbMember{0}, array( 'P', '+', '-' )))) {
2708
                    if( 'P' != $fbMember{0} )
2709
                        $fbmember = substr( $fbMember, 1 );
2710
                    $freebusyPairMember = $this->_duration_string( $fbMember );
2711
                }
2712
                elseif( 8 <= strlen( trim( $fbMember ))) { // text date ex. 2006-08-03 10:12:18
2713
                    $freebusyPairMember       = $this->_date_time_string( $fbMember, 7 );
2714
                    $freebusyPairMember['tz'] = 'Z';
@@ 3098-3103 (lines=6) @@
3095
                            else                                               // array format duration
3096
                                $inputab  = $this->_duration_array( $rPeriod );
3097
                        }
3098
                        elseif(( 3 <= strlen( trim( $rPeriod ))) &&          // string format duration
3099
                            ( in_array( $rPeriod{0}, array( 'P', '+', '-' )))) {
3100
                            if( 'P' != $rPeriod{0} )
3101
                                $rPeriod  = substr( $rPeriod, 1 );
3102
                            $inputab    = $this->_duration_string( $rPeriod );
3103
                        }
3104
                        elseif( 8 <= strlen( trim( $rPeriod )))              // text date ex. 2006-08-03 10:12:18
3105
                            $inputab    = $this->_date_time_string( $rPeriod, $parno );
3106
                        if(  isset( $input['params']['TZID'] ) ||