Code Duplication    Length = 12-12 lines in 2 locations

application/libraries/Todo.php 2 locations

@@ 239-250 (lines=12) @@
236
	 * Generates select options for categories when adding a new task
237
	 * @return string
238
	 */
239
	public function get_category_select()
240
	{
241
		$select_array = $this->get_category_list();
242
		$html = '';
243
244
		foreach($select_array as $r)
245
		{
246
			$html .= T4.'<option value="'.$r['id'].'">' . $r['title'] . '</option>'. "\n";
247
		}
248
249
		return $html;
250
	}
251
252
	// --------------------------------------------------------------------------
253
@@ 284-295 (lines=12) @@
281
	 * @param int $user_id
282
	 * @return string
283
	 */
284
	public function get_group_select($user_id)
285
	{
286
		$select_array = $this->get_groups($user_id);
287
		$html = '';
288
289
		foreach($select_array as $r)
290
		{
291
			$html .= T4.'<option value="'.$r['id'].'">' . $r['name'] . '</option>'. "\n";
292
		}
293
294
		return $html;
295
	}
296
297
	// --------------------------------------------------------------------------
298