Code Duplication    Length = 14-14 lines in 2 locations

apps/dav/lib/CalDAV/Calendar.php 2 locations

@@ 199-212 (lines=14) @@
196
197
	}
198
199
	function getChildren() {
200
201
		$objs = $this->caldavBackend->getCalendarObjects($this->calendarInfo['id']);
202
		$children = [];
203
		foreach ($objs as $obj) {
204
			if ($this->isShared() && $obj['classification'] === CalDavBackend::CLASSIFICATION_PRIVATE) {
205
				continue;
206
			}
207
			$obj['acl'] = $this->getChildACL();
208
			$children[] = new CalendarObject($this->caldavBackend, $this->calendarInfo, $obj);
209
		}
210
		return $children;
211
212
	}
213
214
	function getMultipleChildren(array $paths) {
215
@@ 214-227 (lines=14) @@
211
212
	}
213
214
	function getMultipleChildren(array $paths) {
215
216
		$objs = $this->caldavBackend->getMultipleCalendarObjects($this->calendarInfo['id'], $paths);
217
		$children = [];
218
		foreach ($objs as $obj) {
219
			if ($this->isShared() && $obj['classification'] === CalDavBackend::CLASSIFICATION_PRIVATE) {
220
				continue;
221
			}
222
			$obj['acl'] = $this->getChildACL();
223
			$children[] = new CalendarObject($this->caldavBackend, $this->calendarInfo, $obj);
224
		}
225
		return $children;
226
227
	}
228
229
	function childExists($name) {
230
		$obj = $this->caldavBackend->getCalendarObject($this->calendarInfo['id'], $name);