Code Duplication    Length = 7-7 lines in 3 locations

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) {

lib/Settings/Admin.php 1 location

@@ 65-71 (lines=7) @@
62
	 */
63
	public function getForm() {
64
		$settings = $this->manager->getSettings();
65
		usort($settings, function(ISetting $a, ISetting $b) {
66
			if ($a->getPriority() === $b->getPriority()) {
67
				return $a->getIdentifier() > $b->getIdentifier();
68
			}
69
70
			return $a->getPriority() > $b->getPriority();
71
		});
72
73
		$activities = [];
74
		foreach ($settings as $setting) {

lib/Settings/Personal.php 1 location

@@ 78-84 (lines=7) @@
75
	 */
76
	public function getForm() {
77
		$settings = $this->manager->getSettings();
78
		usort($settings, function(ISetting $a, ISetting $b) {
79
			if ($a->getPriority() === $b->getPriority()) {
80
				return $a->getIdentifier() > $b->getIdentifier();
81
			}
82
83
			return $a->getPriority() > $b->getPriority();
84
		});
85
86
		$activities = [];
87
		foreach ($settings as $setting) {