Commit fbb2bb96 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

CQ.

No related merge requests found
Pipeline #6581 passed with stages
in 1 minute and 7 seconds
Showing with 4 additions and 3 deletions
+4 -3
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -152,10 +152,10 @@ class Builder implements BuilderInterface, LoggerAwareInterface ...@@ -152,10 +152,10 @@ class Builder implements BuilderInterface, LoggerAwareInterface
$sourceStream = StreamWrapper::getResource($response->getBody()); $sourceStream = StreamWrapper::getResource($response->getBody());
try { try {
$destStream = fopen($dest, 'wb'); $destStream = \Safe\fopen($dest, 'wb');
try { try {
$n = \Safe\stream_copy_to_stream($sourceStream, $destStream); $size = \Safe\stream_copy_to_stream($sourceStream, $destStream);
$this->logger->debug("received $n bytes from $source"); $this->logger->debug("received $size bytes from $source");
} finally { } finally {
fclose($destStream); fclose($destStream);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment