Skip to content

Commit

Permalink
Merge pull request #6 from pxthinh/feature/webhook_1
Browse files Browse the repository at this point in the history
fix: format code for webhook
  • Loading branch information
tanhongit authored Oct 2, 2023
2 parents ecd08d0 + 6115038 commit 018bb63
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
8 changes: 4 additions & 4 deletions config/telegram-git-notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'app' => [
'name' => env('APP_NAME', 'Laravel Telegram Git Notify'),
'url' => env('APP_URL', 'http://localhost:8000'),
'timezone' => env('TIMEZONE','Asia/Ho_Chi_Minh'),
'timezone' => env('TIMEZONE', 'Asia/Ho_Chi_Minh'),
],

'telegram-bot' => [
Expand All @@ -18,7 +18,7 @@

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

'view' => [
Expand All @@ -28,6 +28,6 @@
],
'globals' => [
'access_denied' => env('TGN_VIEW_GLOBALS_ACCESS_DENIED', 'globals.access_denied'),
]
]
],
],
];
1 change: 0 additions & 1 deletion routes/bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@
Route::get('/set-webhook', [WebhookAction::class, 'set'])->name('set-webhook');
Route::get('/delete-webhook', [WebhookAction::class, 'delete'])->name('delete-webhook');
});

8 changes: 3 additions & 5 deletions src/Http/Actions/WebhookAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
use LbilTech\TelegramGitNotifier\Services\WebhookService;

/**
* Class WebhookAction
*
* @package LbilTech\LaravelTelegramGitNotifier\Http\Actions
* Class WebhookAction.
*/
class WebhookAction
{
Expand All @@ -23,7 +21,7 @@ public function __construct(WebhookService $webhookService)
}

/**
* Set webhook for telegram bot
* Set webhook for telegram bot.
*
* @return false|string
*/
Expand All @@ -33,7 +31,7 @@ public function set(): false|string
}

/**
* Delete webhook for telegram bot
* Delete webhook for telegram bot.
*
* @return false|string
*/
Expand Down

0 comments on commit 018bb63

Please sign in to comment.