Code Duplication    Length = 11-11 lines in 2 locations

lib/AppInfo/Application.php 2 locations

@@ 112-122 (lines=11) @@
109
	/**
110
	 *
111
	 */
112
	private function registerHookUpdate() {
113
		$this->eventDispatcher->addListener(
114
			'\OCA\Bookmarks::onBookmarkUpdate', function(GenericEvent $e) {
115
116
			$this->fullTextSearchManager->updateIndexStatus(
117
				BookmarksProvider::BOOKMARKS_PROVIDER_ID, (string)$e->getArgument('id'),
118
				IIndex::INDEX_FULL
119
			);
120
		}
121
		);
122
	}
123
124
125
	/**
@@ 128-138 (lines=11) @@
125
	/**
126
	 *
127
	 */
128
	private function registerHookDelete() {
129
		$this->eventDispatcher->addListener(
130
			'\OCA\Bookmarks::onBookmarkDelete', function(GenericEvent $e) {
131
132
			$this->fullTextSearchManager->updateIndexStatus(
133
				BookmarksProvider::BOOKMARKS_PROVIDER_ID, (string)$e->getArgument('id'),
134
				IIndex::INDEX_REMOVE
135
			);
136
		}
137
		);
138
	}
139
140
141
	/**