Code Duplication    Length = 10-11 lines in 2 locations

lib/carddav/addressbook.php 2 locations

@@ 222-231 (lines=10) @@
219
	*
220
	* @return array
221
	*/
222
	public function getChildren() {
223
224
		$objs = $this->carddavBackend->getCards($this->addressBookInfo['id']);
225
		$children = array();
226
		foreach($objs as $obj) {
227
			$children[] = new Card($this->carddavBackend,$this->addressBookInfo,$obj);
228
		}
229
		return $children;
230
231
	}
232
233
	/**
234
	 * This method receives a list of paths in it's first argument.
@@ 241-251 (lines=11) @@
238
	 *
239
	 * @return array
240
	 */
241
	function getMultipleChildren(array $paths) {
242
243
		$objs = $this->carddavBackend->getMultipleCards($this->addressBookInfo['id'], $paths);
244
		$children = [];
245
		foreach($objs as $obj) {
246
#			$obj['acl'] = $this->getChildACL();
247
			$children[] = new Card($this->carddavBackend,$this->addressBookInfo,$obj);
248
		}
249
		return $children;
250
251
	}
252
253
	/**
254
	* Returns the last modification date as a unix timestamp.