Browse Source

Fix phpcs.

Mark Story 1 year ago
parent
commit
d37d4fac4d
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/Database/Connection.php

+ 2 - 3
src/Database/Connection.php

@@ -37,7 +37,6 @@ use Cake\Log\Log;
 use Closure;
 use Psr\SimpleCache\CacheInterface;
 use Throwable;
-
 use function Cake\Core\env;
 
 /**
@@ -192,12 +191,12 @@ class Connection implements ConnectionInterface
             $message = 'The connection is going to be closed but there is an active transaction.';
 
             $requestUrl = env('REQUEST_URI');
-            if ($requestUrl !== null) {
+            if ($requestUrl) {
                 $message .= "\nRequest URL: " . $requestUrl;
             }
 
             $clientIp = env('REMOTE_ADDR');
-            if ($clientIp !== null) {
+            if ($clientIp) {
                 $message .= "\nClient IP: " . $clientIp;
             }