src/Http/RequestManager.php
public function downloadFiles(FilesystemUpdater $filesystem, array $data)
    {
        $factory = $this->getMessageFactory();
        $client = $this->getClient();

        foreach ($data as $url => $fileName) {
            $response = $client->sendRequest($factory->createRequest('GET', $url));
            $filesystem->writeToFile($fileName, $response->getBody()->__toString());
        }
    }
public function downloadFiles(FilesystemUpdater $filesystem, array $data)
    {
        $factory = $this->getMessageFactory();
        $client = $this->getClient();

        foreach ($data as $url => $fileName) {
            $response = $client->sendRequest($factory->createRequest('GET', $url));
            $filesystem->writeToFile($fileName, $response->getBody()->__toString());
        }
    }
@param array $data

@return mixed