Skip to content

Commit 7c441fd

Browse files
committed
fixed ImageInfo\Guzzle5 with bas64 images
1 parent b23b77f commit 7c441fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ImageInfo/Guzzle5.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ public static function getImagesInfo(array $urls, array $config = null)
2222
}
2323

2424
$client = $config['client'];
25+
$requests = [];
2526

2627
// Build parallel requests
27-
$requests = [];
2828
foreach ($urls as $url) {
2929
if (strpos($url['value'], 'data:') === 0) {
3030
if ($info = static::getEmbeddedImageInfo($url['value'])) {
@@ -40,7 +40,6 @@ public static function getImagesInfo(array $urls, array $config = null)
4040
$responses = Pool::batch($client, $requests);
4141

4242
// Build result set
43-
$result = [];
4443
foreach ($responses as $i => $response) {
4544
if ($response instanceof RequestException) {
4645
continue;

0 commit comments

Comments
 (0)