Code Duplication    Length = 8-8 lines in 2 locations

projects/plugins/jetpack/modules/custom-css/custom-css-4.7.php 1 location

@@ 983-990 (lines=8) @@
980
	 * 'template_redirect' action and
981
	 * 'admin_init' action
982
	 */
983
	static function set_content_width() {
984
		// Don't apply this filter on the Edit CSS page.
985
		if ( isset( $_GET['page'] ) && 'editcss' === $_GET['page'] && is_admin() ) {
986
			return;
987
		}
988
989
		$GLOBALS['content_width'] = Jetpack::get_content_width();
990
	}
991
992
	/**
993
	 * Make sure the preprocessor we're saving is one we know about.

projects/plugins/jetpack/modules/custom-css/custom-css.php 1 location

@@ 541-548 (lines=8) @@
538
	 * 'template_redirect' action and
539
	 * 'admin_init' action
540
	 */
541
	static function set_content_width(){
542
		// Don't apply this filter on the Edit CSS page
543
		if ( isset( $_GET ) && isset( $_GET['page'] ) &&  'editcss' == $_GET['page'] && is_admin() ) {
544
			return;
545
		}
546
547
		$GLOBALS['content_width'] = Jetpack::get_content_width();
548
	}
549
550
	/*
551
	 * False when the site has the Custom Design upgrade.