Skip to content

Commit d33779d

Browse files
committed
feature: apply rector
1 parent c680caa commit d33779d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LogReader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected static function createLogReader(array $config): PhpLogReader
2727
{
2828
$logPath = $config['logPath'] ?? runtime_path() . '/logs';
2929
unset($config['logPath']);
30-
$config['enable'] = $config['enable'] ?? true;
30+
$config['enable'] ??= true;
3131

3232
return new PhpLogReader($logPath, $config);
3333
}
@@ -36,7 +36,7 @@ public static function registerRoute(): void
3636
{
3737
$config = (array)ConfigHelper::get('log-reader.route', []);
3838

39-
Route::group((string)($config['group'] ?? ''), function () {
39+
Route::group((string)($config['group'] ?? ''), function (): void {
4040
Route::get('', [LogReaderController::class, 'index']);
4141
Route::get('/index', [LogReaderController::class, 'index']);
4242
Route::get('/view', [LogReaderController::class, 'view']);

0 commit comments

Comments
 (0)