Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 121-129 (lines=9) @@
118
	 * @return string[]
119
	 * @throws Exception
120
	 */
121
	public function getGroupMemberSet($principal) {
122
		// TODO: for now the group principal has only one member, the user itself
123
		$principal = $this->getPrincipalByPath($principal);
124
		if (!$principal) {
125
			throw new Exception('Principal not found');
126
		}
127
128
		return [$principal['uri']];
129
	}
130
131
	/**
132
	 * Returns the list of groups a principal is a member of

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