Skip to content

Commit c25d3a5

Browse files
committed
formatting
1 parent caacc3e commit c25d3a5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Illuminate/Redis/Connectors/PhpRedisConnector.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,9 @@ protected function createClient(array $config)
9292
*/
9393
protected function establishConnection($client, array $config)
9494
{
95-
if ($config['persistent'] ?? false) {
96-
$this->establishPersistentConnection($client, $config);
97-
} else {
98-
$this->establishRegularConnection($client, $config);
99-
}
95+
($config['persistent'] ?? false)
96+
? $this->establishPersistentConnection($client, $config)
97+
: $this->establishRegularConnection($client, $config);
10098
}
10199

102100
/**

0 commit comments

Comments
 (0)