Code Duplication    Length = 7-7 lines in 2 locations

lib/Service/FederatedService.php 2 locations

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