From 6c95a23d105b1dbe70e475b6641391796fc631cf Mon Sep 17 00:00:00 2001 From: Django Doucet Date: Fri, 5 May 2023 13:45:38 -0600 Subject: [PATCH] phpcbf --- includes/rest/class-server.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/rest/class-server.php b/includes/rest/class-server.php index 03e72cc..fb3e569 100644 --- a/includes/rest/class-server.php +++ b/includes/rest/class-server.php @@ -49,15 +49,15 @@ class Server { $json->{'@context'} = \Activitypub\get_context(); $json->id = \get_rest_url( null, 'activitypub/1.0/application' ); $json->type = 'Application'; - $json->preferredUsername = parse_url( get_site_url(), PHP_URL_HOST ); // phpcs:ignore snake_case + $json->preferredUsername = wp_parse_url( get_site_url(), PHP_URL_HOST ); // phpcs:ignore WordPress.NamingConventions $json->name = get_bloginfo( 'name' ); $json->summary = 'WordPress-ActivityPub application actor'; - $json->manuallyApprovesFollowers = true; // phpcs:ignore snake_case - $json->icon = [ get_site_icon_url() ]; // phpcs:ignore short array syntax - $json->publicKey = (object) array( // phpcs:ignore snake_case + $json->manuallyApprovesFollowers = true; // phpcs:ignore WordPress.NamingConventions + $json->icon = array( get_site_icon_url() ); // phpcs:ignore WordPress.NamingConventions short array syntax + $json->publicKey = (object) array( // phpcs:ignore WordPress.NamingConventions 'id' => \get_rest_url( null, 'activitypub/1.0/application#main-key' ), 'owner' => \get_rest_url( null, 'activitypub/1.0/application' ), - 'publicKeyPem' => Signature::get_public_key( -1 ), // phpcs:ignore snake_case + 'publicKeyPem' => Signature::get_public_key( -1 ), // phpcs:ignore WordPress.NamingConventions ); $response = new WP_REST_Response( $json, 200 );