ThresholdRange: use substr() instead of strpos() where more performant

refs #8194
This commit is contained in:
Alexander A. Klimov 2016-04-27 10:30:02 +02:00 committed by Johannes Meyer
parent ddde4b447c
commit 746eb07862
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class ThresholdRange
$range = new static();
$rawRange = ltrim($rawRange);
if (strpos($rawRange, '@') === 0) {
if (substr($rawRange, 0, 1) === '@') {
$range->setInverted(true);
$rawRange = substr($rawRange, 1);
}