Code Duplication    Length = 8-8 lines in 2 locations

apps/dav/lib/Files/FileSearchBackend.php 2 locations

@@ 220-227 (lines=8) @@
217
		switch ($order->property->dataType) {
218
			case SearchPropertyDefinition::DATATYPE_STRING:
219
				return strcmp($a, $b);
220
			case SearchPropertyDefinition::DATATYPE_BOOLEAN:
221
				if ($a === $b) {
222
					return 0;
223
				}
224
				if ($a === false) {
225
					return -1;
226
				}
227
				return 1;
228
			default:
229
				if ($a === $b) {
230
					return 0;
@@ 228-235 (lines=8) @@
225
					return -1;
226
				}
227
				return 1;
228
			default:
229
				if ($a === $b) {
230
					return 0;
231
				}
232
				if ($a < $b) {
233
					return -1;
234
				}
235
				return 1;
236
		}
237
	}
238