From 901e5b23ef57ea32d9362abc8407f69e3d838de9 Mon Sep 17 00:00:00 2001 From: Leon Jacobs Date: Thu, 31 May 2018 17:54:11 +0200 Subject: [PATCH] Style fixes. --- src/Commands/Seat/Admin/Diagnose.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Commands/Seat/Admin/Diagnose.php b/src/Commands/Seat/Admin/Diagnose.php index 5e76cc7..a1d1aa7 100644 --- a/src/Commands/Seat/Admin/Diagnose.php +++ b/src/Commands/Seat/Admin/Diagnose.php @@ -217,13 +217,12 @@ public function check_redis() try { - if (config('database.redis.default.path') != null && config('database.redis.default.scheme') != null) { + if (config('database.redis.default.path') && config('database.redis.default.scheme')) { $redis = new Client([ 'scheme' => config('database.redis.default.scheme'), 'path' => config('database.redis.default.path'), ]); - } - else { + } else { $redis = new Client([ 'host' => config('database.redis.default.host'), 'port' => config('database.redis.default.port'),