Code Duplication    Length = 2-2 lines in 3 locations

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

@@ 4121-4122 (lines=2) @@
4118
                    $attr1             = $this->intAttrDelimiter.'CN="'.$paramValue.'"';
4119
                    $CNattrExist       = TRUE;
4120
                }
4121
                elseif(( 'ALTREP'   == $paramKey ) && in_array( $paramKey, $ctrKeys ))
4122
                    $attr2            .= $this->intAttrDelimiter.'ALTREP="'.$paramValue.'"';
4123
                elseif(( 'DIR'      == $paramKey ) && in_array( $paramKey, $ctrKeys ))
4124
                    $attr2            .= $this->intAttrDelimiter.'DIR="'.$paramValue.'"';
4125
                elseif(( 'SENT-BY'  == $paramKey ) && in_array( $paramKey, $ctrKeys ))
@@ 4123-4124 (lines=2) @@
4120
                }
4121
                elseif(( 'ALTREP'   == $paramKey ) && in_array( $paramKey, $ctrKeys ))
4122
                    $attr2            .= $this->intAttrDelimiter.'ALTREP="'.$paramValue.'"';
4123
                elseif(( 'DIR'      == $paramKey ) && in_array( $paramKey, $ctrKeys ))
4124
                    $attr2            .= $this->intAttrDelimiter.'DIR="'.$paramValue.'"';
4125
                elseif(( 'SENT-BY'  == $paramKey ) && in_array( $paramKey, $ctrKeys ))
4126
                    $attr2            .= $this->intAttrDelimiter.'SENT-BY="MAILTO:'.$paramValue.'"';
4127
                else
@@ 4125-4126 (lines=2) @@
4122
                    $attr2            .= $this->intAttrDelimiter.'ALTREP="'.$paramValue.'"';
4123
                elseif(( 'DIR'      == $paramKey ) && in_array( $paramKey, $ctrKeys ))
4124
                    $attr2            .= $this->intAttrDelimiter.'DIR="'.$paramValue.'"';
4125
                elseif(( 'SENT-BY'  == $paramKey ) && in_array( $paramKey, $ctrKeys ))
4126
                    $attr2            .= $this->intAttrDelimiter.'SENT-BY="MAILTO:'.$paramValue.'"';
4127
                else
4128
                    $attr2            .= $this->intAttrDelimiter."$paramKey=$paramValue";
4129
            }