8000 Fix some formatting for Novu. Refs: #50414 · symfony/symfony@0935f1a · GitHub
[go: up one dir, main page]

Skip to content

Commit 0935f1a

Browse files
committed
Fix some formatting for Novu. Refs: #50414
1 parent 599fae3 commit 0935f1a

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

src/Symfony/Component/Notifier/Bridge/Novu/NovuTransport.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ class NovuTransport extends AbstractTransport
2828
{
2929
protected const HOST = 'web.novu.co';
3030

31-
private string $apiKey;
32-
3331
public function __construct(
34-
#[\SensitiveParameter] string $apiKey,
32+
#[\SensitiveParameter] protected string $apiKey,
3533
HttpClientInterface $client = null,
3634
EventDispatcherInterface $dispatcher = null
3735
) {

src/Symfony/Component/Notifier/Bridge/Novu/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Novu Notifier
2-
=================
2+
=============
33

44
Provides [Novu](https://novu.co/) integration for Symfony Notifier.
55

src/Symfony/Component/Notifier/Bridge/Novu/Tests/NovuOptionsTest.php

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,16 @@ public function testToArray()
3232
[],
3333
);
3434

35-
$expected = [
36-
'firstName' => 'Joe',
37-
'lastName' => 'Smith',
38-
'email' => 'test@example.com',
39-
'phone' => null,
40-
'avatar' => null,
41-
'locale' => null,
42-
];
43-
44-
$this->assertSame($expected, $options->toArray());
35+
$this->assertSame(
36+
[
37+
'firstName' => 'Joe',
38+
'lastName' => 'Smith',
39+
'email' => 'test@example.com',
40+
'phone' => null,
41+
'avatar' => null,
42+
'locale' => null,
43+
],
44+
$options->toArray()
45+
);
4546
}
4647
}

0 commit comments

Comments
 (0)
0