Code Duplication    Length = 5-5 lines in 2 locations

class.jetpack.php 2 locations

@@ 4224-4228 (lines=5) @@
4221
4222
			if ( $active_state ) {
4223
				$titles = array();
4224
				foreach ( $active_state as $mod ) {
4225
					if ( $mod_headers = Jetpack::get_module( $mod ) ) {
4226
						$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', '&nbsp;', $mod_headers['name'] ) . '</strong>';
4227
					}
4228
				}
4229
				if ( $titles ) {
4230
					$this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles );
4231
				}
@@ 4236-4240 (lines=5) @@
4233
4234
			if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) {
4235
				$titles = array();
4236
				foreach ( explode( ',',  $reactive_state ) as $mod ) {
4237
					if ( $mod_headers = Jetpack::get_module( $mod ) ) {
4238
						$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', '&nbsp;', $mod_headers['name'] ) . '</strong>';
4239
					}
4240
				}
4241
				if ( $titles ) {
4242
					$this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles );
4243
				}