Skip to content

Commit e3612f8

Browse files
committed
Remove access private from class and add to individual methods other than constant
1 parent e4eabe5 commit e3612f8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plugins/optimization-detective/storage/class-od-rest-url-metrics-store-endpoint.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* OD_REST_URL_Metrics_Store_Endpoint class
1717
*
1818
* @since n.e.x.t
19-
* @access private
2019
*/
2120
final class OD_REST_URL_Metrics_Store_Endpoint {
2221

@@ -45,6 +44,7 @@ final class OD_REST_URL_Metrics_Store_Endpoint {
4544
* Gets the arguments for registering the endpoint.
4645
*
4746
* @since n.e.x.t
47+
* @access private
4848
*
4949
* @return array{
5050
* methods: string,
@@ -107,6 +107,9 @@ public function get_registration_args(): array {
107107
/**
108108
* Permission callback for the REST API endpoint.
109109
*
110+
* @since n.e.x.t
111+
* @access private
112+
*
110113
* @return true|WP_Error True if the request has permission, WP_Error object otherwise.
111114
*/
112115
public function permission_callback() {
@@ -131,6 +134,7 @@ public function permission_callback() {
131134
*
132135
* @since n.e.x.t
133136
* @see is_allowed_http_origin()
137+
* @access private
134138
*
135139
* @param string $origin Origin to check.
136140
* @return bool Whether the origin is allowed.
@@ -145,6 +149,7 @@ protected static function is_allowed_http_origin( string $origin ): bool {
145149
* Handles the REST API request to store a URL Metric.
146150
*
147151
* @since n.e.x.t
152+
* @access private
148153
*
149154
* @phpstan-param WP_REST_Request<array<string, mixed>> $request
150155
*

0 commit comments

Comments
 (0)