Skip to content

Commit

Permalink
Tweak comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Apr 10, 2016
1 parent c26ede7 commit 467fbc8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions framework/ActiveSync/lib/Horde/ActiveSync/Request/Sync.php
Expand Up @@ -473,7 +473,7 @@ protected function _handle()

if ($statusCode == self::STATUS_SUCCESS) {

// Send server changes to client
// Server changes
if ($statusCode == self::STATUS_SUCCESS &&
empty($forceChanges) &&
!empty($collection['getchanges'])) {
Expand Down Expand Up @@ -516,7 +516,7 @@ protected function _handle()

$this->_encoder->startTag(Horde_ActiveSync::SYNC_REPLIES);

// Output any SYNC_MODIFY failures
// SYNC_MODIFY failures
if (!empty($collection['importfailures'])) {
foreach ($collection['importfailures'] as $id => $reason) {
$this->_encoder->startTag(Horde_ActiveSync::SYNC_MODIFY);
Expand All @@ -537,7 +537,7 @@ protected function _handle()
}
}

// Output server IDs for new items we received and added from client
// Server IDs for new items we received from client
if (!empty($collection['clientids'])) {
foreach ($collection['clientids'] as $clientid => $serverid) {
if ($serverid) {
Expand Down Expand Up @@ -568,7 +568,7 @@ protected function _handle()
}
}

// Output any errors from missing messages in REMOVE requests.
// Errors from missing messages in REMOVE requests.
if (!empty($collection['missing'])) {
foreach ($collection['missing'] as $uid) {
$this->_encoder->startTag(Horde_ActiveSync::SYNC_REMOVE);
Expand All @@ -583,7 +583,6 @@ protected function _handle()
}

if (!empty($collection['fetchids'])) {
// Output any FETCH requests
foreach ($collection['fetchids'] as $fetch_id) {
try {
$data = $this->_driver->fetch($collection['serverid'], $fetch_id, $collection);
Expand Down Expand Up @@ -619,7 +618,7 @@ protected function _handle()
$this->_encoder->endTag();
}

// Save the sync state for the next time
// Save state
if (!empty($collection['newsynckey'])) {
$this->_state->setNewSyncKey($collection['newsynckey']);
$this->_state->save();
Expand Down

0 comments on commit 467fbc8

Please sign in to comment.