Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 821-829 (lines=9) @@
818
819
			wp_send_json_success();
820
		}
821
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
822
			$module_slug = $_REQUEST['jitmModule'];
823
824
			// User went to WordPress.com, track this
825
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
826
			$this->do_stats( 'server_side' );
827
828
			wp_send_json_success();
829
		}
830
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
831
			$track = $_REQUEST['jitmModule'];
832
@@ 830-838 (lines=9) @@
827
828
			wp_send_json_success();
829
		}
830
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
831
			$track = $_REQUEST['jitmModule'];
832
833
			// User is viewing JITM, track it.
834
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
835
			$this->do_stats( 'server_side' );
836
837
			wp_send_json_success();
838
		}
839
	}
840
841
	/**