Code Duplication    Length = 5-5 lines in 2 locations

class.jetpack.php 2 locations

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