original_string: protected function prepareListReportEvent(array &$list)
      {
          foreach ($list as &$item) {
  
              $variables = array();
  
              if (!empty($item['data']['variables'])) {
                  $variables = $item['data']['variables'];
              }
  
              $item['created'] = $this->date($item['created']);
  
              $type = "event_{$item['type']}";
              $item['type'] = $this->text($type);
  
              if (!empty($item['translatable'])) {
                  $item['text'] = $this->text($item['text'], $variables);
              }
  
              $item['summary'] = $this->truncate($item['text']);
              $item['severity_text'] = $this->text($item['severity']);
          }
      }
code: protected function prepareListReportEvent(array &$list)
      {
          foreach ($list as &$item) {
  
              $variables = array();
  
              if (!empty($item['data']['variables'])) {
                  $variables = $item['data']['variables'];
              }
  
              $item['created'] = $this->date($item['created']);
  
              $type = "event_{$item['type']}";
              $item['type'] = $this->text($type);
  
              if (!empty($item['translatable'])) {
                  $item['text'] = $this->text($item['text'], $variables);
              }
  
              $item['summary'] = $this->truncate($item['text']);
              $item['severity_text'] = $this->text($item['severity']);
          }
      }
code_tokens: protected function prepareListReportEvent ( array & $ list ) { foreach ( $ list as & $ item ) { $ variables = array ( ) ; if ( ! empty ( $ item [ 'data' ] [ 'variables' ] ) ) { $ variables = $ item [ 'data' ] [ 'variables' ] ; } $ item [ 'created' ] = $ this -> date ( $ item [ 'created' ] ) ; $ type = "event_{$item['type']}" ; $ item [ 'type' ] = $ this -> text ( $ type ) ; if ( ! empty ( $ item [ 'translatable' ] ) ) { $ item [ 'text' ] = $ this -> text ( $ item [ 'text' ] , $ variables ) ; } $ item [ 'summary' ] = $ this -> truncate ( $ item [ 'text' ] ) ; $ item [ 'severity_text' ] = $ this -> text ( $ item [ 'severity' ] ) ; } }
docstring: Prepare an array of system events
  @param array $list
docstring_tokens: Prepare an array of system events