Skip to content

Commit ee23e95

Browse files
committed
Apply fixes from StyleCI
1 parent 6624a76 commit ee23e95

26 files changed

+364
-206
lines changed

app/Models/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function casts(): array
5555
{
5656
return [
5757
'email_verified_at' => 'datetime',
58-
'password' => 'hashed',
58+
'password' => 'hashed',
5959
];
6060
}
6161

bootstrap/app.php

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

3+
/*
4+
* This file is part of Cachet.
5+
*
6+
* (c) Alt Three Services Limited
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
use App\Providers\AppServiceProvider;
413
use Illuminate\Foundation\Application;
514
use Illuminate\Foundation\Configuration\Exceptions;

bootstrap/providers.php

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

3+
/*
4+
* This file is part of Cachet.
5+
*
6+
* (c) Alt Three Services Limited
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
return [
413
App\Providers\AppServiceProvider::class,
514
];

config/app.php

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

3+
/*
4+
* This file is part of Cachet.
5+
*
6+
* (c) Alt Three Services Limited
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
return [
413

514
/*
@@ -120,7 +129,7 @@
120129

121130
'maintenance' => [
122131
'driver' => env('APP_MAINTENANCE_DRIVER', 'file'),
123-
'store' => env('APP_MAINTENANCE_STORE', 'database'),
132+
'store' => env('APP_MAINTENANCE_STORE', 'database'),
124133
],
125134

126135
];

config/auth.php

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

3+
/*
4+
* This file is part of Cachet.
5+
*
6+
* (c) Alt Three Services Limited
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
return [
413

514
/*
@@ -14,7 +23,7 @@
1423
*/
1524

1625
'defaults' => [
17-
'guard' => env('AUTH_GUARD', 'web'),
26+
'guard' => env('AUTH_GUARD', 'web'),
1827
'passwords' => env('AUTH_PASSWORD_BROKER', 'users'),
1928
],
2029

@@ -37,7 +46,7 @@
3746

3847
'guards' => [
3948
'web' => [
40-
'driver' => 'session',
49+
'driver' => 'session',
4150
'provider' => 'users',
4251
],
4352
],
@@ -62,7 +71,7 @@
6271
'providers' => [
6372
'users' => [
6473
'driver' => 'eloquent',
65-
'model' => env('AUTH_MODEL', App\Models\User::class),
74+
'model' => env('AUTH_MODEL', App\Models\User::class),
6675
],
6776

6877
// 'users' => [
@@ -93,8 +102,8 @@
93102
'passwords' => [
94103
'users' => [
95104
'provider' => 'users',
96-
'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'),
97-
'expire' => 60,
105+
'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'),
106+
'expire' => 60,
98107
'throttle' => 60,
99108
],
100109
],

config/broadcasting.php

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

3+
/*
4+
* This file is part of Cachet.
5+
*
6+
* (c) Alt Three Services Limited
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
return [
413

514
/*
@@ -31,13 +40,13 @@
3140
'connections' => [
3241

3342
'reverb' => [
34-
'driver' => 'reverb',
35-
'key' => env('REVERB_APP_KEY'),
36-
'secret' => env('REVERB_APP_SECRET'),
37-
'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'),
3847
'options' => [
39-
'host' => env('REVERB_HOST'),
40-
'port' => env('REVERB_PORT', 443),
48+
'host' => env('REVERB_HOST'),
49+
'port' => env('REVERB_PORT', 443),
4150
'scheme' => env('REVERB_SCHEME', 'https'),
4251
'useTLS' => env('REVERB_SCHEME', 'https') === 'https',
4352
],
@@ -47,17 +56,17 @@
4756
],
4857

4958
'pusher' => [
50-
'driver' => 'pusher',
51-
'key' => env('PUSHER_APP_KEY'),
52-
'secret' => env('PUSHER_APP_SECRET'),
53-
'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'),
5463
'options' => [
55-
'cluster' => env('PUSHER_APP_CLUSTER'),
56-
'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com',
57-
'port' => env('PUSHER_PORT', 443),
58-
'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'),
5968
'encrypted' => true,
60-
'useTLS' => env('PUSHER_SCHEME', 'https') === 'https',
69+
'useTLS' => env('PUSHER_SCHEME', 'https') === 'https',
6170
],
6271
'client_options' => [
6372
// Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html
@@ -66,7 +75,7 @@
6675

6776
'ably' => [
6877
'driver' => 'ably',
69-
'key' => env('ABLY_KEY'),
78+
'key' => env('ABLY_KEY'),
7079
],
7180

7281
'log' => [

config/cache.php

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

3+
/*
4+
* This file is part of Cachet.
5+
*
6+
* (c) Alt Three Services Limited
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
use Illuminate\Support\Str;
413

514
return [
@@ -34,28 +43,28 @@
3443
'stores' => [
3544

3645
'array' => [
37-
'driver' => 'array',
46+
'driver' => 'array',
3847
'serialize' => false,
3948
],
4049

4150
'database' => [
42-
'driver' => 'database',
43-
'connection' => env('DB_CACHE_CONNECTION'),
44-
'table' => env('DB_CACHE_TABLE', 'cache'),
51+
'driver' => 'database',
52+
'connection' => env('DB_CACHE_CONNECTION'),
53+
'table' => env('DB_CACHE_TABLE', 'cache'),
4554
'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'),
46-
'lock_table' => env('DB_CACHE_LOCK_TABLE'),
55+
'lock_table' => env('DB_CACHE_LOCK_TABLE'),
4756
],
4857

4958
'file' => [
50-
'driver' => 'file',
51-
'path' => storage_path('framework/cache/data'),
59+
'driver' => 'file',
60+
'path' => storage_path('framework/cache/data'),
5261
'lock_path' => storage_path('framework/cache/data'),
5362
],
5463

5564
'memcached' => [
56-
'driver' => 'memcached',
65+
'driver' => 'memcached',
5766
'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
58-
'sasl' => [
67+
'sasl' => [
5968
env('MEMCACHED_USERNAME'),
6069
env('MEMCACHED_PASSWORD'),
6170
],
@@ -64,25 +73,25 @@
6473
],
6574
'servers' => [
6675
[
67-
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
68-
'port' => env('MEMCACHED_PORT', 11211),
76+
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
77+
'port' => env('MEMCACHED_PORT', 11211),
6978
'weight' => 100,
7079
],
7180
],
7281
],
7382

7483
'redis' => [
75-
'driver' => 'redis',
76-
'connection' => env('REDIS_CACHE_CONNECTION', 'cache'),
84+
'driver' => 'redis',
85+
'connection' => env('REDIS_CACHE_CONNECTION', 'cache'),
7786
'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'),
7887
],
7988

8089
'dynamodb' => [
81-
'driver' => 'dynamodb',
82-
'key' => env('AWS_ACCESS_KEY_ID'),
83-
'secret' => env('AWS_SECRET_ACCESS_KEY'),
84-
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
85-
'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'),
8695
'endpoint' => env('DYNAMODB_ENDPOINT'),
8796
],
8897

config/concurrency.php

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

3+
/*
4+
* This file is part of Cachet.
5+
*
6+
* (c) Alt Three Services Limited
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
return [
413

514
/*

config/cors.php

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

3+
/*
4+
* This file is part of Cachet.
5+
*
6+
* (c) Alt Three Services Limited
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
return [
413

514
/*

0 commit comments

Comments
 (0)