Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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