original_string: protected function prepareResult(&$data, array $options)
      {
          if (!empty($options['unserialize']) && !empty($data)) {
              foreach ((array) $options['unserialize'] as $field) {
                  $data[$field] = empty($data[$field]) ? array() : unserialize($data[$field]);
              }
          }
      }
code: protected function prepareResult(&$data, array $options)
      {
          if (!empty($options['unserialize']) && !empty($data)) {
              foreach ((array) $options['unserialize'] as $field) {
                  $data[$field] = empty($data[$field]) ? array() : unserialize($data[$field]);
              }
          }
      }
code_tokens: protected function prepareResult ( & $ data , array $ options ) { if ( ! empty ( $ options [ 'unserialize' ] ) && ! empty ( $ data ) ) { foreach ( ( array ) $ options [ 'unserialize' ] as $ field ) { $ data [ $ field ] = empty ( $ data [ $ field ] ) ? array ( ) : unserialize ( $ data [ $ field ] ) ; } } }
docstring: Prepares a single result
  @param mixed $data
  @param array $options
docstring_tokens: Prepares a single result