Code Duplication    Length = 8-8 lines in 2 locations

apps/files/lib/Command/ScanAppData.php 1 location

@@ 80-87 (lines=8) @@
77
			);
78
	}
79
80
	public function checkScanWarning($fullPath, OutputInterface $output) {
81
		$normalizedPath = basename(\OC\Files\Filesystem::normalizePath($fullPath));
82
		$path = basename($fullPath);
83
84
		if ($normalizedPath !== $path) {
85
			$output->writeln("\t<error>Entry \"" . $fullPath . '" will not be accessible due to incompatible encoding</error>');
86
		}
87
	}
88
89
	protected function scanFiles($verbose, OutputInterface $output) {
90
		try {

apps/files/lib/Command/Scan.php 1 location

@@ 114-121 (lines=8) @@
111
			);
112
	}
113
114
	public function checkScanWarning($fullPath, OutputInterface $output) {
115
		$normalizedPath = basename(\OC\Files\Filesystem::normalizePath($fullPath));
116
		$path = basename($fullPath);
117
118
		if ($normalizedPath !== $path) {
119
			$output->writeln("\t<error>Entry \"" . $fullPath . '" will not be accessible due to incompatible encoding</error>');
120
		}
121
	}
122
123
	protected function scanFiles($user, $path, $verbose, OutputInterface $output, $backgroundScan = false, $recursive = true, $homeOnly = false) {
124
		$connection = $this->reconnectToDatabase($output);