Code Duplication    Length = 3-3 lines in 2 locations

src/Console/Application.php 2 locations

@@ 141-143 (lines=3) @@
138
		$locator = $container['utils.locator'];
139
140
		$file = $locator->getPathToVersionFile();
141
		if (!file_exists($file) || !is_file($file)){
142
			throw new \RuntimeException('ownCloud is not found in ' . dirname($file));
143
		}
144
145
		// assert minimum version
146
		$installedVersion = implode('.', $locator->getInstalledVersion());
@@ 153-155 (lines=3) @@
150
151
		// has to be installed
152
		$file = $locator->getPathtoConfigFile();
153
		if (!file_exists($file) || !is_file($file)){
154
			throw new \RuntimeException('ownCloud in ' . dirname($file) . ' is not installed.');
155
		}
156
	}
157
158
	/**