Code Duplication    Length = 2-2 lines in 2 locations

mod/gc_mobile_api/models/user.php 1 location

@@ 483-484 (lines=2) @@
480
		if ($portfolio->access_id == ACCESS_PUBLIC || $portfolio->access_id == ACCESS_LOGGED_IN || ($friends && $portfolio->access_id == ACCESS_FRIENDS)) {
481
			$user['portfolio']['item_'.$i]['title'] = $portfolio->title;
482
			$user['portfolio']['item_'.$i]['link'] = $portfolio->link;
483
			if ($portfolio->datestamped == "on") {
484
				$user['portfolio']['item_'.$i]['date'] = $portfolio->publishdate;
485
			}
486
			$user['portfolio']['item_'.$i]['description'] = $portfolio->description;
487
		}

mod/gc_api/lib/profile.php 1 location

@@ 277-278 (lines=2) @@
274
		if ($portfolio->access_id == 2) {
275
			$user['portfolio']['item_'.$i]['title'] = $portfolio->title;
276
			$user['portfolio']['item_'.$i]['link'] = $portfolio->link;
277
			if ($portfolio->datestamped == "on") {
278
				$user['portfolio']['item_'.$i]['date'] = $portfolio->publishdate;
279
			}
280
			$user['portfolio']['item_'.$i]['description'] = $portfolio->description;
281
		}