Code Duplication    Length = 7-9 lines in 3 locations

lib/Command/CirclesRemote.php 3 locations

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