Skip to content

Commit 018bb63

Browse files
authored
Merge pull request #6 from pxthinh/feature/webhook_1
fix: format code for webhook
2 parents ecd08d0 + 6115038 commit 018bb63

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

config/telegram-git-notifier.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'app' => [
55
'name' => env('APP_NAME', 'Laravel Telegram Git Notify'),
66
'url' => env('APP_URL', 'http://localhost:8000'),
7-
'timezone' => env('TIMEZONE','Asia/Ho_Chi_Minh'),
7+
'timezone' => env('TIMEZONE', 'Asia/Ho_Chi_Minh'),
88
],
99

1010
'telegram-bot' => [
@@ -18,7 +18,7 @@
1818

1919
'author' => [
2020
'contact' => env('TGN_AUTHOR_CONTACT', 'https://t.me/tannp27'),
21-
'source_code' => env('TGN_AUTHOR_SOURCE_CODE','https://github.com/lbiltech/telegram-git-notifier'),
21+
'source_code' => env('TGN_AUTHOR_SOURCE_CODE', 'https://github.com/lbiltech/telegram-git-notifier'),
2222
],
2323

2424
'view' => [
@@ -28,6 +28,6 @@
2828
],
2929
'globals' => [
3030
'access_denied' => env('TGN_VIEW_GLOBALS_ACCESS_DENIED', 'globals.access_denied'),
31-
]
32-
]
31+
],
32+
],
3333
];

routes/bot.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@
1818
Route::get('/set-webhook', [WebhookAction::class, 'set'])->name('set-webhook');
1919
Route::get('/delete-webhook', [WebhookAction::class, 'delete'])->name('delete-webhook');
2020
});
21-

src/Http/Actions/WebhookAction.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
use LbilTech\TelegramGitNotifier\Services\WebhookService;
66

77
/**
8-
* Class WebhookAction
9-
*
10-
* @package LbilTech\LaravelTelegramGitNotifier\Http\Actions
8+
* Class WebhookAction.
119
*/
1210
class WebhookAction
1311
{
@@ -23,7 +21,7 @@ public function __construct(WebhookService $webhookService)
2321
}
2422

2523
/**
26-
* Set webhook for telegram bot
24+
* Set webhook for telegram bot.
2725
*
2826
* @return false|string
2927
*/
@@ -33,7 +31,7 @@ public function set(): false|string
3331
}
3432

3533
/**
36-
* Delete webhook for telegram bot
34+
* Delete webhook for telegram bot.
3735
*
3836
* @return false|string
3937
*/

0 commit comments

Comments
 (0)