- return array(
- Events::PREPARE => array('onApiPrepare', Events::W_EARLY),
- Events::RESPOND => array('onApiRespond', Events::W_MIDDLE),
- Events::EXCEPTION => array('onApiException', Events::W_EARLY),
- );
+ return [
+ Events::PREPARE => ['onApiPrepare', Events::W_EARLY],
+ Events::RESPOND => ['onApiRespond', Events::W_MIDDLE],
+ Events::EXCEPTION => ['onApiException', Events::W_EARLY],
+ ];