-
-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
This is two issues in one. The first is that new lines before comments disappear. They should be preserve. The second is with this explode
call. It's more readable before formatting.
Before
return [
/*
|--------------------------------------------------------------------------
| Stateful Domains
|--------------------------------------------------------------------------
|
| Requests from the following domains / hosts will receive stateful API
| authentication cookies. Typically, these should include your local
| and production domains which access your API via a frontend SPA.
|
*/
'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf(
'%s%s',
'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1',
Sanctum::currentApplicationUrlWithPort(),
// Sanctum::currentRequestHost(),
))),
];
After
return [
/*
* |--------------------------------------------------------------------------
* | Stateful Domains
* |--------------------------------------------------------------------------
* |
* | Requests from the following domains / hosts will receive stateful API
* | authentication cookies. Typically, these should include your local
* | and production domains which access your API via a frontend SPA.
* |
*/
'stateful' => explode(
',',
env(
'SANCTUM_STATEFUL_DOMAINS',
sprintf(
'%s%s',
'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1',
Sanctum::currentApplicationUrlWithPort(),
// Sanctum::currentRequestHost(),
),
),
),
];
Config
➜ ./vendor/bin/mago --version
mago 0.24.5
php_version = "8.4.0"
[source]
paths = ["src"]
includes = ["vendor"]
excludes = ["./vendor/composer", "./vendor/symfony"]
[format]
print_width = 180
tab_width = 4
use_tabs = false
null_type_hint = "question"
space_before_arrow_function_parameter_list_parenthesis = true
space_after_logical_not_unary_prefix_operator = true
always_break_named_arguments_list = false
preserve_breaking_member_access_chain = true
preserve_breaking_argument_list = true
preserve_breaking_array_like = true
preserve_breaking_parameter_list = true
preserve_breaking_attribute_list = true
preserve_breaking_conditional_expression = true
array_table_style_alignment = false
Metadata
Metadata
Assignees
Labels
No labels