e107_handlers/event_class.php
Avoid deeply nested control flow statements. Open
Open
switch($data['method'])
{
//returns array('caption'=>'', 'text'=>'');
case 'form':
if(method_exists($class, "event_{$data['method']}"))
Suspicious array access to null
Open
Open
$text[$hook] = $ret;
- Exclude checks
Suspicious array access to null
Open
Open
$text[$hook][0] = $ret;
- Exclude checks
Returning type ?array|?array{0:}[]|?string
but triggerHook()
is declared to return array|string
Open
Open
return $text;
- Exclude checks
Argument 2 (default)
is false
but \e107::getRegistry()
takes null
defined at /code/e107_handlers/e107_class.php:865
Open
Open
$called = e107::getRegistry('core/cachedvars/admin_events_called', false);
- Exclude checks