Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 187-194 (lines=8) @@
184
	 *
185
	 * @return void
186
	 */
187
	public function move($source, $destination) {
188
		$statement = $this->connection->prepare(
189
			'UPDATE `*PREFIX*properties` SET `propertypath` = ?' .
190
			' WHERE `userid` = ? AND `propertypath` = ?'
191
		);
192
		$statement->execute(array('/' . $destination, $this->user, '/' . $source));
193
		$statement->closeCursor();
194
	}
195
196
	/**
197
	 * Returns a list of properties for this nodes.;

apps/dav/lib/DAV/CustomPropertiesBackend.php 1 location

@@ 174-181 (lines=8) @@
171
	 *
172
	 * @return void
173
	 */
174
	public function move($source, $destination) {
175
		$statement = $this->connection->prepare(
176
			'UPDATE `*PREFIX*properties` SET `propertypath` = ?' .
177
			' WHERE `userid` = ? AND `propertypath` = ?'
178
		);
179
		$statement->execute(array($destination, $this->user, $source));
180
		$statement->closeCursor();
181
	}
182
183
	/**
184
	 * Returns a list of properties for this nodes.;