From 779d5c7fc59eef90ed9f64fc290e773e493e57a5 Mon Sep 17 00:00:00 2001 From: Nicolae Iotu Date: Wed, 29 Nov 2023 01:42:51 +0000 Subject: [PATCH] Fix rector warning: to --- system/HTTP/CURLRequest.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/system/HTTP/CURLRequest.php b/system/HTTP/CURLRequest.php index 50f254e54308..9392e2446b8e 100644 --- a/system/HTTP/CURLRequest.php +++ b/system/HTTP/CURLRequest.php @@ -548,21 +548,21 @@ protected function setCURLOptions(array $curlOptions = [], array $config = []) // SSL Verification if (isset($config['verify'])) { - $config_verify = $config['verify']; + $configVerify = $config['verify']; - if (is_string($config_verify)) { - $file = realpath($config_verify) ?: $config_verify; + if (is_string($configVerify)) { + $file = realpath($configVerify) ?: $configVerify; if (! is_file($file)) { - throw HTTPException::forInvalidSSLKey($config_verify); + throw HTTPException::forInvalidSSLKey($configVerify); } $curlOptions[CURLOPT_CAINFO] = $file; $curlOptions[CURLOPT_SSL_VERIFYPEER] = true; $curlOptions[CURLOPT_SSL_VERIFYHOST] = 2; - } elseif (is_bool($config_verify)) { - $curlOptions[CURLOPT_SSL_VERIFYPEER] = $config_verify; - $curlOptions[CURLOPT_SSL_VERIFYHOST] = $config_verify ? 2 : 0; + } elseif (is_bool($configVerify)) { + $curlOptions[CURLOPT_SSL_VERIFYPEER] = $configVerify; + $curlOptions[CURLOPT_SSL_VERIFYHOST] = $configVerify ? 2 : 0; } }