Code Duplication    Length = 7-9 lines in 3 locations

lib/Command/CirclesRemote.php 3 locations

@@ 281-289 (lines=9) @@
278
					. ' is already known with this current identity</info>'
279
				);
280
281
				if ($remoteSignatory->getType() !== $stored->getType()) {
282
					$this->output->writeln(
283
						'- updating type from ' . $stored->getType() . ' to '
284
						. $remoteSignatory->getType()
285
					);
286
					$this->remoteStreamService->update(
287
						$remoteSignatory, RemoteStreamService::UPDATE_TYPE
288
					);
289
				}
290
291
				if ($remoteSignatory->getInstance() !== $stored->getInstance()) {
292
					$this->output->writeln(
@@ 291-299 (lines=9) @@
288
					);
289
				}
290
291
				if ($remoteSignatory->getInstance() !== $stored->getInstance()) {
292
					$this->output->writeln(
293
						'- updating host from ' . $stored->getInstance() . ' to '
294
						. $remoteSignatory->getInstance()
295
					);
296
					$this->remoteStreamService->update(
297
						$remoteSignatory, RemoteStreamService::UPDATE_INSTANCE
298
					);
299
				}
300
				if ($remoteSignatory->getId() !== $stored->getId()) {
301
					$this->output->writeln(
302
						'- updating href/Id from ' . $stored->getId() . ' to '
@@ 300-306 (lines=7) @@
297
						$remoteSignatory, RemoteStreamService::UPDATE_INSTANCE
298
					);
299
				}
300
				if ($remoteSignatory->getId() !== $stored->getId()) {
301
					$this->output->writeln(
302
						'- updating href/Id from ' . $stored->getId() . ' to '
303
						. $remoteSignatory->getId()
304
					);
305
					$this->remoteStreamService->update($remoteSignatory, RemoteStreamService::UPDATE_HREF);
306
				}
307
308
			} catch (RemoteUidException $e) {
309
				$this->updateRemote($remoteSignatory);