Skip to content

Commit

Permalink
chore: PHP CS Fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
lochmueller committed Aug 15, 2024
1 parent 7523eb2 commit 67480c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Classes/Middleware/FrontendCacheMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ class FrontendCacheMiddleware implements MiddlewareInterface
public function process(
ServerRequestInterface $request,
RequestHandlerInterface $handler,
): ResponseInterface
{
): ResponseInterface {
if (class_exists(CacheInstruction::class)) {
// Get the attribute, if not available, use a new CacheInstruction object
$cacheInstruction = $request->getAttribute(

Check failure on line 21 in Classes/Middleware/FrontendCacheMiddleware.php

View workflow job for this annotation

GitHub Actions / build (8.1, 12)

There is no request attribute "frontend.cache.instruction" configured so we can't figure out the exact type to return when calling Psr\Http\Message\ServerRequestInterface::getAttribute

Check failure on line 21 in Classes/Middleware/FrontendCacheMiddleware.php

View workflow job for this annotation

GitHub Actions / build (8.2, 12)

There is no request attribute "frontend.cache.instruction" configured so we can't figure out the exact type to return when calling Psr\Http\Message\ServerRequestInterface::getAttribute
Expand Down
2 changes: 1 addition & 1 deletion Classes/Service/ClientService.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected function getCallableClient(string $domain): Client
'max' => false,
],
'headers' => [
'User-Agent' => GeneralUtility::makeInstance(ConfigurationService::class)->get('overrideClientUserAgent') ?? self::DEFAULT_USER_AGENT
'User-Agent' => GeneralUtility::makeInstance(ConfigurationService::class)->get('overrideClientUserAgent') ?? self::DEFAULT_USER_AGENT,
],
];

Expand Down

0 comments on commit 67480c7

Please sign in to comment.