FilterQueryString: just cleaning up a little bit
This commit is contained in:
parent
4bada86731
commit
a3a2e97f18
|
@ -151,7 +151,6 @@ class FilterQueryString
|
||||||
|
|
||||||
if ($next === ')') {
|
if ($next === ')') {
|
||||||
if ($nestingLevel > 0) {
|
if ($nestingLevel > 0) {
|
||||||
echo "Got )<br>";
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->parseError($next);
|
$this->parseError($next);
|
||||||
|
@ -162,7 +161,6 @@ class FilterQueryString
|
||||||
}
|
}
|
||||||
$this->parseError($next);
|
$this->parseError($next);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($nestingLevel === 0 && count($filters) === 1) {
|
if ($nestingLevel === 0 && count($filters) === 1) {
|
||||||
|
@ -177,6 +175,7 @@ class FilterQueryString
|
||||||
case '&': return Filter::matchAll($filters);
|
case '&': return Filter::matchAll($filters);
|
||||||
case '|': return Filter::matchAny($filters);
|
case '|': return Filter::matchAny($filters);
|
||||||
case '!': return Filter::not($filters);
|
case '!': return Filter::not($filters);
|
||||||
|
case null: return Filter::matchAll();
|
||||||
default: $this->parseError($op);
|
default: $this->parseError($op);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue