Code Duplication    Length = 7-7 lines in 2 locations

mod/missions/actions/missions/application-form.php 1 location

@@ 265-271 (lines=7) @@
262
	if(!is_array($skill_list)) {
263
	    $skill_list = array_filter(array($skill_list));
264
	}
265
	if(!empty($skill_list)) {
266
	    foreach ($skill_list as $skill) {
267
	        $skill = get_entity($skill);
268
	        $content_applicant_en .= '<b>' . $skill->title . '</b>' . "<br>";
269
	        $content_applicant_fr .= '<b>' . $skill->title . '</b>' . "<br>";
270
	    }
271
	}
272
	
273
	// Sends the application via email and notification.
274
	$content_applicant_en .= elgg_view('output/url', array(

mod/gc_mobile_api/models/opportunity.php 1 location

@@ 510-516 (lines=7) @@
507
		if(!is_array($skill_list)) {
508
			$skill_list = array_filter(array($skill_list));
509
		}
510
		if(!empty($skill_list)) {
511
			foreach ($skill_list as $skill) {
512
				$skill = get_entity($skill);
513
				$content_applicant_en .= '<b>' . $skill->title . '</b>' . "<br>";
514
				$content_applicant_fr .= '<b>' . $skill->title . '</b>' . "<br>";
515
			}
516
		}
517
		
518
		// Sends the application via email and notification.
519
		$content_applicant_en .= elgg_view('output/url', array(