Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

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