Code Duplication    Length = 9-9 lines in 2 locations

lib/Service/MiscService.php 1 location

@@ 157-165 (lines=9) @@
154
	 *
155
	 * @return string|integer
156
	 */
157
	public function getCloudVersion($complete = false) {
158
		$ver = Util::getVersion();
159
160
		if ($complete) {
161
			return implode('.', $ver);
162
		}
163
164
		return $ver[0];
165
	}
166
167
168
}

lib/Service/ConfigService.php 1 location

@@ 189-197 (lines=9) @@
186
	 *
187
	 * @return string|integer
188
	 */
189
	public function getCloudVersion($complete = false) {
190
		$ver = Util::getVersion();
191
192
		if ($complete) {
193
			return implode('.', $ver);
194
		}
195
196
		return $ver[0];
197
	}
198
}
199