File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
plugins/optimization-detective/storage Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 16
16
* OD_REST_URL_Metrics_Store_Endpoint class
17
17
*
18
18
* @since n.e.x.t
19
- * @access private
20
19
*/
21
20
final class OD_REST_URL_Metrics_Store_Endpoint {
22
21
@@ -45,6 +44,7 @@ final class OD_REST_URL_Metrics_Store_Endpoint {
45
44
* Gets the arguments for registering the endpoint.
46
45
*
47
46
* @since n.e.x.t
47
+ * @access private
48
48
*
49
49
* @return array{
50
50
* methods: string,
@@ -107,6 +107,9 @@ public function get_registration_args(): array {
107
107
/**
108
108
* Permission callback for the REST API endpoint.
109
109
*
110
+ * @since n.e.x.t
111
+ * @access private
112
+ *
110
113
* @return true|WP_Error True if the request has permission, WP_Error object otherwise.
111
114
*/
112
115
public function permission_callback () {
@@ -131,6 +134,7 @@ public function permission_callback() {
131
134
*
132
135
* @since n.e.x.t
133
136
* @see is_allowed_http_origin()
137
+ * @access private
134
138
*
135
139
* @param string $origin Origin to check.
136
140
* @return bool Whether the origin is allowed.
@@ -145,6 +149,7 @@ protected static function is_allowed_http_origin( string $origin ): bool {
145
149
* Handles the REST API request to store a URL Metric.
146
150
*
147
151
* @since n.e.x.t
152
+ * @access private
148
153
*
149
154
* @phpstan-param WP_REST_Request<array<string, mixed>> $request
150
155
*
You can’t perform that action at this time.
0 commit comments