Code Duplication    Length = 9-9 lines in 2 locations

apps/dav/lib/DAV/SystemPrincipalBackend.php 1 location

@@ 150-158 (lines=9) @@
147
	 * @param string $principal
148
	 * @return array
149
	 */
150
	function getGroupMemberSet($principal) {
151
		// TODO: for now the group principal has only one member, the user itself
152
		$principal = $this->getPrincipalByPath($principal);
153
		if (!$principal) {
154
			throw new \Sabre\DAV\Exception('Principal not found');
155
		}
156
157
		return [$principal['uri']];
158
	}
159
160
	/**
161
	 * Returns the list of groups a principal is a member of

apps/dav/lib/Connector/Sabre/Principal.php 1 location

@@ 144-152 (lines=9) @@
141
	 * @return string[]
142
	 * @throws Exception
143
	 */
144
	public function getGroupMemberSet($principal) {
145
		// TODO: for now the group principal has only one member, the user itself
146
		$principal = $this->getPrincipalByPath($principal);
147
		if (!$principal) {
148
			throw new Exception('Principal not found');
149
		}
150
151
		return [$principal['uri']];
152
	}
153
154
	/**
155
	 * Returns the list of groups a principal is a member of