Code Duplication    Length = 7-9 lines in 3 locations

lib/Command/CirclesRemote.php 3 locations

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