Code Duplication    Length = 8-9 lines in 2 locations

modules/custom-css/custom-css-4.7.php 1 location

@@ 956-964 (lines=9) @@
953
	 *
954
	 * @return array
955
	 */
956
	static function editor_max_image_size( $dims, $size = 'medium', $context = null ) {
957
		list( $width, $height ) = $dims;
958
959
		if ( 'large' === $size && 'edit' === $context ) {
960
			$width = Jetpack::get_content_width();
961
		}
962
963
		return array( $width, $height );
964
	}
965
966
	/**
967
	 * Override the content_width with a custom value if one is set.

modules/custom-css/custom-css.php 1 location

@@ 1549-1556 (lines=8) @@
1546
	 * When on the edit screen, make sure the custom content width
1547
	 * setting is applied to the large image size.
1548
	 */
1549
	static function editor_max_image_size( $dims, $size = 'medium', $context = null ) {
1550
		list( $width, $height ) = $dims;
1551
1552
		if ( 'large' == $size && 'edit' == $context )
1553
			$width = Jetpack::get_content_width();
1554
1555
		return array( $width, $height );
1556
	}
1557
1558
	/**
1559
	 * Override the content_width with a custom value if one is set.