Code Duplication    Length = 5-5 lines in 2 locations

class.jetpack.php 2 locations

@@ 4153-4157 (lines=5) @@
4150
4151
			if ( $active_state ) {
4152
				$titles = array();
4153
				foreach ( $active_state as $mod ) {
4154
					if ( $mod_headers = Jetpack::get_module( $mod ) ) {
4155
						$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', '&nbsp;', $mod_headers['name'] ) . '</strong>';
4156
					}
4157
				}
4158
				if ( $titles ) {
4159
					$this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles );
4160
				}
@@ 4165-4169 (lines=5) @@
4162
4163
			if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) {
4164
				$titles = array();
4165
				foreach ( explode( ',',  $reactive_state ) as $mod ) {
4166
					if ( $mod_headers = Jetpack::get_module( $mod ) ) {
4167
						$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', '&nbsp;', $mod_headers['name'] ) . '</strong>';
4168
					}
4169
				}
4170
				if ( $titles ) {
4171
					$this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles );
4172
				}