minor #37693 Removed redundant strtolower in ConsumeMessagesCommand (vudaltsov)

This PR was merged into the 4.4 branch.

Discussion
----------

Removed redundant strtolower in ConsumeMessagesCommand

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | no
| License       | MIT
| Doc PR        | no

Commits
-------

e288834cda Removed redundant strtolower in ConsumeMessagesCommand
This commit is contained in:
Fabien Potencier 2020-07-29 07:55:08 +02:00
commit 600e5d1219

View File

@ -208,7 +208,7 @@ EOF
private function convertToBytes(string $memoryLimit): int
{
$memoryLimit = strtolower($memoryLimit);
$max = strtolower(ltrim($memoryLimit, '+'));
$max = ltrim($memoryLimit, '+');
if (0 === strpos($max, '0x')) {
$max = \intval($max, 16);
} elseif (0 === strpos($max, '0')) {