Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 30, 2018
1 parent caacc3e commit c25d3a5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Illuminate/Redis/Connectors/PhpRedisConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,9 @@ protected function createClient(array $config)
*/
protected function establishConnection($client, array $config)
{
if ($config['persistent'] ?? false) {
$this->establishPersistentConnection($client, $config);
} else {
$this->establishRegularConnection($client, $config);
}
($config['persistent'] ?? false)
? $this->establishPersistentConnection($client, $config)
: $this->establishRegularConnection($client, $config);
}

/**
Expand Down

0 comments on commit c25d3a5

Please sign in to comment.