File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ' ]);
You can’t perform that action at this time.
0 commit comments