Skip to content

Commit

Permalink
apply latest cs fixer rules
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu committed Nov 6, 2024
1 parent c878897 commit 885c2dd
Show file tree
Hide file tree
Showing 22 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/CacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class CacheManager extends CacheInvalidator

public function __construct(
private readonly ProxyClient $cache,
private readonly UrlGeneratorInterface $urlGenerator
private readonly UrlGeneratorInterface $urlGenerator,
) {
parent::__construct($cache);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Command/BaseInvalidateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ abstract class BaseInvalidateCommand extends Command
* is automatically loaded.
*/
public function __construct(
private CacheManager $cacheManager
private CacheManager $cacheManager,
) {
parent::__construct();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Configuration/InvalidatePath.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class InvalidatePath
* @param string|string[] $data
*/
public function __construct(
string|array $data = []
string|array $data = [],
) {
$values = [];
if (is_string($data)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Configuration/InvalidateRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class InvalidateRoute

public function __construct(
string|array $data = [],
array $params = []
array $params = [],
) {
$values = [];
if (is_string($data)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Configuration/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Tag

public function __construct(
string|array $data = [],
?Expression $expression = null
?Expression $expression = null,
) {
$values = [];
if (is_string($data)) {
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
final class Configuration implements ConfigurationInterface
{
public function __construct(
private readonly bool $debug
private readonly bool $debug,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/EventListener/AbstractRuleListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ abstract class AbstractRuleListener
*/
public function addRule(
RequestMatcherInterface $requestMatcher,
array $settings = []
array $settings = [],
): void {
$this->rulesMap[] = [$requestMatcher, $settings];
}
Expand Down
2 changes: 1 addition & 1 deletion src/EventListener/AttributesListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
final class AttributesListener implements EventSubscriberInterface
{
public function __construct(
private readonly ControllerResolverInterface $controllerResolver
private readonly ControllerResolverInterface $controllerResolver,
) {
}

Expand Down
4 changes: 2 additions & 2 deletions src/EventListener/CacheControlListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function __construct(
*
* @var string|false Name of the header or false to add no header
*/
private readonly string|false $debugHeader = false
private readonly string|false $debugHeader = false,
) {
}

Expand Down Expand Up @@ -145,7 +145,7 @@ public function onKernelResponse(ResponseEvent $event): void
*/
public function addRule(
RuleMatcherInterface $ruleMatcher,
array $settings = []
array $settings = [],
): void {
$this->rulesMap[] = [$ruleMatcher, $settings];
}
Expand Down
2 changes: 1 addition & 1 deletion src/EventListener/InvalidationListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct(
private readonly CacheManager $cacheManager,
private readonly UrlGeneratorInterface $urlGenerator,
private readonly RuleMatcherInterface $mustInvalidateRule,
private ?ExpressionLanguage $expressionLanguage = null
private ?ExpressionLanguage $expressionLanguage = null,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/EventListener/SwitchUserListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
final class SwitchUserListener implements EventSubscriberInterface
{
public function __construct(
private readonly UserContextInvalidator $invalidator
private readonly UserContextInvalidator $invalidator,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/EventListener/TagListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct(
private readonly SymfonyResponseTagger $symfonyResponseTagger,
private readonly RuleMatcherInterface $cacheableRule,
private readonly RuleMatcherInterface $mustInvalidateRule,
private ?ExpressionLanguage $expressionLanguage = null
private ?ExpressionLanguage $expressionLanguage = null,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/EventListener/UserContextListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function __construct(
* Whether the application has a session listener and therefore could
* require the AbstractSessionListener::NO_AUTO_CACHE_CONTROL_HEADER.
*/
private readonly bool $hasSessionListener = true
private readonly bool $hasSessionListener = true,
) {
$resolver = new OptionsResolver();
$resolver->setDefaults([
Expand Down
2 changes: 1 addition & 1 deletion src/Http/RequestMatcher/QueryStringRequestMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct(
/**
* @var string Regular expression to match the query string part of the request url
*/
private readonly string $queryString
private readonly string $queryString,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Http/ResponseMatcher/ExpressionResponseMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class ExpressionResponseMatcher implements ResponseMatcherInterface
{
public function __construct(
private readonly string $expression,
private ?ExpressionLanguage $expressionLanguage = null
private ?ExpressionLanguage $expressionLanguage = null,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Http/RuleMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class RuleMatcher implements RuleMatcherInterface
{
public function __construct(
private readonly ?RequestMatcherInterface $requestMatcher = null,
private readonly ?ResponseMatcherInterface $responseMatcher = null
private readonly ?ResponseMatcherInterface $responseMatcher = null,
) {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
final class ContextInvalidationSessionLogoutHandler implements EventSubscriberInterface
{
public function __construct(
private readonly UserContextInvalidator $invalidator
private readonly UserContextInvalidator $invalidator,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Twig/CacheTagExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class CacheTagExtension extends AbstractExtension
{
public function __construct(
private readonly ResponseTagger $responseTagger
private readonly ResponseTagger $responseTagger,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/UserContext/RequestMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class RequestMatcher implements RequestMatcherInterface
{
public function __construct(
private ?string $accept = 'application/vnd.fos.user-context-hash',
private ?string $method = null
private ?string $method = null,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/UserContext/RoleProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class RoleProvider implements ContextProvider
* a firewall context.
*/
public function __construct(
private readonly ?TokenStorageInterface $tokenStorage = null
private readonly ?TokenStorageInterface $tokenStorage = null,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/UserContextInvalidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class UserContextInvalidator
public const USER_CONTEXT_TAG_PREFIX = 'fos_http_cache_hashlookup-';

public function __construct(
private readonly TagCapable $tagger
private readonly TagCapable $tagger,
) {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
class TagAttributeController extends AbstractController
{
public function __construct(
private SymfonyResponseTagger $responseTagger
private SymfonyResponseTagger $responseTagger,
) {
}

Expand Down

0 comments on commit 885c2dd

Please sign in to comment.