Code Duplication    Length = 7-9 lines in 3 locations

lib/Command/CirclesRemote.php 3 locations

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