Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 793-801 (lines=9) @@
790
791
			wp_send_json_success();
792
		}
793
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
794
			$module_slug = $_REQUEST['jitmModule'];
795
796
			// User went to WordPress.com, track this
797
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
798
			$this->do_stats( 'server_side' );
799
800
			wp_send_json_success();
801
		}
802
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
803
			$track = $_REQUEST['jitmModule'];
804
@@ 802-810 (lines=9) @@
799
800
			wp_send_json_success();
801
		}
802
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
803
			$track = $_REQUEST['jitmModule'];
804
805
			// User is viewing JITM, track it.
806
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
807
			$this->do_stats( 'server_side' );
808
809
			wp_send_json_success();
810
		}
811
	}
812
813
	/**