Code Duplication    Length = 7-10 lines in 2 locations

projects/plugins/jetpack/modules/masterbar/admin-menu/class-atomic-admin-menu.php 1 location

@@ 231-240 (lines=10) @@
228
	 *
229
	 * @param bool $wp_admin Optional. Whether links should point to Calypso or wp-admin. Default false (Calypso).
230
	 */
231
	public function add_users_menu( $wp_admin = false ) {
232
		parent::add_users_menu( $wp_admin );
233
234
		// No need to add a menu linking to WP Admin if there is already one.
235
		if ( $wp_admin ) {
236
			return;
237
		}
238
239
		add_submenu_page( 'users.php', esc_attr__( 'Advanced Users Management', 'jetpack' ), __( 'Advanced Users Management', 'jetpack' ), 'list_users', 'users.php', null, 2 );
240
	}
241
}
242

projects/plugins/jetpack/modules/masterbar/admin-menu/class-wpcom-admin-menu.php 1 location

@@ 197-203 (lines=7) @@
194
	/**
195
	 * Adds Upgrades menu.
196
	 */
197
	public function add_upgrades_menu() {
198
		$menu_slug = parent::add_upgrades_menu();
199
200
		add_submenu_page( $menu_slug, __( 'Domains', 'jetpack' ), __( 'Domains', 'jetpack' ), 'manage_options', 'https://wordpress.com/domains/manage/' . $this->domain, null, 10 );
201
202
		return $menu_slug;
203
	}
204
205
	/**
206
	 * Adds Appearance menu.