@@ -172,8 +172,7 @@ |
||
| 172 | 172 | $this->logger->info(sprintf("Loading %s remote index...", $revision ? "r{$revision}" : 'latest')); |
| 173 | 173 | |
| 174 | 174 | $synchronization = $revision ? |
| 175 | - $this->getVaultLayout()->getSynchronization($revision) : |
|
| 176 | - $this->getVaultLayout()->getLastSynchronization(); |
|
| 175 | + $this->getVaultLayout()->getSynchronization($revision) : $this->getVaultLayout()->getLastSynchronization(); |
|
| 177 | 176 | |
| 178 | 177 | return $synchronization ? $synchronization->getIndex() : null; |
| 179 | 178 | } |
@@ -148,8 +148,7 @@ discard block |
||
| 148 | 148 | fclose($stream); |
| 149 | 149 | |
| 150 | 150 | $this->logger->info("Read {$index->count()} records for last local index"); |
| 151 | - } |
|
| 152 | - else |
|
| 151 | + } else |
|
| 153 | 152 | { |
| 154 | 153 | $this->logger->info("No last local index exists"); |
| 155 | 154 | } |
@@ -239,8 +238,7 @@ discard block |
||
| 239 | 238 | { |
| 240 | 239 | $newRevision = $newRevision ?: ($lastSynchronization->getRevision() + 1); |
| 241 | 240 | $remoteIndex = $lastSynchronization->getIndex(); |
| 242 | - } |
|
| 243 | - else |
|
| 241 | + } else |
|
| 244 | 242 | { |
| 245 | 243 | $newRevision = $newRevision ?: 1; |
| 246 | 244 | $remoteIndex = null; |