Skip to content

Commit eaed94f

Browse files
committed
Rename context class
1 parent adc0c2e commit eaed94f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

plugins/optimization-detective/load.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class_alias( OD_URL_Metric_Group_Collection::class, 'OD_URL_Metrics_Group_Collec
110110
require_once __DIR__ . '/storage/class-od-storage-lock.php';
111111
require_once __DIR__ . '/storage/data.php';
112112
require_once __DIR__ . '/storage/rest-api.php';
113-
require_once __DIR__ . '/storage/class-od-url-metric-stored-context.php';
113+
require_once __DIR__ . '/storage/class-od-url-metric-store-request-context.php';
114114

115115
// Detection logic.
116116
require_once __DIR__ . '/detection.php';

plugins/optimization-detective/storage/class-od-url-metric-stored-context.php plugins/optimization-detective/storage/class-od-url-metric-store-request-context.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Optimization Detective: OD_URL_Metric_Stored_Context class
3+
* Optimization Detective: OD_URL_Metric_Store_Request_Context class
44
*
55
* @package optimization-detective
66
* @since n.e.x.t
@@ -17,7 +17,7 @@
1717
* @since n.e.x.t
1818
* @access private
1919
*/
20-
final class OD_URL_Metric_Stored_Context {
20+
final class OD_URL_Metric_Store_Request_Context {
2121

2222
/**
2323
* Request.

plugins/optimization-detective/storage/rest-api.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,11 @@ function od_handle_rest_request( WP_REST_Request $request ) {
176176
*
177177
* @since n.e.x.t
178178
*
179-
* @param OD_URL_Metric_Stored_Context $context Context about the successful URL Metric collection.
179+
* @param OD_URL_Metric_Store_Request_Context $context Context about the successful URL Metric collection.
180180
*/
181181
do_action(
182182
'od_url_metric_stored',
183-
new OD_URL_Metric_Stored_Context(
183+
new OD_URL_Metric_Store_Request_Context(
184184
$request,
185185
$post_id,
186186
$url_metric_group_collection,

plugins/optimization-detective/tests/storage/test-rest-api.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static function ( array $properties ): array {
6565
public function test_rest_request_good_params( Closure $set_up ): void {
6666
add_action(
6767
'od_url_metric_stored',
68-
function ( OD_URL_Metric_Stored_Context $context ): void {
68+
function ( OD_URL_Metric_Store_Request_Context $context ): void {
6969
$this->assertInstanceOf( OD_URL_Metric_Group_Collection::class, $context->url_metric_group_collection );
7070
$this->assertInstanceOf( OD_URL_Metric_Group::class, $context->url_metric_group );
7171
$this->assertInstanceOf( OD_URL_Metric::class, $context->url_metric );

0 commit comments

Comments
 (0)