Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove useless else after return

Refs #41.
  • Loading branch information...
commit 7649ef7ab64754f8a28bbe6d1fdff2c1761cf396 1 parent eaeca74
@fzaninotto authored
Showing with 8 additions and 11 deletions.
  1. +8 −11 src/Propel/Runtime/Query/ModelCriteria.php
View
19 src/Propel/Runtime/Query/ModelCriteria.php
@@ -1866,20 +1866,17 @@ protected function getCriterionForClause($clause, $value, $bindingType = null)
if (substr_count($clause, '?') > 1) {
return new SeveralModelCriterion($this, $clause, $colMap, $value, $this->currentAlias);
}
-
return new BasicModelCriterion($this, $clause, $colMap, $value, $this->currentAlias);
- } else {
- // no column match in clause, must be an expression like '1=1'
- if (false !== strpos($clause, '?')) {
- if (null === $bindingType) {
- throw new PropelException(sprintf('Cannot determine the column to bind to the parameter in clause "%s".', $clause));
- }
-
- return new RawCriterion($this, $clause, $value, $bindingType);
+ }
+ // no column match in clause, must be an expression like '1=1'
+ if (false !== strpos($clause, '?')) {
+ if (null === $bindingType) {
+ throw new PropelException(sprintf('Cannot determine the column to bind to the parameter in clause "%s".', $clause));
}
-
- return new CustomCriterion($this, null, $clause);
+ return new RawCriterion($this, $clause, $value, $bindingType);
}
+
+ return new CustomCriterion($this, null, $clause);
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.