Code Duplication    Length = 9-9 lines in 2 locations

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

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

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

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