Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 810-818 (lines=9) @@
807
808
			wp_send_json_success();
809
		}
810
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
811
			$module_slug = $_REQUEST['jitmModule'];
812
813
			// User went to WordPress.com, track this
814
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
815
			$this->do_stats( 'server_side' );
816
817
			wp_send_json_success();
818
		}
819
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
820
			$track = $_REQUEST['jitmModule'];
821
@@ 819-827 (lines=9) @@
816
817
			wp_send_json_success();
818
		}
819
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
820
			$track = $_REQUEST['jitmModule'];
821
822
			// User is viewing JITM, track it.
823
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
824
			$this->do_stats( 'server_side' );
825
826
			wp_send_json_success();
827
		}
828
	}
829
830
	/**