🤖 Rector and PHPCS fixes

This commit is contained in:
splitbrain
2024-12-18 08:23:44 +00:00
committed by github-actions[bot]
parent 9520a43554
commit 811d6efaae

View File

@ -293,7 +293,7 @@ class Installer
// large downloads may take a while on slow connections, so we try to extend the timeout to 4 minutes
// 4 minutes was chosen, because HTTP servers and proxies often have a 5 minute timeout
if (php_sapi_name() === 'cli' || @set_time_limit(60 * 4)) {
if (PHP_SAPI === 'cli' || @set_time_limit(60 * 4)) {
$http->timeout = 60 * 4 - 5; // nearly 4 minutes
} else {
$http->timeout = 25; // max. 25 sec (a bit less than default execution time)