Issues (158)

config/params.php (2 issues)

Labels
Severity
1
<?php
2
3
return [
4
    'appUrl' => env('APP_URL'),
5
    'adminEmail' => env('ADMIN_EMAIL'),
6
    'senderEmail' => env('SENDER_EMAIL'),
7
    'senderName' => env('SENDER_NAME', env('APP_NAME')),
0 ignored issues
show
It seems like env('APP_NAME') can also be of type string; however, parameter $default of env() does only seem to accept boolean, maybe add an additional type check? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

7
    'senderName' => env('SENDER_NAME', /** @scrutinizer ignore-type */ env('APP_NAME')),
Loading history...
8
    'telegramToken' => env('TELEGRAM_TOKEN'),
9
    'telegramBotName' => env('TELEGRAM_BOT_NAME'),
10
    'user.passwordResetTokenExpire' => env('USER_RESET_TOKEN_EXPIRE', 3600),
0 ignored issues
show
3600 of type integer is incompatible with the type boolean expected by parameter $default of env(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

10
    'user.passwordResetTokenExpire' => env('USER_RESET_TOKEN_EXPIRE', /** @scrutinizer ignore-type */ 3600),
Loading history...
11
    'seoKeywords' => env('SEO_KEYWORDS'),
12
    'seoDescription' => env('SEO_DESCRIPTION'),
13
    'googleAnalyticsAU' => env('GOOGLE_ANALYTICS_AU'),
14
    // 不记录 header 指定 key 的值到日志,默认值为 authorization,配置自定义会覆盖默认值
15
    'logFilterIgnoredHeaderKeys' => env('LOG_FILTER_IGNORED_HEADER_KEYS', 'authorization,token,cookie'),
16
    'logFilterIgnoredKeys' => env('LOG_FILTER_IGNORED_KEYS', 'password'), // 不记录日志
17
    'logFilterHideKeys' => env('LOG_FILTER_HIDE_KEYS'), // 用*代替所有数据
18
    'logFilterHalfHideKeys' => env('LOG_FILTER_HALF_HIDE_KEYS', 'email'), // 部分数据隐藏,只显示头部 20% 和尾部 20% 数据,剩下的用*代替
19
    'uploadSavePath' => '@webroot/uploads',
20
    'uploadWebPath' => '@web/uploads',
21
];
22