Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 732-740 (lines=9) @@
729
730
			wp_send_json_success();
731
		}
732
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
733
			$module_slug = $_REQUEST['jitmModule'];
734
735
			// User went to WordPress.com, track this
736
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
737
			$this->do_stats( 'server_side' );
738
739
			wp_send_json_success();
740
		}
741
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
742
			$track = $_REQUEST['jitmModule'];
743
@@ 741-749 (lines=9) @@
738
739
			wp_send_json_success();
740
		}
741
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
742
			$track = $_REQUEST['jitmModule'];
743
744
			// User is viewing JITM, track it.
745
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
746
			$this->do_stats( 'server_side' );
747
748
			wp_send_json_success();
749
		}
750
	}
751
752
	/**