Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0a1be0f

Browse files
committed
Apply review changes
1 parent 32ab7ff commit 0a1be0f

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/Tests export-ignore
22
/phpunit.xml.dist export-ignore
33
/.gitattributes export-ignore
4-
/.gitignore export-ignore
4+
/.gitignore export-ignore
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
vendor/
22
composer.lock
3-
phpunit.xml
3+
phpunit.xml

src/Symfony/Component/Notifier/Bridge/Bandwidth/BandwidthOptions.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,48 +79,56 @@ public function setAccountId(string $accountId): self
7979
public function setApplicationId(string $applicationId): self
8080
{
8181
$this->options['application_id'] = $applicationId;
82+
8283
return $this;
8384
}
8485

8586
public function setExpiration(string $expiration): self
8687
{
8788
$this->options['expiration'] = $expiration;
89+
8890
return $this;
8991
}
9092

9193
public function setFrom(string $from): self
9294
{
9395
$this->options['from'] = $from;
96+
9497
return $this;
9598
}
9699

97100
public function setMedia(array $media): self
98101
{
99102
$this->options['media'] = $media;
103+
100104
return $this;
101105
}
102106

103107
public function setPriority(string $priority): self
104108
{
105109
$this->options['priority'] = $priority;
110+
106111
return $this;
107112
}
108113

109114
public function setRecipientId(string $id): self
110115
{
111116
$this->options['recipient_id'] = $id;
117+
112118
return $this;
113119
}
114120

115121
public function setTag(string $tag): self
116122
{
117123
$this->options['tag'] = $tag;
124+
118125
return $this;
119126
}
120127

121128
public function setTo(array $to): self
122129
{
123130
$this->options['to'] = $to;
131+
124132
return $this;
125133
}
126134

src/Symfony/Component/Notifier/Bridge/Bandwidth/Tests/BandwidthTransportTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ public function testNoInvalidArgumentExceptionIsThrownIfFromIsValid(string $from
6464
$client = new MockHttpClient(function (string $method,string $url) use ($response): ResponseInterface {
6565
self::assertSame('POST', $method);
6666
self::assertSame('https://messaging.bandwidth.com/api/v2/users/account_id/messages', $url);
67-
return $response;
67+
68+
return $response;
6869
});
6970
$transport = $this->createTransport($client, $from);
7071
$sentMessage = $transport->send($message);

src/Symfony/Component/Notifier/Bridge/Bandwidth/composer.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@
2020
],
2121
"require": {
2222
"php": ">=8.1",
23-
"symfony/event-dispatcher": "^6.3",
24-
"symfony/http-client": "^6.3",
23+
"symfony/event-dispatcher": "^5.4|^6.0",
24+
"symfony/http-client": "^5.4|^6.0",
2525
"symfony/notifier": "^6.3"
2626
},
2727
"autoload": {
28-
"psr-4": {
29-
"Symfony\\Component\\Notifier\\Bridge\\Bandwidth\\": ""
30-
},
28+
"psr-4": {"Symfony\\Component\\Notifier\\Bridge\\Bandwidth\\": ""},
3129
"exclude-from-classmap": [
3230
"/Tests/"
3331
]

0 commit comments

Comments
 (0)