Code Duplication    Length = 3-3 lines in 2 locations

src/Console/Application.php 2 locations

@@ 203-205 (lines=3) @@
200
201
		// has to be installed
202
		$file = $locator->getPathToConfigFile();
203
		if (!file_exists($file) || !is_file($file)){
204
			throw new \RuntimeException('ownCloud in ' . dirname(dirname($file)) . ' is not installed.');
205
		}
206
207
		// version.php should exist
208
		$file = $locator->getPathToVersionFile();
@@ 209-211 (lines=3) @@
206
207
		// version.php should exist
208
		$file = $locator->getPathToVersionFile();
209
		if (!file_exists($file) || !is_file($file)){
210
			throw new \RuntimeException('ownCloud is not found in ' . dirname($file));
211
		}
212
213
		// datadir should exist
214
		$dataDir = $locator->getDataDir();