Code Duplication    Length = 6-8 lines in 2 locations

apps/dav/lib/CardDAV/CardDavBackend.php 1 location

@@ 77-84 (lines=8) @@
74
	 * @param Principal $principalBackend
75
	 * @param EventDispatcherInterface $dispatcher
76
	 */
77
	public function __construct(IDBConnection $db,
78
								Principal $principalBackend,
79
								EventDispatcherInterface $dispatcher = null) {
80
		$this->db = $db;
81
		$this->principalBackend = $principalBackend;
82
		$this->dispatcher = $dispatcher;
83
		$this->sharingBackend = new Backend($this->db, $principalBackend, 'addressbook');
84
	}
85
86
	/**
87
	 * Returns the list of address books for a specific user.

apps/dav/lib/CalDAV/CalDavBackend.php 1 location

@@ 123-128 (lines=6) @@
120
	 * @param Principal $principalBackend
121
	 * @param IConfig $config
122
	 */
123
	public function __construct(IDBConnection $db, Principal $principalBackend, IConfig $config) {
124
		$this->db = $db;
125
		$this->principalBackend = $principalBackend;
126
		$this->sharingBackend = new Backend($this->db, $principalBackend, 'calendar');
127
		$this->config = $config;
128
	}
129
130
	/**
131
	 * Returns a list of calendars for a principal.