Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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