Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
curry684 committed Sep 14, 2024
1 parent d51e0e8 commit caf5d10
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/EventSubscriber/FormProfileSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class FormProfileSubscriber implements EventSubscriberInterface, LoggerAwareInte
public function __construct(
private readonly EventDispatcherInterface $eventDispatcher,
private readonly RequestStack $requestStack,
private readonly TranslatorInterface $translator
private readonly TranslatorInterface $translator,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Validator/BannedMarkupTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function testOnlyStringablesAndNullAreAccepted(): void
$this->validate(684, $constraint);
$this->assertNoViolation();

$this->validate(new class() implements \Stringable {
$this->validate(new class implements \Stringable {
public function __toString(): string
{
return 'example-text';
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Validator/BannedPhrasesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function testOnlyStringablesAndNullAreAccepted(): void
$this->validate(684, $constraint);
$this->assertNoViolation();

$this->validate(new class() implements \Stringable {
$this->validate(new class implements \Stringable {
public function __toString(): string
{
return 'example-baz';
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Validator/BannedScriptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function testOnlyStringablesAndNullAreAccepted(): void
$this->validate(684, $constraint);
$this->assertNoViolation();

$this->validate(new class() implements \Stringable {
$this->validate(new class implements \Stringable {
public function __toString(): string
{
return 'foo';
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Validator/UrlCountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function testOnlyStringablesAndNullAreAccepted(): void
$this->validate(684, $constraint);
$this->assertNoViolation();

$this->validate(new class() implements \Stringable {
$this->validate(new class implements \Stringable {
public function __toString(): string
{
return 'foo';
Expand Down

0 comments on commit caf5d10

Please sign in to comment.