Code Duplication    Length = 2-2 lines in 2 locations

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

@@ 1155-1156 (lines=2) @@
1152
                return  1;
1153
        }
1154
        $c   = ( isset( $a->xprop['X-CURRENT-DTEND']['value'] )) ? $a->_date_time_string( $a->xprop['X-CURRENT-DTEND']['value'] ) : null;
1155
        if(     empty( $c ) && !empty( $a->dtend['value'] ))
1156
            $c = & $a->dtend['value'];
1157
        if(     empty( $c ) && isset( $a->xprop['X-CURRENT-DUE']['value'] ))
1158
            $c = $a->_date_time_string( $a->xprop['X-CURRENT-DUE']['value'] );
1159
        if(     empty( $c ) && !empty( $a->due['value'] ))
@@ 1159-1160 (lines=2) @@
1156
            $c = & $a->dtend['value'];
1157
        if(     empty( $c ) && isset( $a->xprop['X-CURRENT-DUE']['value'] ))
1158
            $c = $a->_date_time_string( $a->xprop['X-CURRENT-DUE']['value'] );
1159
        if(     empty( $c ) && !empty( $a->due['value'] ))
1160
            $c = & $a->due['value'];
1161
        if(     empty( $c ) && !empty( $a->duration['value'] ))
1162
            $c = $a->duration2date();
1163
        $d   = ( isset( $b->xprop['X-CURRENT-DTEND']['value'] )) ? $b->_date_time_string( $b->xprop['X-CURRENT-DTEND']['value'] ) : null;