Code Duplication    Length = 4-4 lines in 2 locations

lib/Service/PlatformService.php 1 location

@@ 206-209 (lines=4) @@
203
	 */
204
	private function loadPlatformsFromApp($appId) {
205
		$appInfo = $this->appManager->getAppInfo($appId);
206
		if (!is_array($appInfo) || !key_exists('fulltextsearch', $appInfo)
207
			|| !key_exists('platform', $appInfo['fulltextsearch'])) {
208
			return;
209
		}
210
211
		$platforms = $appInfo['fulltextsearch']['platform'];
212
		if (!is_array($platforms)) {

lib/Service/ProviderService.php 1 location

@@ 247-250 (lines=4) @@
244
	 */
245
	private function loadProvidersFromApp($appId) {
246
		$appInfo = $this->appManager->getAppInfo($appId);
247
		if (!is_array($appInfo) || !key_exists('fulltextsearch', $appInfo)
248
			|| !key_exists('provider', $appInfo['fulltextsearch'])) {
249
			return;
250
		}
251
252
		$providers = $appInfo['fulltextsearch']['provider'];
253
		$this->loadProvidersFromList($appId, $providers);