Skip to content

Commit f40c6b5

Browse files
committed
update docblock
1 parent 024f17f commit f40c6b5

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

.docker/conf.d/site.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
server {
22
listen 80;
3-
server_name telegram-nofity-bot.com;
3+
server_name telegram-git-notifier.com;
44

5-
error_log /var/log/nginx/telegram-nofity-bot-error.log;
6-
access_log /var/log/nginx/telegram-nofity-bot-access.log;
5+
error_log /var/log/nginx/telegram-git-notifier-error.log;
6+
access_log /var/log/nginx/telegram-git-notifier-access.log;
77

88
root /var/www/html/;
99
index index.php index.html index.htm;

src/Http/Actions/IndexAction.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
namespace CSlant\TelegramGitNotifierApp\Http\Actions;
44

55
use CSlant\TelegramGitNotifier\Bot;
6+
use CSlant\TelegramGitNotifier\Exceptions\BotException;
7+
use CSlant\TelegramGitNotifier\Exceptions\CallbackException;
8+
use CSlant\TelegramGitNotifier\Exceptions\ConfigFileException;
69
use CSlant\TelegramGitNotifier\Exceptions\EntryNotFoundException;
710
use CSlant\TelegramGitNotifier\Exceptions\InvalidViewTemplateException;
811
use CSlant\TelegramGitNotifier\Exceptions\MessageIsEmptyException;
@@ -25,6 +28,9 @@ class IndexAction
2528

2629
protected Request $request;
2730

31+
/**
32+
* @throws ConfigFileException
33+
*/
2834
public function __construct()
2935
{
3036
$this->client = new Client();
@@ -38,10 +44,12 @@ public function __construct()
3844
* Handle telegram git notifier app
3945
*
4046
* @return void
41-
* @throws InvalidViewTemplateException
42-
* @throws SendNotificationException
4347
* @throws EntryNotFoundException
48+
* @throws InvalidViewTemplateException
4449
* @throws MessageIsEmptyException
50+
* @throws SendNotificationException
51+
* @throws BotException
52+
* @throws CallbackException
4553
*/
4654
public function __invoke(): void
4755
{

src/Services/CallbackService.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
use CSlant\TelegramGitNotifier\Bot;
66
use CSlant\TelegramGitNotifier\Constants\SettingConstant;
7+
use CSlant\TelegramGitNotifier\Exceptions\BotException;
8+
use CSlant\TelegramGitNotifier\Exceptions\CallbackException;
79
use CSlant\TelegramGitNotifier\Exceptions\InvalidViewTemplateException;
810
use CSlant\TelegramGitNotifier\Exceptions\MessageIsEmptyException;
911
use CSlant\TelegramGitNotifierApp\Traits\Markup;
@@ -26,6 +28,8 @@ public function __construct(Bot $bot)
2628
*
2729
* @return void
2830
* @throws MessageIsEmptyException
31+
* @throws BotException
32+
* @throws CallbackException
2933
*/
3034
public function answerBackButton(string $callback): void
3135
{
@@ -67,6 +71,7 @@ public function answerBackButton(string $callback): void
6771
* @return void
6872
* @throws MessageIsEmptyException
6973
* @throws InvalidViewTemplateException
74+
* @throws BotException|CallbackException
7075
*/
7176
public function handle(): void
7277
{

0 commit comments

Comments
 (0)