Code Duplication    Length = 9-9 lines in 2 locations

modules/links.php 1 location

@@ 193-201 (lines=9) @@
190
			'',
191
		);
192
193
		foreach ($links_urls as $i => $url)
194
		{
195
			$links[] = array(
196
				'title' 		=> $links_titles[$i],
197
				'url'			=> $links_urls[$i],
198
				'type'			=> $links_types[$i],
199
				'permission'	=> $links_permissions[$i],
200
			);
201
		}
202
203
		$board3_menu_array = json_encode($links);
204
		set_portal_config('board3_links_array_' . $module_id, $board3_menu_array);

modules/main_menu.php 1 location

@@ 248-256 (lines=9) @@
245
			'',
246
		);
247
248
		foreach ($links_urls as $i => $url)
249
		{
250
			$links[] = array(
251
				'title' 		=> $links_titles[$i],
252
				'url'			=> $links_urls[$i],
253
				'type'			=> $links_types[$i],
254
				'permission'	=> $links_permissions[$i],
255
			);
256
		}
257
258
		$board3_menu_array = json_encode($links);
259
		set_portal_config('board3_menu_array_' . $module_id, $board3_menu_array);