Code Duplication    Length = 6-6 lines in 2 locations

mail/inc/class.mail_ui.inc.php 2 locations

@@ 4604-4609 (lines=6) @@
4601
							false
4602
						);
4603
						$messageList = $_sR['match']->ids;
4604
						if (count($messageListForToggle)>0)
4605
						{
4606
							$flag2set = (strtolower($_flag));
4607
							if(Mail::$debug) error_log(__METHOD__.__LINE__." toggle un$_flag -> $flag2set ".array2string($filter2toggle).array2string($messageListForToggle));
4608
							$this->mail_bo->flagMessages($flag2set, $messageListForToggle,$folder);
4609
						}
4610
						if (count($messageList)>0)
4611
						{
4612
							$flag2set = 'un'.$_flag;
@@ 4610-4615 (lines=6) @@
4607
							if(Mail::$debug) error_log(__METHOD__.__LINE__." toggle un$_flag -> $flag2set ".array2string($filter2toggle).array2string($messageListForToggle));
4608
							$this->mail_bo->flagMessages($flag2set, $messageListForToggle,$folder);
4609
						}
4610
						if (count($messageList)>0)
4611
						{
4612
							$flag2set = 'un'.$_flag;
4613
							if(Mail::$debug) error_log(__METHOD__.__LINE__." $_flag -> $flag2set ".array2string($filter).array2string($messageList));
4614
							$this->mail_bo->flagMessages($flag2set, $messageList,$folder);
4615
						}
4616
						$alreadyFlagged=true;
4617
					}
4618
					elseif (!empty($filter) &&