From 9d30f2c1dd899a1bade19f030381b39ff804561c Mon Sep 17 00:00:00 2001 From: Django Doucet Date: Fri, 5 May 2023 12:55:12 -0600 Subject: [PATCH] phpcbf --- includes/rest/class-server.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/rest/class-server.php b/includes/rest/class-server.php index 6ee28d5..03e72cc 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 ); + $json->preferredUsername = parse_url( get_site_url(), PHP_URL_HOST ); // phpcs:ignore snake_case $json->name = get_bloginfo( 'name' ); - $json->summary = "WordPress-ActivityPub application actor"; - $json->manuallyApprovesFollowers = TRUE; - $json->icon = [ get_site_icon_url() ]; - $json->publicKey = (object) array( + $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 '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 ), + 'publicKeyPem' => Signature::get_public_key( -1 ), // phpcs:ignore snake_case ); $response = new WP_REST_Response( $json, 200 );