Code Duplication    Length = 5-5 lines in 2 locations

class.jetpack.php 2 locations

@@ 3841-3845 (lines=5) @@
3838
3839
			if ( $active_state ) {
3840
				$titles = array();
3841
				foreach ( $active_state as $mod ) {
3842
					if ( $mod_headers = Jetpack::get_module( $mod ) ) {
3843
						$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', '&nbsp;', $mod_headers['name'] ) . '</strong>';
3844
					}
3845
				}
3846
				if ( $titles ) {
3847
					$this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles );
3848
				}
@@ 3853-3857 (lines=5) @@
3850
3851
			if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) {
3852
				$titles = array();
3853
				foreach ( explode( ',',  $reactive_state ) as $mod ) {
3854
					if ( $mod_headers = Jetpack::get_module( $mod ) ) {
3855
						$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', '&nbsp;', $mod_headers['name'] ) . '</strong>';
3856
					}
3857
				}
3858
				if ( $titles ) {
3859
					$this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles );
3860
				}