Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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