Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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