Code Duplication    Length = 5-6 lines in 3 locations

lib/Command/CirclesRemote.php 3 locations

@@ 163-167 (lines=5) @@
160
		$remoteType = $this->getRemoteType();
161
162
		$webfinger = $this->getWebfinger($host, Application::APP_SUBJECT);
163
		if ($this->input->getOption('all')) {
164
			$this->output->writeln('- Webfinger on <info>' . $host . '</info>');
165
			$this->output->writeln(json_encode($webfinger, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
166
			$this->output->writeln('');
167
		}
168
169
		if ($this->input->getOption('all')) {
170
			$circleLink = $this->extractLink(Application::APP_REL, $webfinger);
@@ 169-174 (lines=6) @@
166
			$this->output->writeln('');
167
		}
168
169
		if ($this->input->getOption('all')) {
170
			$circleLink = $this->extractLink(Application::APP_REL, $webfinger);
171
			$this->output->writeln('- Information about Circles app on <info>' . $host . '</info>');
172
			$this->output->writeln(json_encode($circleLink, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
173
			$this->output->writeln('');
174
		}
175
176
		$this->output->writeln('- Available services on <info>' . $host . '</info>');
177
		foreach ($webfinger->getLinks() as $link) {
@@ 262-267 (lines=6) @@
259
		);
260
		$this->output->writeln('');
261
262
		if ($this->input->getOption('all')) {
263
			$this->output->writeln('');
264
			$this->output->writeln('<info>### Complete report ###</info>');
265
			$this->output->writeln(json_encode($signedRequest, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
266
			$this->output->writeln('');
267
		}
268
269
		if ($remoteSignatory->getUid() !== $localSignatory->getUid()) {
270
			$remoteSignatory->setInstance($host);