Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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