ThresholdRange::setInverted(): default to true

refs #8194
This commit is contained in:
Alexander A. Klimov 2016-04-27 11:30:23 +02:00 committed by Johannes Meyer
parent 7273959007
commit e006902254

View File

@ -42,7 +42,7 @@ class ThresholdRange
$rawRange = ltrim($rawRange); $rawRange = ltrim($rawRange);
if (substr($rawRange, 0, 1) === '@') { if (substr($rawRange, 0, 1) === '@') {
$range->setInverted(true); $range->setInverted();
$rawRange = substr($rawRange, 1); $rawRange = substr($rawRange, 1);
} }
@ -125,7 +125,7 @@ class ThresholdRange
* *
* @return $this * @return $this
*/ */
public function setInverted($inverted) public function setInverted($inverted = true)
{ {
$this->inverted = $inverted; $this->inverted = $inverted;
return $this; return $this;