Code Duplication    Length = 5-5 lines in 2 locations

class.jetpack.php 2 locations

@@ 4072-4076 (lines=5) @@
4069
4070
			if ( $active_state ) {
4071
				$titles = array();
4072
				foreach ( $active_state as $mod ) {
4073
					if ( $mod_headers = Jetpack::get_module( $mod ) ) {
4074
						$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', '&nbsp;', $mod_headers['name'] ) . '</strong>';
4075
					}
4076
				}
4077
				if ( $titles ) {
4078
					$this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles );
4079
				}
@@ 4084-4088 (lines=5) @@
4081
4082
			if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) {
4083
				$titles = array();
4084
				foreach ( explode( ',',  $reactive_state ) as $mod ) {
4085
					if ( $mod_headers = Jetpack::get_module( $mod ) ) {
4086
						$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', '&nbsp;', $mod_headers['name'] ) . '</strong>';
4087
					}
4088
				}
4089
				if ( $titles ) {
4090
					$this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles );
4091
				}