Code Duplication    Length = 13-15 lines in 2 locations

class.jetpack.php 1 location

@@ 3810-3824 (lines=15) @@
3807
		return true;
3808
	}
3809
3810
	function jetpack_menu_order( $menu_order ) {
3811
		$jp_menu_order = array();
3812
3813
		foreach ( $menu_order as $index => $item ) {
3814
			if ( $item != 'jetpack' ) {
3815
				$jp_menu_order[] = $item;
3816
			}
3817
3818
			if ( $index == 0 ) {
3819
				$jp_menu_order[] = 'jetpack';
3820
			}
3821
		}
3822
3823
		return $jp_menu_order;
3824
	}
3825
3826
	function admin_banner_styles() {
3827
		$min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';

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

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