Skip to content

Commit e276902

Browse files
committed
fixes
1 parent 19b1402 commit e276902

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Providers/Html.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Embed\Providers;
44

5-
use Embed\Url;
65
use Embed\Bag;
76
use Embed\Utils;
87

src/RequestResolvers/Guzzle5.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Guzzle5 implements RequestResolverInterface
1717
protected $request;
1818

1919
/**
20-
* @var \GuzzleHttp\Response
20+
* @var \GuzzleHttp\Response|false
2121
*/
2222
protected $response;
2323

@@ -76,7 +76,7 @@ public function getMimeType()
7676
*/
7777
public function getError()
7878
{
79-
return $error;
79+
return $this->error;
8080
}
8181

8282
/**
@@ -116,7 +116,7 @@ protected function getResponse()
116116
try {
117117
$this->response = $this->client->send($this->request);
118118
} catch (\Exception $exception) {
119-
$error = $exception->getMessage();
119+
$this->error = $exception->getMessage();
120120
$this->response = false;
121121
}
122122
}

0 commit comments

Comments
 (0)