Code Duplication    Length = 7-7 lines in 2 locations

lib/Service/FederatedService.php 2 locations

@@ 211-217 (lines=7) @@
208
	 *
209
	 * @return string
210
	 */
211
	private function generateLinkRemoteURL($remote) {
212
		if (strpos($remote, 'http') !== 0) {
213
			$remote = 'https://' . $remote;
214
		}
215
216
		return rtrim($remote, '/') . '/index.php/apps/circles/circles/link/';
217
	}
218
219
	/**
220
	 * @param string $remote
@@ 224-230 (lines=7) @@
221
	 *
222
	 * @return string
223
	 */
224
	private function generatePayloadDeliveryURL($remote) {
225
		if (strpos($remote, 'http') !== 0) {
226
			$remote = 'http://' . $remote;
227
		}
228
229
		return rtrim($remote, '/') . '/index.php/apps/circles/circles/payload/';
230
	}
231
232
233
	/**