Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: format code for webhook #6

Merged
merged 2 commits into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixed

],

'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