Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 935-943 (lines=9) @@
932
933
			wp_send_json_success();
934
		}
935
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
936
			$module_slug = $_REQUEST['jitmModule'];
937
938
			// User went to WordPress.com, track this
939
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
940
			$this->do_stats( 'server_side' );
941
942
			wp_send_json_success();
943
		}
944
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
945
			$track = $_REQUEST['jitmModule'];
946
@@ 944-952 (lines=9) @@
941
942
			wp_send_json_success();
943
		}
944
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
945
			$track = $_REQUEST['jitmModule'];
946
947
			// User is viewing JITM, track it.
948
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
949
			$this->do_stats( 'server_side' );
950
951
			wp_send_json_success();
952
		}
953
	}
954
955
	/**