Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 741-749 (lines=9) @@
738
739
			wp_send_json_success();
740
		}
741
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
742
			$module_slug = $_REQUEST['jitmModule'];
743
744
			// User went to WordPress.com, track this
745
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
746
			$this->do_stats( 'server_side' );
747
748
			wp_send_json_success();
749
		}
750
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
751
			$track = $_REQUEST['jitmModule'];
752
@@ 750-758 (lines=9) @@
747
748
			wp_send_json_success();
749
		}
750
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
751
			$track = $_REQUEST['jitmModule'];
752
753
			// User is viewing JITM, track it.
754
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
755
			$this->do_stats( 'server_side' );
756
757
			wp_send_json_success();
758
		}
759
	}
760
761
	/**