mirror of
https://github.com/VladPolskiy/dokuwiki.git
synced 2025-08-01 15:51:59 +00:00
🤖 Rector and PHPCS fixes
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
9520a43554
commit
811d6efaae
@ -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)
|
||||
|
Reference in New Issue
Block a user