Skip to content

Commit 811d6ef

Browse files
splitbraingithub-actions[bot]
authored andcommitted
🤖 Rector and PHPCS fixes
1 parent 9520a43 commit 811d6ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/plugins/extension/Installer.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public function downloadArchive($url)
293293

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

0 commit comments

Comments
 (0)