1
0
mirror of synced 2024-12-13 14:56:01 +03:00

Made the code prettier :)

This commit is contained in:
flip111 2013-10-01 16:53:53 +02:00
parent 72ae7f5497
commit 228a501014

View File

@ -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