Code Duplication    Length = 5-5 lines in 3 locations

event.php 1 location

@@ 13-17 (lines=5) @@
10
11
include XOOPS_ROOT_PATH . '/include/comment_view.php';
12
13
if (!isset($_GET['event'])) {
14
    $eventId = 0;
15
} else {
16
    $eventId = (int)$_GET['event'];
17
}
18
$eventHandler          = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
19
$fileHandler           = xoops_getModuleHandler(_EXTCAL_CLS_FILE, _EXTCAL_MODULE);
20
$eventMemberHandler    = xoops_getModuleHandler(_EXTCAL_CLS_MEMBER, _EXTCAL_MODULE);

print.php 1 location

@@ 8-12 (lines=5) @@
5
6
include_once XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/calendar.php';
7
8
if (!isset($_GET['event'])) {
9
    $eventId = 0;
10
} else {
11
    $eventId = (int)$_GET['event'];
12
}
13
$eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
14
$event        = $eventHandler->objectToArray($eventHandler->getEvent($eventId), array('cat_id'));
15

edit_event.php 1 location

@@ 29-33 (lines=5) @@
26
$xoTheme->addScript('modules/extcal/include/ToolTips.js');
27
$xoTheme->addStylesheet('modules/extcal/assets/css/infobulle.css');
28
29
if (!isset($_GET['event'])) {
30
    $eventId = 0;
31
} else {
32
    $eventId = (int)$_GET['event'];
33
}
34
if (!isset($_GET['action'])) {
35
    $action = 'edit';
36
} else {