Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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