Skip to content

Commit 184a0f4

Browse files
committed
formatting
1 parent b28acda commit 184a0f4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Illuminate/Redis/Connectors/PhpRedisConnector.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ protected function createClient(array $config)
6969
{
7070
return tap(new Redis, function ($client) use ($config) {
7171
if ($client instanceof RedisFacade) {
72-
$message = 'Please remove or rename the Redis facade alias in your "app" configuration file in order to avoid collision with the PHP Redis extension.';
73-
if (! extension_loaded('redis')) {
74-
$message = 'Please make sure the PHP Redis extension is installed and enabled.';
75-
}
76-
throw new LogicException($message);
72+
throw new LogicException(
73+
extension_loaded('redis')
74+
? 'Please remove or rename the Redis facade alias in your "app" configuration file in order to avoid collision with the PHP Redis extension.'
75+
: 'Please make sure the PHP Redis extension is installed and enabled.'
76+
);
7777
}
7878

7979
$this->establishConnection($client, $config);

0 commit comments

Comments
 (0)