original_string: protected function _toUpdate($mailbox, $type, $data)
      {
          if (!isset($this->_update[$mailbox])) {
              $this->_update[$mailbox] = array(
                  'add' => array(),
                  'slice' => array()
              );
          }
  
          $this->_update[$mailbox][$type] = ($type == 'slicemap')
              ? $data
              : array_merge($this->_update[$mailbox][$type], $data);
      }
code: protected function _toUpdate($mailbox, $type, $data)
      {
          if (!isset($this->_update[$mailbox])) {
              $this->_update[$mailbox] = array(
                  'add' => array(),
                  'slice' => array()
              );
          }
  
          $this->_update[$mailbox][$type] = ($type == 'slicemap')
              ? $data
              : array_merge($this->_update[$mailbox][$type], $data);
      }
code_tokens: protected function _toUpdate ( $ mailbox , $ type , $ data ) { if ( ! isset ( $ this -> _update [ $ mailbox ] ) ) { $ this -> _update [ $ mailbox ] = array ( 'add' => array ( ) , 'slice' => array ( ) ) ; } $ this -> _update [ $ mailbox ] [ $ type ] = ( $ type == 'slicemap' ) ? $ data : array_merge ( $ this -> _update [ $ mailbox ] [ $ type ] , $ data ) ; }
docstring: Add update entry for a mailbox.
  
  @param string $mailbox  The mailbox.
  @param string $type     'add', 'slice', or 'slicemap'.
  @param mixed $data      The data to update.
docstring_tokens: Add update entry for a mailbox .