Code Duplication    Length = 6-7 lines in 3 locations

class/EventHandler.php 3 locations

@@ 390-395 (lines=6) @@
387
                break;
388
389
            case _EXTCAL_EVENTS_WEEK:
390
            case _EXTCAL_EVENTS_AGENDA_WEEK:
391
                $criteriaCompo = $this->_getEventWeekCriteria($day, $month, $year, $cat, $nbDays);
392
                if (!$extcalConfig['diplay_past_event_list']) {
393
                    $criteriaCompo->add( new \Criteria('event_end', time(), '>'));
394
                }
395
                break;
396
397
            case _EXTCAL_EVENTS_CALENDAR_MONTH:
398
                $criteriaCompo = $this->_getEventMonthCriteria($month, $year, $cat);
@@ 397-403 (lines=7) @@
394
                }
395
                break;
396
397
            case _EXTCAL_EVENTS_CALENDAR_MONTH:
398
                $criteriaCompo = $this->_getEventMonthCriteria($month, $year, $cat);
399
400
                if (!$extcalConfig['diplay_past_event_cal']) {
401
                    $criteriaCompo->add( new \Criteria('event_end', time(), '>'));
402
                }
403
                break;
404
405
            case _EXTCAL_EVENTS_MONTH:
406
                $criteriaCompo = $this->_getEventMonthCriteria($month, $year, $cat);
@@ 405-411 (lines=7) @@
402
                }
403
                break;
404
405
            case _EXTCAL_EVENTS_MONTH:
406
                $criteriaCompo = $this->_getEventMonthCriteria($month, $year, $cat);
407
408
                if (!$extcalConfig['diplay_past_event_list']) {
409
                    $criteriaCompo->add( new \Criteria('event_end', time(), '>'));
410
                }
411
                break;
412
413
            case _EXTCAL_EVENTS_DAY:
414
                $criteriaCompo = $this->_getEventDayCriteria($day, $month, $year, $cat);