Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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