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

@@ 282-289 (lines=8) @@
279
		return false;
280
	}
281
282
	private function getGroupLimitList() {
283
		$value = $this->config->getAppValue('deck', 'groupLimit', '');
284
		$groups = explode(',', $value);
285
		if ($value === '') {
286
			return [];
287
		}
288
		return $groups;
289
	}
290
}
291