Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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