Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 306-308 (lines=3) @@
303
				if (count($operator->arguments) !== 2) {
304
					throw new \InvalidArgumentException('Invalid number of arguments for ' . $trimmedType . ' operation');
305
				}
306
				if (!($operator->arguments[0] instanceof SearchPropertyDefinition)) {
307
					throw new \InvalidArgumentException('Invalid argument 1 for ' . $trimmedType . ' operation, expected property');
308
				}
309
				if (!($operator->arguments[1] instanceof Literal)) {
310
					throw new \InvalidArgumentException('Invalid argument 2 for ' . $trimmedType . ' operation, expected literal');
311
				}
@@ 309-311 (lines=3) @@
306
				if (!($operator->arguments[0] instanceof SearchPropertyDefinition)) {
307
					throw new \InvalidArgumentException('Invalid argument 1 for ' . $trimmedType . ' operation, expected property');
308
				}
309
				if (!($operator->arguments[1] instanceof Literal)) {
310
					throw new \InvalidArgumentException('Invalid argument 2 for ' . $trimmedType . ' operation, expected literal');
311
				}
312
				return new SearchComparison($trimmedType, $this->mapPropertyNameToColumn($operator->arguments[0]), $this->castValue($operator->arguments[0], $operator->arguments[1]->value));
313
			case Operator::OPERATION_IS_COLLECTION:
314
				return new SearchComparison('eq', 'mimetype', ICacheEntry::DIRECTORY_MIMETYPE);