Skip to content

Commit

Permalink
update docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Nov 7, 2023
1 parent 024f17f commit f40c6b5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .docker/conf.d/site.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
server {
listen 80;
server_name telegram-nofity-bot.com;
server_name telegram-git-notifier.com;

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

root /var/www/html/;
index index.php index.html index.htm;
Expand Down
12 changes: 10 additions & 2 deletions src/Http/Actions/IndexAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
namespace CSlant\TelegramGitNotifierApp\Http\Actions;

use CSlant\TelegramGitNotifier\Bot;
use CSlant\TelegramGitNotifier\Exceptions\BotException;
use CSlant\TelegramGitNotifier\Exceptions\CallbackException;
use CSlant\TelegramGitNotifier\Exceptions\ConfigFileException;
use CSlant\TelegramGitNotifier\Exceptions\EntryNotFoundException;
use CSlant\TelegramGitNotifier\Exceptions\InvalidViewTemplateException;
use CSlant\TelegramGitNotifier\Exceptions\MessageIsEmptyException;
Expand All @@ -25,6 +28,9 @@ class IndexAction

protected Request $request;

/**
* @throws ConfigFileException
*/
public function __construct()
{
$this->client = new Client();
Expand All @@ -38,10 +44,12 @@ public function __construct()
* Handle telegram git notifier app
*
* @return void
* @throws InvalidViewTemplateException
* @throws SendNotificationException
* @throws EntryNotFoundException
* @throws InvalidViewTemplateException
* @throws MessageIsEmptyException
* @throws SendNotificationException
* @throws BotException
* @throws CallbackException
*/
public function __invoke(): void
{
Expand Down
5 changes: 5 additions & 0 deletions src/Services/CallbackService.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

use CSlant\TelegramGitNotifier\Bot;
use CSlant\TelegramGitNotifier\Constants\SettingConstant;
use CSlant\TelegramGitNotifier\Exceptions\BotException;
use CSlant\TelegramGitNotifier\Exceptions\CallbackException;
use CSlant\TelegramGitNotifier\Exceptions\InvalidViewTemplateException;
use CSlant\TelegramGitNotifier\Exceptions\MessageIsEmptyException;
use CSlant\TelegramGitNotifierApp\Traits\Markup;
Expand All @@ -26,6 +28,8 @@ public function __construct(Bot $bot)
*
* @return void
* @throws MessageIsEmptyException
* @throws BotException
* @throws CallbackException
*/
public function answerBackButton(string $callback): void
{
Expand Down Expand Up @@ -67,6 +71,7 @@ public function answerBackButton(string $callback): void
* @return void
* @throws MessageIsEmptyException
* @throws InvalidViewTemplateException
* @throws BotException|CallbackException
*/
public function handle(): void
{
Expand Down

0 comments on commit f40c6b5

Please sign in to comment.