Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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