Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 829-837 (lines=9) @@
826
827
			wp_send_json_success();
828
		}
829
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
830
			$module_slug = $_REQUEST['jitmModule'];
831
832
			// User went to WordPress.com, track this
833
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
834
			$this->do_stats( 'server_side' );
835
836
			wp_send_json_success();
837
		}
838
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
839
			$track = $_REQUEST['jitmModule'];
840
@@ 838-846 (lines=9) @@
835
836
			wp_send_json_success();
837
		}
838
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
839
			$track = $_REQUEST['jitmModule'];
840
841
			// User is viewing JITM, track it.
842
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
843
			$this->do_stats( 'server_side' );
844
845
			wp_send_json_success();
846
		}
847
	}
848
849
	/**