Skip to content

Commit 314552e

Browse files
Apply fixes from StyleCI
1 parent e961224 commit 314552e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Illuminate/Redis/Connectors/PhpRedisConnector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected function createClient(array $config)
9292
*/
9393
protected function establishConnection($client, array $config)
9494
{
95-
if($config['persistent'] ?? false) {
95+
if ($config['persistent'] ?? false) {
9696
$this->establishPersistentConnection($client, $config);
9797
} else {
9898
$this->establishRegularConnection($client, $config);
@@ -112,7 +112,7 @@ protected function establishPersistentConnection($client, array $config)
112112
$config['host'],
113113
$config['port'],
114114
Arr::get($config, 'timeout', 0.0),
115-
Arr::get($config, 'persistent_id', NULL)
115+
Arr::get($config, 'persistent_id', null)
116116
);
117117
}
118118

@@ -129,7 +129,7 @@ protected function establishRegularConnection($client, array $config)
129129
$config['host'],
130130
$config['port'],
131131
Arr::get($config, 'timeout', 0.0),
132-
Arr::get($config, 'reserved', NULL),
132+
Arr::get($config, 'reserved', null),
133133
Arr::get($config, 'retry_interval', 0)
134134
);
135135
}

tests/Redis/RedisConnectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ public function connections()
615615
'options' => ['prefix' => 'laravel:'],
616616
'timeout' => 0.5,
617617
'persistent' => true,
618-
'persistent_id' => 'laravel'
618+
'persistent_id' => 'laravel',
619619
],
620620
]);
621621

0 commit comments

Comments
 (0)