Skip to content

Commit 7bc9ba2

Browse files
jbrooksukgithub-actions[bot]
authored andcommitted
Fix code styling
1 parent a04a98d commit 7bc9ba2

26 files changed

Lines changed: 245 additions & 224 deletions

‎app/Http/Middleware/TrustProxies.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TrustProxies extends LaravelTrustProxies
2121
/**
2222
* Handle an incoming request.
2323
*
24-
* @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next
24+
* @param Closure(Request): (Response) $next
2525
*/
2626
public function handle(Request $request, Closure $next): Response
2727
{

‎app/Models/User.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function casts(): array
5353
{
5454
return [
5555
'email_verified_at' => 'datetime',
56-
'password' => 'hashed',
56+
'password' => 'hashed',
5757
];
5858
}
5959

‎bootstrap/providers.php‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<?php
22

3+
use App\Providers\AppServiceProvider;
4+
use Cachet\CachetCoreServiceProvider;
5+
use Cachet\CachetDashboardServiceProvider;
6+
37
/*
48
* This file is part of Cachet.
59
*
@@ -10,7 +14,7 @@
1014
*/
1115

1216
return [
13-
App\Providers\AppServiceProvider::class,
14-
Cachet\CachetCoreServiceProvider::class,
15-
Cachet\CachetDashboardServiceProvider::class,
17+
AppServiceProvider::class,
18+
CachetCoreServiceProvider::class,
19+
CachetDashboardServiceProvider::class,
1620
];

‎config/app.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129

130130
'maintenance' => [
131131
'driver' => env('APP_MAINTENANCE_DRIVER', 'file'),
132-
'store' => env('APP_MAINTENANCE_STORE', 'database'),
132+
'store' => env('APP_MAINTENANCE_STORE', 'database'),
133133
],
134134

135135
];

‎config/auth.php‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
use App\Models\User;
4+
35
/*
46
* This file is part of Cachet.
57
*
@@ -23,7 +25,7 @@
2325
*/
2426

2527
'defaults' => [
26-
'guard' => env('AUTH_GUARD', 'web'),
28+
'guard' => env('AUTH_GUARD', 'web'),
2729
'passwords' => env('AUTH_PASSWORD_BROKER', 'users'),
2830
],
2931

@@ -46,7 +48,7 @@
4648

4749
'guards' => [
4850
'web' => [
49-
'driver' => 'session',
51+
'driver' => 'session',
5052
'provider' => 'users',
5153
],
5254
],
@@ -71,7 +73,7 @@
7173
'providers' => [
7274
'users' => [
7375
'driver' => 'eloquent',
74-
'model' => env('AUTH_MODEL', App\Models\User::class),
76+
'model' => env('AUTH_MODEL', User::class),
7577
],
7678

7779
// 'users' => [
@@ -102,8 +104,8 @@
102104
'passwords' => [
103105
'users' => [
104106
'provider' => 'users',
105-
'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'),
106-
'expire' => 60,
107+
'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'),
108+
'expire' => 60,
107109
'throttle' => 60,
108110
],
109111
],

