Code Duplication    Length = 5-5 lines in 2 locations

apps/federation/lib/BackgroundJob/GetSharedSecret.php 1 location

@@ 179-183 (lines=5) @@
176
177
		} catch (ClientException $e) {
178
			$status = $e->getCode();
179
			if ($status === Http::STATUS_FORBIDDEN) {
180
				$this->logger->info($target . ' refused to exchange a shared secret with you.', ['app' => 'federation']);
181
			} else {
182
				$this->logger->logException($e, ['app' => 'federation']);
183
			}
184
		} catch (\Exception $e) {
185
			$status = Http::STATUS_INTERNAL_SERVER_ERROR;
186
			$this->logger->logException($e, ['app' => 'federation']);

apps/federation/lib/BackgroundJob/RequestSharedSecret.php 1 location

@@ 177-181 (lines=5) @@
174
175
		} catch (ClientException $e) {
176
			$status = $e->getCode();
177
			if ($status === Http::STATUS_FORBIDDEN) {
178
				$this->logger->info($target . ' refused to ask for a shared secret.', ['app' => 'federation']);
179
			} else {
180
				$this->logger->logException($e, ['app' => 'federation']);
181
			}
182
		} catch (\Exception $e) {
183
			$status = Http::STATUS_INTERNAL_SERVER_ERROR;
184
			$this->logger->logException($e, ['app' => 'federation']);