Code Duplication    Length = 3-3 lines in 2 locations

lib/private/Files/Storage/Local.php 1 location

@@ 344-346 (lines=3) @@
341
			}
342
			$physicalItem = $physicalDir . '/' . $item;
343
344
			if (\strstr(\strtolower($item), \strtolower($query)) !== false) {
345
				$files[] = $dir . '/' . $item;
346
			}
347
			if (\is_dir($physicalItem)) {
348
				$files = \array_merge($files, $this->searchInDir($query, $dir . '/' . $item));
349
			}

lib/private/Files/Storage/Common.php 1 location

@@ 290-292 (lines=3) @@
287
				if (Filesystem::isIgnoredDir($item)) {
288
					continue;
289
				}
290
				if (\strstr(\strtolower($item), \strtolower($query)) !== false) {
291
					$files[] = $dir . '/' . $item;
292
				}
293
				if ($this->is_dir($dir . '/' . $item)) {
294
					$files = \array_merge($files, $this->searchInDir($query, $dir . '/' . $item));
295
				}