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

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