Skip to content

Commit

Permalink
Replacing QueryExpression -> self where aplicable
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jan 2, 2013
1 parent 72a94e1 commit cff20da
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -41,7 +41,7 @@ public function add($conditions, $types = []) {
return $this;
}

if ($conditions instanceof QueryExpression && count($conditions) > 0) {
if ($conditions instanceof self && count($conditions) > 0) {
$this->_conditions[] = $conditions;
return $this;
}
Expand Down Expand Up @@ -175,7 +175,7 @@ public function sql() {

public function traverse($callable) {
foreach ($this->_conditions as $c) {
if ($c instanceof QueryExpression) {
if ($c instanceof self) {
$c->traverse($callable);
}
}
Expand Down Expand Up @@ -207,7 +207,7 @@ protected function _addConditions(array $conditions, array $types) {
continue;
}

if ($c instanceof QueryExpression && count($c) > 0) {
if ($c instanceof self && count($c) > 0) {
$this->_conditions[] = $c;
continue;
}
Expand Down

0 comments on commit cff20da

Please sign in to comment.