‎config/broadcasting.php‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
'connections' => [
4141

4242
'reverb' => [
43-
'driver' => 'reverb',
44-
'key' => env('REVERB_APP_KEY'),
45-
'secret' => env('REVERB_APP_SECRET'),
46-
'app_id' => env('REVERB_APP_ID'),
43+
'driver' => 'reverb',
44+
'key' => env('REVERB_APP_KEY'),
45+
'secret' => env('REVERB_APP_SECRET'),
46+
'app_id' => env('REVERB_APP_ID'),
4747
'options' => [
48-
'host' => env('REVERB_HOST'),
49-
'port' => env('REVERB_PORT', 443),
48+
'host' => env('REVERB_HOST'),
49+
'port' => env('REVERB_PORT', 443),
5050
'scheme' => env('REVERB_SCHEME', 'https'),
5151
'useTLS' => env('REVERB_SCHEME', 'https') === 'https',
5252
],
@@ -56,17 +56,17 @@
5656
],
5757

5858
'pusher' => [
59-
'driver' => 'pusher',
60-
'key' => env('PUSHER_APP_KEY'),
61-
'secret' => env('PUSHER_APP_SECRET'),
62-
'app_id' => env('PUSHER_APP_ID'),
59+
'driver' => 'pusher',
60+
'key' => env('PUSHER_APP_KEY'),
61+
'secret' => env('PUSHER_APP_SECRET'),
62+
'app_id' => env('PUSHER_APP_ID'),
6363
'options' => [
64-
'cluster' => env('PUSHER_APP_CLUSTER'),
65-
'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com',
66-
'port' => env('PUSHER_PORT', 443),
67-
'scheme' => env('PUSHER_SCHEME', 'https'),
64+
'cluster' => env('PUSHER_APP_CLUSTER'),
65+
'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com',
66+
'port' => env('PUSHER_PORT', 443),
67+
'scheme' => env('PUSHER_SCHEME', 'https'),
6868
'encrypted' => true,
69-
'useTLS' => env('PUSHER_SCHEME', 'https') === 'https',
69+
'useTLS' => env('PUSHER_SCHEME', 'https') === 'https',
7070
],
7171
'client_options' => [
7272
// Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html
@@ -75,7 +75,7 @@
7575

7676
'ably' => [
7777
'driver' => 'ably',
78-
'key' => env('ABLY_KEY'),
78+
'key' => env('ABLY_KEY'),
7979
],
8080

8181
'log' => [

‎config/cache.php‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,28 +43,28 @@
4343
'stores' => [
4444

4545
'array' => [
46-
'driver' => 'array',
46+
'driver' => 'array',
4747
'serialize' => false,
4848
],
4949

5050
'database' => [
51-
'driver' => 'database',
52-
'connection' => env('DB_CACHE_CONNECTION'),
53-
'table' => env('DB_CACHE_TABLE', 'cache'),
51+
'driver' => 'database',
52+
'connection' => env('DB_CACHE_CONNECTION'),
53+
'table' => env('DB_CACHE_TABLE', 'cache'),
5454
'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'),
55-
'lock_table' => env('DB_CACHE_LOCK_TABLE'),
55+
'lock_table' => env('DB_CACHE_LOCK_TABLE'),
5656
],
5757

5858
'file' => [
59-
'driver' => 'file',
60-
'path' => storage_path('framework/cache/data'),
59+
'driver' => 'file',
60+
'path' => storage_path('framework/cache/data'),
6161
'lock_path' => storage_path('framework/cache/data'),
6262
],
6363

6464
'memcached' => [
65-
'driver' => 'memcached',
65+
'driver' => 'memcached',
6666
'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
67-
'sasl' => [
67+
'sasl' => [
6868
env('MEMCACHED_USERNAME'),
6969
env('MEMCACHED_PASSWORD'),
7070
],
@@ -73,25 +73,25 @@
7373
],
7474
'servers' => [
7575
[
76-
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
77-
'port' => env('MEMCACHED_PORT', 11211),
76+
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
77+
'port' => env('MEMCACHED_PORT', 11211),
7878
'weight' => 100,
7979
],
8080
],
8181
],
8282

8383
'redis' => [
84-
'driver' => 'redis',
85-
'connection' => env('REDIS_CACHE_CONNECTION', 'cache'),
84+
'driver' => 'redis',
85+
'connection' => env('REDIS_CACHE_CONNECTION', 'cache'),
8686
'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'),
8787
],
8888

8989
'dynamodb' => [
90-
'driver' => 'dynamodb',
91-
'key' => env('AWS_ACCESS_KEY_ID'),
92-
'secret' => env('AWS_SECRET_ACCESS_KEY'),
93-
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
94-
'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
90+
'driver' => 'dynamodb',
91+
'key' => env('AWS_ACCESS_KEY_ID'),
92+
'secret' => env('AWS_SECRET_ACCESS_KEY'),
93+
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
94+
'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
9595
'endpoint' => env('DYNAMODB_ENDPOINT'),
9696
],
9797

‎config/cachet.php‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
use App\Models\User;
4+
35
/*
46
* This file is part of Cachet.
57
*
@@ -42,7 +44,7 @@
4244
| This is the model that will be used to authenticate users. This model
4345
| must be an instance of Illuminate\Foundation\Auth\User.
4446
*/
45-
'user_model' => env('CACHET_USER_MODEL', \App\Models\User::class),
47+
'user_model' => env('CACHET_USER_MODEL', User::class),
4648

4749
'user_migrations' => env('CACHET_USER_MIGRATIONS', true),
4850

@@ -131,7 +133,7 @@
131133
*/
132134
'webhooks' => [
133135
'queue_connection' => env('CACHET_WEBHOOK_QUEUE_CONNECTION', 'default'),
134-
'queue_name' => env('CACHET_WEBHOOK_QUEUE_NAME', 'webhooks'),
136+
'queue_name' => env('CACHET_WEBHOOK_QUEUE_NAME', 'webhooks'),
135137

136138
'logs' => [
137139
'prune_logs_after_days' => 30,
@@ -147,15 +149,15 @@
147149
|
148150
*/
149151
'supported_locales' => [
150-
'de' => 'Deutsch (DE)',
152+
'de' => 'Deutsch (DE)',
151153
'de_AT' => 'Deutsch (AT)',
152154
'de_CH' => 'Deutsch (CH)',
153-
'en' => 'English',
155+
'en' => 'English',
154156
'en_GB' => 'English (UK)',
155157
'es_ES' => 'Spanish (ES)',
156-
'ko' => '한국어',
157-
'nl' => 'Nederlands',
158-
'ph' => 'Filipino',
158+
'ko' => '한국어',
159+
'nl' => 'Nederlands',
160+
'ph' => 'Filipino',
159161
'pt_BR' => 'Português (BR)',
160162
'zh_CN' => '简体中文',
161163
'zh_TW' => '繁體中文',
@@ -183,7 +185,7 @@
183185
|
184186
*/
185187
'feed' => [
186-
'uri' => env('CACHET_FEED_URI', 'https://blog.cachethq.io/rss'),
188+
'uri' => env('CACHET_FEED_URI', 'https://blog.cachethq.io/rss'),
187189
'cache' => env('CACHET_FEED_CACHE', 3600),
188190
],
189191

0 commit comments

Comments
 (0)