Skip to content

Commit

Permalink
Fix code styles in getSQLForSelect
Browse files Browse the repository at this point in the history
  • Loading branch information
bingo-soft committed Oct 12, 2019
1 parent 6a65d25 commit 37c757d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Doctrine/DBAL/Query/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,11 +480,12 @@ public function select($select = null)
* ->from('users', 'u')
* </code>
*
* @return self
* @return $this This QueryBuilder instance.
*/
public function distinct() : self
{
$this->sqlParts['distinct'] = true;

return $this;
}

Expand Down Expand Up @@ -1117,7 +1118,7 @@ public function resetQueryPart($queryPartName)
*/
private function getSQLForSelect()
{
$query = 'SELECT ' . ($this->sqlParts['distinct'] ? 'DISTINCT ' : '') .
$query = 'SELECT ' . ($this->sqlParts['distinct'] ? 'DISTINCT ' : '') .
implode(', ', $this->sqlParts['select']);

$query .= ($this->sqlParts['from'] ? ' FROM ' . implode(', ', $this->getFromClauses()) : '')
Expand Down

0 comments on commit 37c757d

Please sign in to comment.