Skip to content

Commit ed8fb21

Browse files
committed
reformat styles for the config file
1 parent d76c609 commit ed8fb21

File tree

1 file changed

+20
-61
lines changed

1 file changed

+20
-61
lines changed

config/telegram-git-notifier.php

Lines changed: 20 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,24 @@
77
return [
88
'defaults' => [
99
'paths' => [
10-
'views' => env(
11-
'TGN_DEFAULT_PATH_VIEW',
12-
base_path('resources/views/vendor/tg-notifier')
13-
),
10+
'views' => env('TGN_DEFAULT_PATH_VIEW', base_path('resources/views/vendor/tg-notifier')),
1411
],
1512

16-
// Set route prefix for telegram git notifier app
13+
/* Set route prefix for telegram git notifier app */
1714
'route_prefix' => env('TGN_DEFAULT_ROUTE_PREFIX', 'telegram-git-notifier'),
1815
],
1916

2017
'app' => [
21-
'name' => env('TGN_APP_NAME', 'Laravel Telegram Git Notifier'),
18+
'name' => env('TGN_APP_NAME', 'Laravel Telegram Git Notifier'),
2219

23-
// Required for the bot to work properly
24-
'url' => env('TGN_APP_URL', 'http://localhost:8000/telegram-git-notifier'),
20+
/* Required for the bot to work properly */
21+
'url' => env('TGN_APP_URL', 'http://localhost:8000/telegram-git-notifier'),
2522
'timezone' => env('TIMEZONE', 'Asia/Ho_Chi_Minh'),
2623
],
2724

2825
'bot' => [
29-
'token' => env('TELEGRAM_BOT_TOKEN', ''),
30-
'chat_id' => env('TELEGRAM_BOT_CHAT_ID', ''),
26+
'token' => env('TELEGRAM_BOT_TOKEN', ''),
27+
'chat_id' => env('TELEGRAM_BOT_CHAT_ID', ''),
3128

3229
/**
3330
* Set the chat IDs that will receive notifications
@@ -45,77 +42,39 @@
4542
],
4643

4744
'author' => [
48-
'discussion' => env(
49-
'TGN_AUTHOR_DISCUSSION',
50-
'https://github.com/cslant/laravel-telegram-git-notifier/discussions'
51-
),
52-
'source_code' => env(
53-
'TGN_AUTHOR_SOURCE_CODE',
54-
'https://github.com/cslant/laravel-telegram-git-notifier'
55-
),
45+
'discussion' => env('TGN_AUTHOR_DISCUSSION', 'https://github.com/cslant/laravel-telegram-git-notifier/discussions'),
46+
'source_code' => env('TGN_AUTHOR_SOURCE_CODE', 'https://github.com/cslant/laravel-telegram-git-notifier'),
5647
],
5748

58-
/** Set the path to the data file */
49+
/* Set the path to the data file */
5950
'data_file' => [
6051
'storage_folder' => $configFileStorageFolder,
61-
62-
'setting' => env(
63-
'TGN_PATH_SETTING',
64-
$configFileStorageFolder.'/tgn-settings.json'
65-
),
52+
'setting' => env('TGN_PATH_SETTING', $configFileStorageFolder.'/tgn-settings.json'),
6653

6754
'platform' => [
68-
'gitlab' => env(
69-
'TGN_PATH_PLATFORM_GITLAB',
70-
$configFileStorageFolder.'/gitlab-events.json'
71-
),
72-
'github' => env(
73-
'TGN_PATH_PLATFORM_GITHUB',
74-
$configFileStorageFolder.'/github-events.json'
75-
),
55+
'gitlab' => env('TGN_PATH_PLATFORM_GITLAB', $configFileStorageFolder.'/gitlab-events.json'),
56+
'github' => env('TGN_PATH_PLATFORM_GITHUB', $configFileStorageFolder.'/github-events.json'),
7657
],
7758
],
7859

79-
/** Set the path to the view file */
60+
/* Set the path to the view file */
8061
'view' => [
8162
'ignore-message' => env('IGNORE_MESSAGE', 'ignore-message'),
82-
8363
'namespace' => env('TGN_VIEW_NAMESPACE', 'tg-notifier'),
84-
85-
'default' => env(
86-
'TGN_VIEW_DEFAULT',
87-
base_path('resources/views/vendor/tg-notifier')
88-
),
89-
64+
'default' => env('TGN_VIEW_DEFAULT', base_path('resources/views/vendor/tg-notifier')),
9065
'event' => [
9166
'default' => env('TGN_VIEW_EVENT_DEFAULT', 'default'),
9267
],
9368

9469
'globals' => [
95-
'access_denied' => env(
96-
'TGN_VIEW_GLOBALS_ACCESS_DENIED',
97-
'globals.access_denied'
98-
),
70+
'access_denied' => env('TGN_VIEW_GLOBALS_ACCESS_DENIED', 'globals.access_denied'),
9971
],
10072

10173
'tools' => [
102-
'settings' => env(
103-
'TGN_VIEW_TOOL_SETTING',
104-
'tools.settings'
105-
),
106-
'custom_event_action' => env(
107-
'TGN_VIEW_TOOL_CUSTOM_EVENT_ACTION',
108-
'tools.custom_event_action'
109-
),
110-
'custom_event' => env(
111-
'TGN_VIEW_TOOL_CUSTOM_EVENT',
112-
'tools.custom_event'
113-
),
114-
'set_menu_cmd' => env(
115-
'TGN_VIEW_TOOL_SET_MENU_COMMAND',
116-
'tools.set_menu_cmd'
117-
),
74+
'settings' => env('TGN_VIEW_TOOL_SETTING', 'tools.settings'),
75+
'custom_event_action' => env('TGN_VIEW_TOOL_CUSTOM_EVENT_ACTION', 'tools.custom_event_action'),
76+
'custom_event' => env('TGN_VIEW_TOOL_CUSTOM_EVENT', 'tools.custom_event'),
77+
'set_menu_cmd' => env('TGN_VIEW_TOOL_SET_MENU_COMMAND', 'tools.set_menu_cmd'),
11878
],
11979
],
120-
12180
];

0 commit comments

Comments
 (0)