Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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