Code Duplication    Length = 8-8 lines in 2 locations

lib/Controller/ConfigController.php 1 location

@@ 92-99 (lines=8) @@
89
		return $groups;
90
	}
91
92
	private function getGroupLimitList() {
93
		$value = $this->config->getAppValue($this->appName, 'groupLimit', '');
94
		$groups = explode(',', $value);
95
		if ($value === '') {
96
			return [];
97
		}
98
		return $groups;
99
	}
100
101
	private function getGroupLimit() {
102
		$groups = $this->getGroupLimitList();

lib/Service/PermissionService.php 1 location

@@ 304-311 (lines=8) @@
301
		return false;
302
	}
303
304
	private function getGroupLimitList() {
305
		$value = $this->config->getAppValue('deck', 'groupLimit', '');
306
		$groups = explode(',', $value);
307
		if ($value === '') {
308
			return [];
309
		}
310
		return $groups;
311
	}
312
}
313