Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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