Code Duplication    Length = 8-8 lines in 3 locations

mod/pages/actions/pages/edit.php 1 location

@@ 110-117 (lines=8) @@
107
108
system_message(elgg_echo('pages:saved'));
109
110
if ($new_page) {
111
	elgg_create_river_item([
112
		'view' => 'river/object/page/create',
113
		'action_type' => 'create',
114
		'subject_guid' => elgg_get_logged_in_user_guid(),
115
		'object_guid' => $page->guid,
116
	]);
117
}
118
119
forward($page->getURL());
120

mod/bookmarks/actions/bookmarks/save.php 1 location

@@ 73-80 (lines=8) @@
70
	system_message(elgg_echo('bookmarks:save:success'));
71
72
	//add to river only if new
73
	if ($new) {
74
		elgg_create_river_item([
75
			'view' => 'river/object/bookmarks/create',
76
			'action_type' => 'create',
77
			'subject_guid' => elgg_get_logged_in_user_guid(),
78
			'object_guid' => $bookmark->getGUID(),
79
		]);
80
	}
81
82
	forward($bookmark->getURL());
83
} else {

engine/classes/Elgg/Database/Seeds/Seeding.php 1 location

@@ 693-700 (lines=8) @@
690
691
		$tmp->delete();
692
693
		if ($result && $entity instanceof ElggUser) {
694
			elgg_create_river_item([
695
				'view' => 'river/user/default/profileiconupdate',
696
				'action_type' => 'update',
697
				'subject_guid' => $entity->guid,
698
				'object_guid' => $entity->guid,
699
			]);
700
		}
701
702
		return $result;
703
	}