Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 923-931 (lines=9) @@
920
921
			wp_send_json_success();
922
		}
923
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
924
			$module_slug = $_REQUEST['jitmModule'];
925
926
			// User went to WordPress.com, track this
927
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
928
			$this->do_stats( 'server_side' );
929
930
			wp_send_json_success();
931
		}
932
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
933
			$track = $_REQUEST['jitmModule'];
934
@@ 932-940 (lines=9) @@
929
930
			wp_send_json_success();
931
		}
932
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
933
			$track = $_REQUEST['jitmModule'];
934
935
			// User is viewing JITM, track it.
936
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
937
			$this->do_stats( 'server_side' );
938
939
			wp_send_json_success();
940
		}
941
	}
942
943
	/**