Made the code prettier :)
This commit is contained in:
parent
72ae7f5497
commit
228a501014
@ -1624,13 +1624,17 @@ class SqlWalker implements TreeWalker
|
|||||||
|
|
||||||
// ResultVariable
|
// ResultVariable
|
||||||
if (isset($this->queryComponents[$groupByItem]['resultVariable'])) {
|
if (isset($this->queryComponents[$groupByItem]['resultVariable'])) {
|
||||||
if ($this->queryComponents[$groupByItem]['resultVariable'] instanceof AST\PathExpression) {
|
$resultVariable = $this->queryComponents[$groupByItem]['resultVariable'];
|
||||||
return $this->walkPathExpression($this->queryComponents[$groupByItem]['resultVariable']);
|
|
||||||
} elseif (isset($this->queryComponents[$groupByItem]['resultVariable']->pathExpression)) {
|
if ($resultVariable instanceof AST\PathExpression) {
|
||||||
return $this->walkPathExpression($this->queryComponents[$groupByItem]['resultVariable']->pathExpression);
|
return $this->walkPathExpression($resultVariable);
|
||||||
} else {
|
|
||||||
return $this->walkResultVariable($groupByItem);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($resultVariable->pathExpression)) {
|
||||||
|
return $this->walkPathExpression($resultVariable->pathExpression);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->walkResultVariable($groupByItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
// IdentificationVariable
|
// IdentificationVariable
|
||||||
|
Loading…
Reference in New Issue
Block a user