Skip to content

Commit

Permalink
PHPCS fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauteri committed Nov 28, 2024
1 parent e3b04aa commit ea828c1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build/blocks/rsvp-template/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

use GatherPress\Core\Event;
return;
$event = new Event( get_the_ID() );
$event = new Event( get_the_ID() );
$responses = $event->rsvp->responses();
foreach ( $responses['attending']['responses'] as $response ) {
$comment_id = $response['commentId'];
$comment_id = $response['commentId'];
$filter_block_context = static function ( $context ) use ( $comment_id ) {
$context['commentId'] = $comment_id;
return $context;
Expand Down
2 changes: 1 addition & 1 deletion includes/core/classes/blocks/class-rsvp-response.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function add_rsvp_to_comment_ancestor( array $metadata ): array {
if ( isset( $metadata['ancestor'] ) && is_array( $metadata['ancestor'] ) ) {
$metadata['ancestor'][] = 'gatherpress/rsvp-template';
} else {
$metadata['ancestor'] = [ 'gatherpress/rsvp-template' ];
$metadata['ancestor'] = array( 'gatherpress/rsvp-template' );
}
}

Expand Down
2 changes: 1 addition & 1 deletion includes/core/classes/class-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ protected function localize( int $post_id ): array {
),
'urls' => array(
'pluginUrl' => GATHERPRESS_CORE_URL,
'eventApiPath' => '/' . $event_rest_api_slug,
'eventApiPath' => '/' . $event_rest_api_slug,
'eventApiUrl' => home_url( 'wp-json/' . $event_rest_api_slug ),
'loginUrl' => $this->get_login_url( $post_id ),
'registrationUrl' => $this->get_registration_url( $post_id ),
Expand Down
4 changes: 2 additions & 2 deletions src/blocks/rsvp-template/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

use GatherPress\Core\Event;
return;
$event = new Event( get_the_ID() );
$event = new Event( get_the_ID() );
$responses = $event->rsvp->responses();
foreach ( $responses['attending']['responses'] as $response ) {
$comment_id = $response['commentId'];
$comment_id = $response['commentId'];
$filter_block_context = static function ( $context ) use ( $comment_id ) {
$context['commentId'] = $comment_id;
return $context;
Expand Down

0 comments on commit ea828c1

Please sign in to comment.