Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 4728-4733 (lines=6) @@
4725
							false
4726
						);
4727
						$messageList = $_sR['match']->ids;
4728
						if (count($messageListForToggle)>0)
4729
						{
4730
							$flag2set = (strtolower($_flag));
4731
							if(Mail::$debug) error_log(__METHOD__.__LINE__." toggle un$_flag -> $flag2set ".array2string($filter2toggle).array2string($messageListForToggle));
4732
							$this->mail_bo->flagMessages($flag2set, $messageListForToggle,$folder);
4733
						}
4734
						if (count($messageList)>0)
4735
						{
4736
							$flag2set = 'un'.$_flag;
@@ 4734-4739 (lines=6) @@
4731
							if(Mail::$debug) error_log(__METHOD__.__LINE__." toggle un$_flag -> $flag2set ".array2string($filter2toggle).array2string($messageListForToggle));
4732
							$this->mail_bo->flagMessages($flag2set, $messageListForToggle,$folder);
4733
						}
4734
						if (count($messageList)>0)
4735
						{
4736
							$flag2set = 'un'.$_flag;
4737
							if(Mail::$debug) error_log(__METHOD__.__LINE__." $_flag -> $flag2set ".array2string($filter).array2string($messageList));
4738
							$this->mail_bo->flagMessages($flag2set, $messageList,$folder);
4739
						}
4740
						$alreadyFlagged=true;
4741
					}
4742
					elseif (!empty($filter) &&