Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / aggregator / src / Plugin / aggregator / fetcher / DefaultFetcher.php
index 91c7ac36ed8573ad1c9103a5ced757419aa240a8..6c6793a59de78a6d599e06084955f8776237b725 100644 (file)
@@ -84,11 +84,13 @@ class DefaultFetcher implements FetcherInterface, ContainerFactoryPluginInterfac
 
       /** @var \Psr\Http\Message\UriInterface $actual_uri */
       $actual_uri = NULL;
-      $response = $this->httpClientFactory->fromOptions(['allow_redirects' => [
-        'on_redirect' => function(RequestInterface $request, ResponseInterface $response, UriInterface $uri) use (&$actual_uri) {
-          $actual_uri = (string) $uri;
-        }
-      ]])->send($request);
+      $response = $this->httpClientFactory->fromOptions([
+        'allow_redirects' => [
+          'on_redirect' => function (RequestInterface $request, ResponseInterface $response, UriInterface $uri) use (&$actual_uri) {
+            $actual_uri = (string) $uri;
+          }
+        ],
+      ])->send($request);
 
       // In case of a 304 Not Modified, there is no new content, so return
       // FALSE.