Fix phpcs in ConnectionManager

This commit is contained in:
Namoshek 2023-05-15 20:10:38 +02:00 committed by GitHub
parent b059586d08
commit 68c11c6b4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -144,8 +144,8 @@ class ConnectionManager
$settings = $this->buildConnectionSettings(Arr::get($config, 'connection_settings', [])); $settings = $this->buildConnectionSettings(Arr::get($config, 'connection_settings', []));
$repository = $this->application->make($repository); $repository = $this->application->make($repository);
$logger = $loggingEnabled ? $this->application->make('log') : null; $logger = $loggingEnabled ? $this->application->make('log') : null;
if($logger && $logChannel) { if ($logger && $logChannel) {
$logger = $logger->channel($logChannel); $logger = $logger->channel($logChannel);
} }