Skip to content

Commit

Permalink
v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
slvler committed Nov 18, 2024
1 parent 11d638a commit 187b4d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Cuttly.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct(Container $app)
throw MissingApiKey::create();
}

$baseURL = $app['config']->get('cuttly.api_key');
$baseURL = $app['config']->get('cuttly.base_uri');

if (empty($baseURL) || ! isset($baseURL)) {
throw new InvalidArgumentException('Invalid Cuttly API base URL.');
Expand Down
4 changes: 2 additions & 2 deletions src/HttpResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ public function __construct($response)
$this->response = $response;
}

public function getBody(): string
public function getBody()
{
return (string) $this->response->getBody();
}

public function toObject(): object
public function toObject()
{
$body = (string) $this->response->getBody();

Expand Down

0 comments on commit 187b4d6

Please sign in to comment.