Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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