Code Duplication    Length = 7-7 lines in 2 locations

lib/Controller/Settings.php 1 location

@@ 164-170 (lines=7) @@
161
	 */
162
	public function displayPanel() {
163
		$settings = $this->manager->getSettings();
164
		usort($settings, function(ISetting $a, ISetting $b) {
165
			if ($a->getPriority() === $b->getPriority()) {
166
				return $a->getIdentifier() > $b->getIdentifier();
167
			}
168
169
			return $a->getPriority() > $b->getPriority();
170
		});
171
172
		$activities = [];
173
		foreach ($settings as $setting) {

lib/Navigation.php 1 location

@@ 113-119 (lines=7) @@
110
	 */
111
	public function getLinkList() {
112
		$filters = $this->activityManager->getFilters();
113
		usort($filters, function(IFilter $a, IFilter $b) {
114
			if ($a->getPriority() === $b->getPriority()) {
115
				return $a->getIdentifier() > $b->getIdentifier();
116
			}
117
118
			return $a->getPriority() > $b->getPriority();
119
		});
120
121
		$entries = [];
122
		foreach ($filters as $filter) {