GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 12-17 lines in 3 locations

modules/communication/communication.model.php 3 locations

@@ 305-316 (lines=12) @@
302
	 * @param int $member_srl
303
	 * @return int
304
	 */
305
	function isAddedFriend($member_srl)
306
	{
307
		$logged_info = Context::get('logged_info');
308
309
		$args = new stdClass();
310
		$args->member_srl = $logged_info->member_srl;
311
		$args->target_srl = $member_srl;
312
		
313
		$output = executeQuery('communication.isAddedFriend', $args);
314
315
		return $output->data->count;
316
	}
317
318
	/**
319
	 * Get a group of friends
@@ 323-334 (lines=12) @@
320
	 * @param int $friend_group_srl
321
	 * @return object
322
	 */
323
	function getFriendGroupInfo($friend_group_srl)
324
	{
325
		$logged_info = Context::get('logged_info');
326
327
		$args = new stdClass();
328
		$args->member_srl = $logged_info->member_srl;
329
		$args->friend_group_srl = $friend_group_srl;
330
331
		$output = executeQuery('communication.getFriendGroup', $args);
332
		
333
		return $output->data;
334
	}
335
336
	/**
337
	 * Get a list of groups
@@ 340-356 (lines=17) @@
337
	 * Get a list of groups
338
	 * @return array
339
	 */
340
	function getFriendGroups()
341
	{
342
		$logged_info = Context::get('logged_info');
343
344
		$args = new stdClass();
345
		$args->member_srl = $logged_info->member_srl;
346
347
		$output = executeQueryArray('communication.getFriendGroups', $args);
348
349
		$group_list = $output->data;
350
		if(!$group_list)
351
		{
352
			return;
353
		}
354
		
355
		return $group_list;
356
	}
357
358
	/**
359
	 * check whether to be added in the friend list