Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 511fd38

Browse filesBrowse files
pan93412OskarStark
andcommitted
Continue to improve coding style
Co-authored-by: Oskar Stark <oskarstark@googlemail.com>
1 parent 6291b42 commit 511fd38
Copy full SHA for 511fd38

File tree

3 files changed

+4
-5
lines changed
Filter options

3 files changed

+4
-5
lines changed

‎src/Symfony/Component/Notifier/Bridge/LineBot/LineBotTransport.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/LineBot/LineBotTransport.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class LineBotTransport extends AbstractTransport
2828
protected const HOST = 'api.line.me';
2929

3030
public function __construct(
31-
#[\SensitiveParameter] private readonly string $channelAccessToken,
31+
#[\SensitiveParameter] private readonly string $accessToken,
3232
private readonly string $receiver,
3333
?HttpClientInterface $client = null,
3434
?EventDispatcherInterface $dispatcher = null,
@@ -46,7 +46,7 @@ protected function doSend(MessageInterface $message): SentMessage
4646
'POST',
4747
\sprintf('https://%s/v2/bot/message/push', $this->getEndpoint()),
4848
[
49-
'auth_bearer' => $this->channelAccessToken,
49+
'auth_bearer' => $this->accessToken,
5050
'json' => [
5151
'to' => $this->receiver,
5252
'messages' => [

‎src/Symfony/Component/Notifier/Bridge/LineBot/LineBotTransportFactory.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/LineBot/LineBotTransportFactory.php
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public function create(Dsn $dsn): LineBotTransport
3838
if (null === $accessToken) {
3939
throw new IncompleteDsnException('Missing channel access token.', 'linebot://'.$dsn->getHost());
4040
}
41-
4241
$receiver = $dsn->getRequiredOption('receiver');
4342
\assert(\is_string($receiver));
4443

‎src/Symfony/Component/Notifier/Bridge/LineBot/README.md

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/LineBot/README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ linebot://TOKEN@default?receiver=RECEIVER
1212

1313
where:
1414

15-
- `RECEIVER` can be retrieved from https://developers.line.biz/en/docs/messaging-api/getting-user-ids/#getting-user-ids.
16-
- `TOKEN` should be encoded in URL format.
15+
- `TOKEN` should be encoded in URL format.
16+
- `RECEIVER` can be retrieved from https://developers.line.biz/en/docs/messaging-api/getting-user-ids/#getting-user-ids.
1717

1818
Resources
1919
---------

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.