Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 934-942 (lines=9) @@
931
932
			wp_send_json_success();
933
		}
934
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
935
			$module_slug = $_REQUEST['jitmModule'];
936
937
			// User went to WordPress.com, track this
938
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
939
			$this->do_stats( 'server_side' );
940
941
			wp_send_json_success();
942
		}
943
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
944
			$track = $_REQUEST['jitmModule'];
945
@@ 943-951 (lines=9) @@
940
941
			wp_send_json_success();
942
		}
943
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
944
			$track = $_REQUEST['jitmModule'];
945
946
			// User is viewing JITM, track it.
947
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
948
			$this->do_stats( 'server_side' );
949
950
			wp_send_json_success();
951
		}
952
	}
953
954
	/**