Skip to content

Commit

Permalink
chore: Fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
borkweb authored Sep 13, 2024
1 parent 4f13cbd commit da86446
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/Uplink/Admin/Ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() ),
Expand Down
4 changes: 2 additions & 2 deletions src/Uplink/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()}" );
Expand Down

0 comments on commit da86446

Please sign in to comment.