From da8644673b21e1818e085b119b02ac893be1f1af Mon Sep 17 00:00:00 2001 From: Matthew Batchelder Date: Fri, 13 Sep 2024 13:39:50 -0400 Subject: [PATCH] chore: Fix spacing --- src/Uplink/Admin/Ajax.php | 7 ++++--- src/Uplink/functions.php | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Uplink/Admin/Ajax.php b/src/Uplink/Admin/Ajax.php index 25e34ab9..14687c41 100644 --- a/src/Uplink/Admin/Ajax.php +++ b/src/Uplink/Admin/Ajax.php @@ -58,9 +58,10 @@ public function validate_license(): void { $results = $plugin->validate_license( $submission['key'] ); $message = is_plugin_active_for_network( $plugin->get_path() ) ? $results->get_network_message()->get() : $results->get_message()->get(); - $auth_url = Config::get_container()->get( Auth_Url_Builder::class ) - ->set_license( $submission['key'] ) - ->build( $submission['slug'], get_site_url() ); + $auth_url = Config::get_container() + ->get( Auth_Url_Builder::class ) + ->set_license( $submission['key'] ) + ->build( $submission['slug'], get_site_url() ); wp_send_json( [ 'status' => absint( $results->is_valid() ), diff --git a/src/Uplink/functions.php b/src/Uplink/functions.php index f3e91482..bc74f581 100644 --- a/src/Uplink/functions.php +++ b/src/Uplink/functions.php @@ -120,8 +120,8 @@ function is_user_authorized(): bool { function build_auth_url( string $slug, string $domain = '', string $license = ''): string { try { return Config::get_container()->get( Auth_Url_Builder::class ) - ->set_license( $license ) - ->build( $slug, $domain, $license ); + ->set_license( $license ) + ->build( $slug, $domain, $license ); } catch ( Throwable $e ) { if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { error_log( "Error building auth URL: {$e->getMessage()} {$e->getFile()}:{$e->getLine()} {$e->getTraceAsString()}" );