Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 972-980 (lines=9) @@
969
970
			wp_send_json_success();
971
		}
972
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
973
			$module_slug = $_REQUEST['jitmModule'];
974
975
			// User went to WordPress.com, track this
976
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
977
			$this->do_stats( 'server_side' );
978
979
			wp_send_json_success();
980
		}
981
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
982
			$track = $_REQUEST['jitmModule'];
983
@@ 981-989 (lines=9) @@
978
979
			wp_send_json_success();
980
		}
981
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
982
			$track = $_REQUEST['jitmModule'];
983
984
			// User is viewing JITM, track it.
985
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
986
			$this->do_stats( 'server_side' );
987
988
			wp_send_json_success();
989
		}
990
	}
991
992
	/**