Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticalHippo committed Jun 24, 2018
1 parent e961224 commit 314552e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Redis/Connectors/PhpRedisConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected function createClient(array $config)
*/
protected function establishConnection($client, array $config)
{
if($config['persistent'] ?? false) {
if ($config['persistent'] ?? false) {
$this->establishPersistentConnection($client, $config);
} else {
$this->establishRegularConnection($client, $config);
Expand All @@ -112,7 +112,7 @@ protected function establishPersistentConnection($client, array $config)
$config['host'],
$config['port'],
Arr::get($config, 'timeout', 0.0),
Arr::get($config, 'persistent_id', NULL)
Arr::get($config, 'persistent_id', null)
);
}

Expand All @@ -129,7 +129,7 @@ protected function establishRegularConnection($client, array $config)
$config['host'],
$config['port'],
Arr::get($config, 'timeout', 0.0),
Arr::get($config, 'reserved', NULL),
Arr::get($config, 'reserved', null),
Arr::get($config, 'retry_interval', 0)
);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Redis/RedisConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ public function connections()
'options' => ['prefix' => 'laravel:'],
'timeout' => 0.5,
'persistent' => true,
'persistent_id' => 'laravel'
'persistent_id' => 'laravel',
],
]);

Expand Down

0 comments on commit 314552e

Please sign in to comment.