Skip to content

Commit fe93912

Browse files
Improve docblocks for clarity
Co-authored-by: Weston Ruter <[email protected]>
1 parent 6d3ddc5 commit fe93912

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/optimization-detective/storage/class-od-url-metrics-post-type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ static function ( $url_metric_data ) use ( $trigger_error ) {
200200
}
201201

202202
/**
203-
* Updates the URL Metrics Post Type with new URL Metrics.
203+
* Inserts or updates the od_url_metrics post with a provided collection of URL Metrics.
204204
*
205205
* This method updates an existing URL Metrics post or creates a new one if it doesn't exist.
206206
*

plugins/optimization-detective/tests/class-optimization-detective-test-helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ function ( array $element ) use ( $params ): array {
169169
/**
170170
* Stores URL Metric by merging it with the other URL Metrics which share the same normalized query vars.
171171
*
172-
* @param non-empty-string $slug Slug (hash of normalized query vars).
172+
* @param non-empty-string $slug Slug (hash of normalized query vars).
173173
* @param OD_URL_Metric $new_url_metric New URL Metric.
174174
* @return positive-int|WP_Error Post ID on success, or WP_Error on failure.
175175
*/

0 commit comments

Comments
 (0)