Code Duplication    Length = 7-7 lines in 2 locations

lib/Service/FederatedService.php 2 locations

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