Code Duplication    Length = 5-6 lines in 3 locations

lib/Command/CirclesRemote.php 3 locations

@@ 106-110 (lines=5) @@
103
		$host = $input->getArgument('host');
104
105
		$webfinger = $this->getWebfinger($host, Application::APP_SUBJECT);
106
		if ($input->getOption('all')) {
107
			$output->writeln('- Webfinger on <info>' . $host . '</info>');
108
			$output->writeln(json_encode($webfinger, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
109
			$output->writeln('');
110
		}
111
112
		if ($input->getOption('all')) {
113
			$circleLink = $this->extractLink(Application::APP_REL, $webfinger);
@@ 112-117 (lines=6) @@
109
			$output->writeln('');
110
		}
111
112
		if ($input->getOption('all')) {
113
			$circleLink = $this->extractLink(Application::APP_REL, $webfinger);
114
			$output->writeln('- Information about Circles app on <info>' . $host . '</info>');
115
			$output->writeln(json_encode($circleLink, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
116
			$output->writeln('');
117
		}
118
119
		$output->writeln('- Available services on <info>' . $host . '</info>');
120
		foreach ($webfinger->getLinks() as $link) {
@@ 203-208 (lines=6) @@
200
		);
201
		$output->writeln('');
202
203
		if ($input->getOption('all')) {
204
			$output->writeln('');
205
			$output->writeln('<info>### Complete report ###</info>');
206
			$output->writeln(json_encode($signedRequest, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
207
			$output->writeln('');
208
		}
209
210
		if ($remoteSignatory->getUid() !== $localSignatory->getUid()) {
211
			$remoteSignatory->setInstance($host);