Code Duplication    Length = 14-14 lines in 2 locations

calendar/inc/class.calendar_so.inc.php 2 locations

@@ 2713-2726 (lines=14) @@
2710
				if ($expand_all && $day->format('U') != $remote_day->format('U'))
2711
				{
2712
					$tz_exception = true;
2713
					if ($filter != 'map' && $filter != 'tz_map')
2714
					{
2715
						// timezone pseudo exception
2716
						//error_log(__FILE__.'['.__LINE__.'] '.__METHOD__.
2717
						//	'() tz exception: ' . $day->format('Ymd\THis'));
2718
						if ($remote)
2719
						{
2720
							$days[$locts]= $remts;
2721
						}
2722
						else
2723
						{
2724
							$days[$remts]= $locts;
2725
						}
2726
					}
2727
				}
2728
				if ($filter != 'tz_map' && (!$tz_exception || $filter == 'tz_only') &&
2729
					$this->status_pseudo_exception($event['id'], $locts, $filter))
@@ 2740-2753 (lines=14) @@
2737
						{
2738
								unset($days[$remts]);
2739
						}
2740
						else
2741
						{
2742
							if ($filter != 'map')
2743
							{
2744
								if ($remote)
2745
								{
2746
									$days[$locts]= $remts;
2747
								}
2748
								else
2749
								{
2750
									$days[$remts]= $locts;
2751
								}
2752
							}
2753
						}
2754
					}
2755
					elseif ($filter != 'map')
2756
					{