Skip to content

Commit

Permalink
Making phpcs happy
Browse files Browse the repository at this point in the history
  • Loading branch information
renatonascalves committed Apr 12, 2024
1 parent b6b1fce commit 73c359b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/bp-members/classes/class-bp-rest-signup-endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function register_routes() {
$this->namespace,
'/' . $this->rest_base . '/resend/(?P<id>[\w-]+)',
array(
'args' => array(
'args' => array(
'id' => array(
'description' => __( 'Identifier for the signup. Can be a signup ID, an email address, or an activation key.', 'buddypress' ),
'type' => 'string',
Expand Down Expand Up @@ -695,7 +695,7 @@ public function signup_resend_activation_email( $request ) {
$request->set_param( 'context', 'edit' );

$signup_id = $request->get_param( 'id' );
$send = \BP_Signup::resend( [ $signup_id ] );
$send = \BP_Signup::resend( array( $signup_id ) );

if ( ! empty( $send['errors'] ) ) {
return new WP_Error(
Expand All @@ -707,7 +707,7 @@ public function signup_resend_activation_email( $request ) {
);
}

$response = rest_ensure_response( [ 'sent' => true ] );
$response = rest_ensure_response( array( 'sent' => true ) );

/**
* Fires after an activation email was (re)sent via the REST API.
Expand Down

0 comments on commit 73c359b

Please sign in to comment.