fixed php-cs-fixer warnings

This commit is contained in:
Markus Frei 2021-06-02 08:34:55 +02:00
parent 34e6dec7f4
commit 2c67588367
1 changed files with 12 additions and 12 deletions

View File

@ -434,30 +434,30 @@ Raw output
return false;
}
// `opcache.save_comments=1` is a must, because disabling this configuration directive breaks
// Nextcloud - it relies on comment parsing for annotations.
// `opcache.save_comments=1` is a must, because disabling this configuration directive breaks
// Nextcloud - it relies on comment parsing for annotations.
if (!$this->iniGetWrapper->getBool('opcache.save_comments')) {
return false;
}
// from php.net:
// The maximum number of keys (and therefore scripts) in the OPcache hash table. The actual
// value used will be the first number in the set of prime numbers { 223, 463, 983, 1979,
// 3907, 7963, 16229, 32531, 65407, 130987, 262237, 524521, 1048793 } that is greater than
// or equal to the configured value. The minimum value is 200. The maximum value is 1000000.
// Values outside of this range are clamped to the permissible range.
// from php.net:
// The maximum number of keys (and therefore scripts) in the OPcache hash table. The actual
// value used will be the first number in the set of prime numbers { 223, 463, 983, 1979,
// 3907, 7963, 16229, 32531, 65407, 130987, 262237, 524521, 1048793 } that is greater than
// or equal to the configured value. The minimum value is 200. The maximum value is 1000000.
// Values outside of this range are clamped to the permissible range.
if ($this->iniGetWrapper->getNumeric('opcache.max_accelerated_files') <= 7963) {
return false;
}
// There were some mentions of specific apps capable of throwing the memory requirement here
// upwards toward/on/above 128 MB. Given that it is the suggested value.
// There were some mentions of specific apps capable of throwing the memory requirement here
// upwards toward/on/above 128 MB. Given that it is the suggested value.
if ($this->iniGetWrapper->getNumeric('opcache.memory_consumption') < 128) {
return false;
}
// 8 MB memory used to store interned strings is not enough (if you configure "8", you get
// 6 MB Buffer Size). 16 MB seem to be enough (you will get 12 MB Buffer Size)
// 8 MB memory used to store interned strings is not enough (if you configure "8", you get
// 6 MB Buffer Size). 16 MB seem to be enough (you will get 12 MB Buffer Size)
if ($this->iniGetWrapper->getNumeric('opcache.interned_strings_buffer') < 16) {
return false;
}