FilterQueryString: just cleaning up a little bit

This commit is contained in:
Thomas Gelf 2014-06-20 13:01:10 +02:00
parent 4bada86731
commit a3a2e97f18
1 changed files with 1 additions and 2 deletions

View File

@ -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);
} }
} }