Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 835-843 (lines=9) @@
832
833
			wp_send_json_success();
834
		}
835
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
836
			$module_slug = $_REQUEST['jitmModule'];
837
838
			// User went to WordPress.com, track this
839
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
840
			$this->do_stats( 'server_side' );
841
842
			wp_send_json_success();
843
		}
844
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
845
			$track = $_REQUEST['jitmModule'];
846
@@ 844-852 (lines=9) @@
841
842
			wp_send_json_success();
843
		}
844
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
845
			$track = $_REQUEST['jitmModule'];
846
847
			// User is viewing JITM, track it.
848
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
849
			$this->do_stats( 'server_side' );
850
851
			wp_send_json_success();
852
		}
853
	}
854
855
	/**