Code Duplication    Length = 3-3 lines in 2 locations

programs/utilit/entry.class.php 2 locations

@@ 945-947 (lines=3) @@
942
	        
943
	        $type = $this->getPeriodType($period);
944
	        
945
	        if ('AM' === $days[$d]['type'] && 'PM' === $type) {
946
	            $days[$d]['type'] = 'AMPM';
947
	        }
948
	        
949
	        if ('PM' === $days[$d]['type'] && 'AM' === $type) {
950
	            $days[$d]['type'] = 'AMPM';
@@ 949-951 (lines=3) @@
946
	            $days[$d]['type'] = 'AMPM';
947
	        }
948
	        
949
	        if ('PM' === $days[$d]['type'] && 'AM' === $type) {
950
	            $days[$d]['type'] = 'AMPM';
951
	        }
952
	        
953
	        if (!isset($days[$d]['type'])) {
954
	            $days[$d]['type'] = $type;