Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 907-915 (lines=9) @@
904
905
			wp_send_json_success();
906
		}
907
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
908
			$module_slug = $_REQUEST['jitmModule'];
909
910
			// User went to WordPress.com, track this
911
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
912
			$this->do_stats( 'server_side' );
913
914
			wp_send_json_success();
915
		}
916
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
917
			$track = $_REQUEST['jitmModule'];
918
@@ 916-924 (lines=9) @@
913
914
			wp_send_json_success();
915
		}
916
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
917
			$track = $_REQUEST['jitmModule'];
918
919
			// User is viewing JITM, track it.
920
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
921
			$this->do_stats( 'server_side' );
922
923
			wp_send_json_success();
924
		}
925
	}
926
927
	/**