original_string: public function event()
      {
          $options = array(
              'limit' => array(0, $this->config->get('dashboard_limit', 10))
          );
  
          $events = (array) $this->report->getList($options);
  
          foreach ($events as &$event) {
              $variables = empty($event['data']['variables']) ? array() : (array) $event['data']['variables'];
              $message = empty($event['translatable']) ? $event['text'] : $this->translation->text($event['text'], $variables);
              $event['message'] = strip_tags($message);
          }
  
          return $events;
      }
code: public function event()
      {
          $options = array(
              'limit' => array(0, $this->config->get('dashboard_limit', 10))
          );
  
          $events = (array) $this->report->getList($options);
  
          foreach ($events as &$event) {
              $variables = empty($event['data']['variables']) ? array() : (array) $event['data']['variables'];
              $message = empty($event['translatable']) ? $event['text'] : $this->translation->text($event['text'], $variables);
              $event['message'] = strip_tags($message);
          }
  
          return $events;
      }
code_tokens: public function event ( ) { $ options = array ( 'limit' => array ( 0 , $ this -> config -> get ( 'dashboard_limit' , 10 ) ) ) ; $ events = ( array ) $ this -> report -> getList ( $ options ) ; foreach ( $ events as & $ event ) { $ variables = empty ( $ event [ 'data' ] [ 'variables' ] ) ? array ( ) : ( array ) $ event [ 'data' ] [ 'variables' ] ; $ message = empty ( $ event [ 'translatable' ] ) ? $ event [ 'text' ] : $ this -> translation -> text ( $ event [ 'text' ] , $ variables ) ; $ event [ 'message' ] = strip_tags ( $ message ) ; } return $ events ; }
docstring: Returns an array of recent events
  @return array
docstring_tokens: Returns an array of recent events