Code Duplication    Length = 4-4 lines in 3 locations

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

@@ 2571-2574 (lines=4) @@
2568
        }
2569
        if( 0 >= count( $input['value'] ))
2570
            return FALSE;
2571
        if( 3 == $parno ) {
2572
            $input['params']['VALUE'] = 'DATE';
2573
            unset( $input['params']['TZID'] );
2574
        }
2575
        $this->_setMval( $this->exdate, $input['value'], $input['params'], FALSE, $index );
2576
        return TRUE;
2577
    }
@@ 3134-3137 (lines=4) @@
3131
            }
3132
            $input['value'][] = $inputa;
3133
        }
3134
        if( 3 == $parno ) {
3135
            $input['params']['VALUE'] = 'DATE';
3136
            unset( $input['params']['TZID'] );
3137
        }
3138
        $this->_setMval( $this->rdate, $input['value'], $input['params'], FALSE, $index );
3139
        return TRUE;
3140
    }
@@ 5326-5329 (lines=4) @@
5323
        elseif( 8 <= strlen( trim( $year ))) { // ex. 2006-08-03 10:12:18
5324
            if( $localtime ) unset ( $month['VALUE'], $month['TZID'] );
5325
            $input['params'] = $this->_setParams( $month, array( 'VALUE' => 'DATE-TIME' ));
5326
            if( isset( $input['params']['TZID'] )) {
5327
                $input['params']['VALUE'] = 'DATE-TIME';
5328
                $parno = 6;
5329
            }
5330
            $parno           = $this->_existRem( $input['params'], 'VALUE', 'DATE-TIME', 7, $parno );
5331
            $parno           = $this->_existRem( $input['params'], 'VALUE', 'DATE', 3, $parno, $parno );
5332
            $input['value']  = $this->_date_time_string( $year, $parno );