Code Duplication    Length = 7-9 lines in 3 locations

lib/Command/CirclesRemote.php 3 locations

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