|
|
@@ -718,7 +718,7 @@ class Zend_Db_Select
|
|
|
{
|
|
|
if ($part == null) {
|
|
|
$this->_parts = self::$_partsInit;
|
|
|
- } else if (array_key_exists($part, self::$_partsInit)) {
|
|
|
+ } elseif (array_key_exists($part, self::$_partsInit)) {
|
|
|
$this->_parts[$part] = self::$_partsInit[$part];
|
|
|
}
|
|
|
return $this;
|
|
|
@@ -768,7 +768,7 @@ class Zend_Db_Select
|
|
|
|
|
|
if (empty($name)) {
|
|
|
$correlationName = $tableName = '';
|
|
|
- } else if (is_array($name)) {
|
|
|
+ } elseif (is_array($name)) {
|
|
|
// Must be array($correlationName => $tableName) or array($ident, ...)
|
|
|
foreach ($name as $_correlationName => $_tableName) {
|
|
|
if (is_string($_correlationName)) {
|
|
|
@@ -782,10 +782,10 @@ class Zend_Db_Select
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
|
- } else if ($name instanceof Zend_Db_Expr|| $name instanceof Zend_Db_Select) {
|
|
|
+ } elseif ($name instanceof Zend_Db_Expr|| $name instanceof Zend_Db_Select) {
|
|
|
$tableName = $name;
|
|
|
$correlationName = $this->_uniqueCorrelation('t');
|
|
|
- } else if (preg_match('/^(.+)\s+AS\s+(.+)$/i', $name, $m)) {
|
|
|
+ } elseif (preg_match('/^(.+)\s+AS\s+(.+)$/i', $name, $m)) {
|
|
|
$tableName = $m[1];
|
|
|
$correlationName = $m[2];
|
|
|
} else {
|
|
|
@@ -1238,7 +1238,7 @@ class Zend_Db_Select
|
|
|
} else {
|
|
|
$order[] = $this->_adapter->quoteIdentifier($term[0], true) . ' ' . $term[1];
|
|
|
}
|
|
|
- } else if (is_numeric($term) && strval(intval($term)) == $term) {
|
|
|
+ } elseif (is_numeric($term) && strval(intval($term)) == $term) {
|
|
|
$order[] = (int)trim($term);
|
|
|
} else {
|
|
|
$order[] = $this->_adapter->quoteIdentifier($term, true);
|