Code Duplication    Length = 3-3 lines in 2 locations

apps/dav/lib/CalDAV/CalDavBackend.php 2 locations

@@ 1182-1184 (lines=3) @@
1179
			$componentType = $filters['comp-filters'][0]['name'];
1180
1181
			// Checking if we need post-filters
1182
			if (!$filters['prop-filters'] && !$filters['comp-filters'][0]['comp-filters'] && !$filters['comp-filters'][0]['time-range'] && !$filters['comp-filters'][0]['prop-filters']) {
1183
				$requirePostFilter = false;
1184
			}
1185
			// There was a time-range filter
1186
			if ($componentType === 'VEVENT' && isset($filters['comp-filters'][0]['time-range'])) {
1187
				$timeRange = $filters['comp-filters'][0]['time-range'];
@@ 1191-1193 (lines=3) @@
1188
1189
				// If start time OR the end time is not specified, we can do a
1190
				// 100% accurate mysql query.
1191
				if (!$filters['prop-filters'] && !$filters['comp-filters'][0]['comp-filters'] && !$filters['comp-filters'][0]['prop-filters'] && (!$timeRange['start'] || !$timeRange['end'])) {
1192
					$requirePostFilter = false;
1193
				}
1194
			}
1195
1196
		}