Code Duplication    Length = 13-13 lines in 2 locations

projects/plugins/jetpack/modules/masterbar/masterbar/class-masterbar.php 2 locations

@@ 996-1008 (lines=13) @@
993
		$this->add_my_home_submenu_item( $wp_admin_bar );
994
995
		// Stats.
996
		if ( Jetpack::is_module_active( 'stats' ) && current_user_can( 'view_stats' ) ) {
997
			$wp_admin_bar->add_menu(
998
				array(
999
					'parent' => 'blog',
1000
					'id'     => 'blog-stats',
1001
					'title'  => esc_html__( 'Stats', 'jetpack' ),
1002
					'href'   => Redirect::get_url( 'calypso-stats' ),
1003
					'meta'   => array(
1004
						'class' => 'mb-icon',
1005
					),
1006
				)
1007
			);
1008
		}
1009
1010
		if ( current_user_can( 'manage_options' ) ) {
1011
			$wp_admin_bar->add_menu(
@@ 1320-1332 (lines=13) @@
1317
				)
1318
			);
1319
1320
			if ( Jetpack::is_module_active( 'publicize' ) || Jetpack::is_module_active( 'sharedaddy' ) ) {
1321
				$wp_admin_bar->add_menu(
1322
					array(
1323
						'parent' => 'configuration',
1324
						'id'     => 'sharing',
1325
						'title'  => esc_html__( 'Sharing', 'jetpack' ),
1326
						'href'   => Redirect::get_url( 'calypso-sharing' ),
1327
						'meta'   => array(
1328
							'class' => 'mb-icon',
1329
						),
1330
					)
1331
				);
1332
			}
1333
1334
			$people_title = $this->create_menu_item_pair(
1335
				array(