Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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