extcal_search()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 5
1
<?php
2
3
use XoopsModules\Extcal\{Helper,
4
    EventHandler
5
};
6
7
/**
8
 * @param $queryarray
9
 * @param $andor
10
 * @param $limit
11
 * @param $offset
12
 * @param $userid
13
 *
14
 * @return mixed
15
 */
16
function extcal_search($queryarray, $andor, $limit, $offset, $userid)
17
{
18
    global $xoopsUser;
19
20
    $eventHandler = Helper::getInstance()->getHandler(_EXTCAL_CLN_EVENT);
21
22
    return $eventHandler->getSearchEvent3($queryarray, $andor, $limit, $offset, $userid, $xoopsUser);
0 ignored issues
show
Bug introduced by
The method getSearchEvent3() does not exist on XoopsObjectHandler. It seems like you code against a sub-type of XoopsObjectHandler such as XoopsPersistableObjectHandler. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

22
    return $eventHandler->/** @scrutinizer ignore-call */ getSearchEvent3($queryarray, $andor, $limit, $offset, $userid, $xoopsUser);
Loading history...
23
}
24