Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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