Code Duplication    Length = 11-12 lines in 2 locations

app/Theme/ColorsTheme.php 1 location

@@ 128-139 (lines=12) @@
125
	 *
126
	 * @return Menu[]
127
	 */
128
	protected function secondaryMenu() {
129
		return array_filter(array(
130
			$this->menuPendingChanges(),
131
			$this->menuMyPages(),
132
			$this->menuFavorites(),
133
			$this->menuThemes(),
134
			$this->menuPalette(),
135
			$this->menuLanguages(),
136
			$this->menuLogin(),
137
			$this->menuLogout(),
138
		));
139
	}
140
141
	/**
142
	 * Create a menu of palette options

app/Theme/AbstractTheme.php 1 location

@@ 1911-1921 (lines=11) @@
1908
	 *
1909
	 * @return Menu[]
1910
	 */
1911
	protected function secondaryMenu() {
1912
		return array_filter(array(
1913
			$this->menuPendingChanges(),
1914
			$this->menuMyPages(),
1915
			$this->menuFavorites(),
1916
			$this->menuThemes(),
1917
			$this->menuLanguages(),
1918
			$this->menuLogin(),
1919
			$this->menuLogout(),
1920
		));
1921
	}
1922
1923
	/**
1924
	 * Add markup to the secondary menu.