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 0d61c6f commit 08a3025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ final class Client {
* @param string $apiKey The Free Mobile API key.
* @param string $baseUrl The base URL of the remote API endpoint.
*/
function __construct(string $account, string $apiKey, string $baseUrl = "https://smsapi.free-mobile.fr/") {
function __construct(string $account, string $apiKey, string $baseUrl = "https://smsapi.free-mobile.fr") {
$this->account = $account;
$this->apiKey = $apiKey;
$this->baseUrl = new Uri($baseUrl);
$this->baseUrl = new Uri(mb_substr($baseUrl, -1) == "/" ? $baseUrl : "$baseUrl/");
}

/**
Expand Down

0 comments on commit 08a3025

Please sign in to comment.