Code Duplication    Length = 3-3 lines in 2 locations

src/Console/Application.php 2 locations

@@ 242-244 (lines=3) @@
239
240
		// has to be installed
241
		$file = $locator->getPathToConfigFile();
242
		if (!file_exists($file) || !is_file($file)){
243
			throw new \RuntimeException('ownCloud in ' . dirname(dirname($file)) . ' is not installed.');
244
		}
245
246
		// version.php should exist
247
		$file = $locator->getPathToVersionFile();
@@ 248-250 (lines=3) @@
245
246
		// version.php should exist
247
		$file = $locator->getPathToVersionFile();
248
		if (!file_exists($file) || !is_file($file)){
249
			throw new \RuntimeException('ownCloud is not found in ' . dirname($file));
250
		}
251
252
		// datadir should exist
253
		$dataDir = $locator->getDataDir();