Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 960-968 (lines=9) @@
957
958
			wp_send_json_success();
959
		}
960
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
961
			$module_slug = $_REQUEST['jitmModule'];
962
963
			// User went to WordPress.com, track this
964
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
965
			$this->do_stats( 'server_side' );
966
967
			wp_send_json_success();
968
		}
969
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
970
			$track = $_REQUEST['jitmModule'];
971
@@ 969-977 (lines=9) @@
966
967
			wp_send_json_success();
968
		}
969
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
970
			$track = $_REQUEST['jitmModule'];
971
972
			// User is viewing JITM, track it.
973
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
974
			$this->do_stats( 'server_side' );
975
976
			wp_send_json_success();
977
		}
978
	}
979
980
	/**