Code Duplication    Length = 13-15 lines in 2 locations

class.jetpack.php 1 location

@@ 3876-3890 (lines=15) @@
3873
		return true;
3874
	}
3875
3876
	function jetpack_menu_order( $menu_order ) {
3877
		$jp_menu_order = array();
3878
3879
		foreach ( $menu_order as $index => $item ) {
3880
			if ( $item != 'jetpack' ) {
3881
				$jp_menu_order[] = $item;
3882
			}
3883
3884
			if ( $index == 0 ) {
3885
				$jp_menu_order[] = 'jetpack';
3886
			}
3887
		}
3888
3889
		return $jp_menu_order;
3890
	}
3891
3892
	function admin_banner_styles() {
3893
		$min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';

_inc/lib/admin-pages/class.jetpack-react-page.php 1 location

@@ 85-97 (lines=13) @@
82
		echo '</noscript>';
83
	}
84
85
	function jetpack_menu_order( $menu_order ) {
86
		$jp_menu_order = array();
87
88
		foreach ( $menu_order as $index => $item ) {
89
			if ( $item != 'jetpack' )
90
				$jp_menu_order[] = $item;
91
92
			if ( $index == 0 )
93
				$jp_menu_order[] = 'jetpack';
94
		}
95
96
		return $jp_menu_order;
97
	}
98
99
	function page_render() {
100
		/** This action is already documented in views/admin/admin-page.php */