Code Duplication    Length = 9-9 lines in 2 locations

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

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

@@ 229-237 (lines=9) @@
226
	 * @param string $path
227
	 * @return array
228
	 */
229
	protected function generateFileParameter($id, $path) {
230
		return [
231
			'type' => 'file',
232
			'id' => $id,
233
			'name' => basename($path),
234
			'path' => $path,
235
			'link' => $this->url->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $id]),
236
		];
237
	}
238
239
	/**
240
	 * @param string $uid