Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 4617-4622 (lines=6) @@
4614
							false
4615
						);
4616
						$messageList = $_sR['match']->ids;
4617
						if (count($messageListForToggle)>0)
4618
						{
4619
							$flag2set = (strtolower($_flag));
4620
							if(Mail::$debug) error_log(__METHOD__.__LINE__." toggle un$_flag -> $flag2set ".array2string($filter2toggle).array2string($messageListForToggle));
4621
							$this->mail_bo->flagMessages($flag2set, $messageListForToggle,$folder);
4622
						}
4623
						if (count($messageList)>0)
4624
						{
4625
							$flag2set = 'un'.$_flag;
@@ 4623-4628 (lines=6) @@
4620
							if(Mail::$debug) error_log(__METHOD__.__LINE__." toggle un$_flag -> $flag2set ".array2string($filter2toggle).array2string($messageListForToggle));
4621
							$this->mail_bo->flagMessages($flag2set, $messageListForToggle,$folder);
4622
						}
4623
						if (count($messageList)>0)
4624
						{
4625
							$flag2set = 'un'.$_flag;
4626
							if(Mail::$debug) error_log(__METHOD__.__LINE__." $_flag -> $flag2set ".array2string($filter).array2string($messageList));
4627
							$this->mail_bo->flagMessages($flag2set, $messageList,$folder);
4628
						}
4629
						$alreadyFlagged=true;
4630
					}
4631
					elseif (!empty($filter) &&