Skip to content

Commit 9c3a928

Browse files
Fix CS
1 parent ef1253b commit 9c3a928

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

src/Symfony/Component/Notifier/Bridge/Discord/Tests/DiscordOptionsTest.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\Notifier\Bridge\Discord\Tests;
1313

14-
use DateTimeZone;
1514
use PHPUnit\Framework\TestCase;
1615
use Symfony\Component\Notifier\Bridge\Discord\DiscordOptions;
1716
use Symfony\Component\Notifier\Bridge\Discord\Embeds\DiscordAuthorEmbedObject;
@@ -21,7 +20,7 @@
2120

2221
final class DiscordOptionsTest extends TestCase
2322
{
24-
public function testDiscordOptions(): void
23+
public function testDiscordOptions()
2524
{
2625
$discordOptions = (new DiscordOptions())
2726
->username('name of the bot')
@@ -35,7 +34,7 @@ public function testDiscordOptions(): void
3534
]);
3635
}
3736

38-
public function testDiscordEmbedFields(): void
37+
public function testDiscordEmbedFields()
3938
{
4039
$discordOptions = (new DiscordOptions())
4140
->addEmbed((new DiscordEmbed())
@@ -144,7 +143,7 @@ public function testDiscordEmbedFields(): void
144143
]);
145144
}
146145

147-
public function testDiscordFooterEmbedFields(): void
146+
public function testDiscordFooterEmbedFields()
148147
{
149148
$footer = (new DiscordFooterEmbedObject())
150149
->text('text')
@@ -159,7 +158,7 @@ public function testDiscordFooterEmbedFields(): void
159158
]);
160159
}
161160

162-
public function testDiscordMediaEmbedFields(): void
161+
public function testDiscordMediaEmbedFields()
163162
{
164163
$media = (new DiscordMediaEmbedObject())
165164
->url('https://ur.l/')
@@ -176,7 +175,7 @@ public function testDiscordMediaEmbedFields(): void
176175
]);
177176
}
178177

179-
public function testDiscordAuthorEmbedFields(): void
178+
public function testDiscordAuthorEmbedFields()
180179
{
181180
$author = (new DiscordAuthorEmbedObject())
182181
->name('name field')

src/Symfony/Component/Notifier/Bridge/Discord/Tests/DiscordTransportFactoryTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
final class DiscordTransportFactoryTest extends TestCase
2121
{
22-
public function testCreateWithDsn(): void
22+
public function testCreateWithDsn()
2323
{
2424
$factory = new DiscordTransportFactory();
2525

@@ -31,23 +31,23 @@ public function testCreateWithDsn(): void
3131
$this->assertSame(sprintf('discord://%s?webhook_id=%s', $host, $webhookId), (string) $transport);
3232
}
3333

34-
public function testCreateWithNoTokenThrowsMalformed(): void
34+
public function testCreateWithNoTokenThrowsMalformed()
3535
{
3636
$factory = new DiscordTransportFactory();
3737

3838
$this->expectException(IncompleteDsnException::class);
3939
$factory->create(Dsn::fromString(sprintf('discord://%s/?webhook_id=%s', 'testHost', 'testChannel')));
4040
}
4141

42-
public function testSupportsDiscordScheme(): void
42+
public function testSupportsDiscordScheme()
4343
{
4444
$factory = new DiscordTransportFactory();
4545

4646
$this->assertTrue($factory->supports(Dsn::fromString('discord://host/?webhook_id=testChannel')));
4747
$this->assertFalse($factory->supports(Dsn::fromString('somethingElse://host/?webhook_id=testChannel')));
4848
}
4949

50-
public function testNonDiscordSchemeThrows(): void
50+
public function testNonDiscordSchemeThrows()
5151
{
5252
$factory = new DiscordTransportFactory();
5353

src/Symfony/Component/Notifier/Bridge/Discord/Tests/DiscordTransportTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
final class DiscordTransportTest extends TestCase
2525
{
26-
public function testToStringContainsProperties(): void
26+
public function testToStringContainsProperties()
2727
{
2828
$webhookId = 'testChannel';
2929

@@ -33,23 +33,23 @@ public function testToStringContainsProperties(): void
3333
$this->assertSame(sprintf('discord://%s?webhook_id=%s', 'testHost', $webhookId), (string) $transport);
3434
}
3535

36-
public function testSupportsChatMessage(): void
36+
public function testSupportsChatMessage()
3737
{
3838
$transport = new DiscordTransport('testToken', 'testChannel', $this->createMock(HttpClientInterface::class));
3939

4040
$this->assertTrue($transport->supports(new ChatMessage('testChatMessage')));
4141
$this->assertFalse($transport->supports($this->createMock(MessageInterface::class)));
4242
}
4343

44-
public function testSendNonChatMessageThrows(): void
44+
public function testSendNonChatMessageThrows()
4545
{
4646
$this->expectException(LogicException::class);
4747
$transport = new DiscordTransport('testToken', 'testChannel', $this->createMock(HttpClientInterface::class));
4848

4949
$transport->send($this->createMock(MessageInterface::class));
5050
}
5151

52-
public function testSendWithErrorResponseThrows(): void
52+
public function testSendWithErrorResponseThrows()
5353
{
5454
$this->expectException(TransportException::class);
5555
$this->expectExceptionMessageMatches('/testDescription.+testErrorCode/');

0 commit comments

Comments
 (0)