code quality and backreference support in controllers.

This commit is contained in:
Taylor Otwell
2012-01-25 16:07:16 -06:00
parent ae56f68c87
commit d4c5114792
3 changed files with 35 additions and 7 deletions

View File

@@ -30,7 +30,11 @@ abstract class Grammar {
{
$segments = explode(' ', $value);
return $this->wrap($segments[0]).' AS '.$this->wrap($segments[2]);
return sprintf(
'%s AS %s',
$this->wrap($segments[0]),
$this->wrap($segments[2])
);
}
// Since columns may be prefixed with their corresponding table