Code Duplication    Length = 10-10 lines in 2 locations

lib/Events/FilesEvents.php 2 locations

@@ 202-211 (lines=10) @@
199
	/**
200
	 * @param array $params
201
	 */
202
	public function onFileShare(array $params) {
203
		$fileId = $this->get('itemSource', $params, '');
204
		if ($fileId === '') {
205
			return;
206
		}
207
208
		$this->fullTextSearchManager->updateIndexStatus(
209
			'files', $fileId, FilesDocument::STATUS_FILE_ACCESS
210
		);
211
	}
212
213
214
	/**
@@ 217-226 (lines=10) @@
214
	/**
215
	 * @param array $params
216
	 */
217
	public function onFileUnshare(array $params) {
218
		$fileId = $this->get('itemSource', $params, '');
219
		if ($fileId === '') {
220
			return;
221
		}
222
223
		$this->fullTextSearchManager->updateIndexStatus(
224
			'files', $fileId, FilesDocument::STATUS_FILE_ACCESS
225
		);
226
	}
227
228
229
	public function onNewScannedFile2(array $params) {