original_string: protected function _syncStatus($mailbox)
      {
          $status = $this->status(
              $mailbox,
              Horde_Imap_Client::STATUS_HIGHESTMODSEQ |
              Horde_Imap_Client::STATUS_MESSAGES |
              Horde_Imap_Client::STATUS_UIDNEXT_FORCE |
              Horde_Imap_Client::STATUS_UIDVALIDITY
          );
  
          $fields = array('uidnext', 'uidvalidity');
          if (empty($status['highestmodseq'])) {
              $fields[] = 'messages';
          } else {
              $fields[] = 'highestmodseq';
          }
  
          $out = array();
          $sync_map = array_flip(Horde_Imap_Client_Data_Sync::$map);
  
          foreach ($fields as $val) {
              $out[$sync_map[$val]] = $status[$val];
          }
  
          return array_filter($out);
      }
code: protected function _syncStatus($mailbox)
      {
          $status = $this->status(
              $mailbox,
              Horde_Imap_Client::STATUS_HIGHESTMODSEQ |
              Horde_Imap_Client::STATUS_MESSAGES |
              Horde_Imap_Client::STATUS_UIDNEXT_FORCE |
              Horde_Imap_Client::STATUS_UIDVALIDITY
          );
  
          $fields = array('uidnext', 'uidvalidity');
          if (empty($status['highestmodseq'])) {
              $fields[] = 'messages';
          } else {
              $fields[] = 'highestmodseq';
          }
  
          $out = array();
          $sync_map = array_flip(Horde_Imap_Client_Data_Sync::$map);
  
          foreach ($fields as $val) {
              $out[$sync_map[$val]] = $status[$val];
          }
  
          return array_filter($out);
      }
code_tokens: protected function _syncStatus ( $ mailbox ) { $ status = $ this -> status ( $ mailbox , Horde_Imap_Client :: STATUS_HIGHESTMODSEQ | Horde_Imap_Client :: STATUS_MESSAGES | Horde_Imap_Client :: STATUS_UIDNEXT_FORCE | Horde_Imap_Client :: STATUS_UIDVALIDITY ) ; $ fields = array ( 'uidnext' , 'uidvalidity' ) ; if ( empty ( $ status [ 'highestmodseq' ] ) ) { $ fields [ ] = 'messages' ; } else { $ fields [ ] = 'highestmodseq' ; } $ out = array ( ) ; $ sync_map = array_flip ( Horde_Imap_Client_Data_Sync :: $ map ) ; foreach ( $ fields as $ val ) { $ out [ $ sync_map [ $ val ] ] = $ status [ $ val ] ; } return array_filter ( $ out ) ; }
docstring: Return the current mailbox synchronization status.
  
  @param mixed $mailbox  A mailbox. Either a Horde_Imap_Client_Mailbox
  object or a string (UTF-8).
  
  @return array  An array with status data. (This data is not guaranteed
  to have any specific format).
docstring_tokens: Return the current mailbox synchronization status .