Code Duplication    Length = 9-9 lines in 2 locations

apps/comments/lib/Activity/Provider.php 1 location

@@ 208-216 (lines=9) @@
205
	 * @param string $path
206
	 * @return array
207
	 */
208
	protected function generateFileParameter($id, $path) {
209
		return [
210
			'type' => 'file',
211
			'id' => $id,
212
			'name' => basename($path),
213
			'path' => trim($path, '/'),
214
			'link' => $this->url->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $id]),
215
		];
216
	}
217
218
	/**
219
	 * @param string $uid

apps/sharebymail/lib/Activity.php 1 location

@@ 262-270 (lines=9) @@
259
	 * @param string $path
260
	 * @return array
261
	 */
262
	protected function generateFileParameter($id, $path) {
263
		return [
264
			'type' => 'file',
265
			'id' => $id,
266
			'name' => basename($path),
267
			'path' => trim($path, '/'),
268
			'link' => $this->url->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $id]),
269
		];
270
	}
271
272
	/**
273
	 * @param string $email