Skip to content

Commit

Permalink
Code optimization [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Nov 19, 2023
1 parent 08a3025 commit 314b4b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ final class Client {
function __construct(string $account, string $apiKey, string $baseUrl = "https://smsapi.free-mobile.fr") {
$this->account = $account;
$this->apiKey = $apiKey;
$this->baseUrl = new Uri(mb_substr($baseUrl, -1) == "/" ? $baseUrl : "$baseUrl/");
$this->baseUrl = new Uri(str_ends_with($baseUrl, "/") ? $baseUrl : "$baseUrl/");
}

/**
Expand Down

0 comments on commit 314b4b0

Please sign in to comment.