| @@ -21,7 +21,7 @@ | ||
| 21 | 21 |          if (is_array($reference)) { | 
| 22 | 22 | $tick = $reference[0]; | 
| 23 | 23 |              if (isset($reference[1])) { | 
| 24 | - $tick = $tick . '`.`' . $reference[1]; | |
| 24 | + $tick = $tick.'`.`'.$reference[1]; | |
| 25 | 25 | } | 
| 26 | 26 | $reference = $tick; | 
| 27 | 27 | } | 
| @@ -27,7 +27,7 @@ discard block | ||
| 27 | 27 | |
| 28 | 28 | $schema = Grammar::identifier($this->table); | 
| 29 | 29 |          if (!empty($this->alias)) { | 
| 30 | - $schema .= ' AS ' . Grammar::identifier($this->alias); | |
| 30 | + $schema .= ' AS '.Grammar::identifier($this->alias); | |
| 31 | 31 | } | 
| 32 | 32 | |
| 33 | 33 |          $ret = sprintf('SELECT %s FROM %s', $this->deck, $schema); | 
| @@ -42,10 +42,10 @@ discard block | ||
| 42 | 42 | Clause::LIMIT | 
| 43 | 43 | ] as $clause | 
| 44 | 44 |          ) { | 
| 45 | - if($this->clause($clause) === null) | |
| 45 | + if ($this->clause($clause) === null) | |
| 46 | 46 | continue; | 
| 47 | 47 | |
| 48 | - $ret .= PHP_EOL . $this->clause($clause); | |
| 48 | + $ret .= PHP_EOL.$this->clause($clause); | |
| 49 | 49 | } | 
| 50 | 50 | |
| 51 | 51 | return $ret; | 
| @@ -82,7 +82,7 @@ discard block | ||
| 82 | 82 |              if (is_int($alias)) { | 
| 83 | 83 | $alias = null; | 
| 84 | 84 | } | 
| 85 | -            if(!isset($this->deck)){ | |
| 85 | +            if (!isset($this->deck)) { | |
| 86 | 86 | $this->deck = new Deck($column, $alias); | 
| 87 | 87 |              } else { | 
| 88 | 88 | $this->deck->add($column, $alias); | 
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | protected function format($aggregate, string $direction = null): string | 
| 10 | 10 |      { | 
| 11 | 11 | $ret = is_string($aggregate) ? $aggregate : self::identifier($aggregate); | 
| 12 | - $ret .= ' ' . in_array($direction, ['ASC', 'DESC']) ? $direction : 'ASC'; | |
| 12 | + $ret .= ' '.in_array($direction, ['ASC', 'DESC']) ? $direction : 'ASC'; | |
| 13 | 13 | |
| 14 | 14 | return $ret; | 
| 15 | 15 | } | 
| @@ -28,7 +28,7 @@ discard block | ||
| 28 | 28 | |
| 29 | 29 | public function addRaw(string $raw): self | 
| 30 | 30 |      { | 
| 31 | - $this->aggregates .= ',' . $raw; | |
| 31 | + $this->aggregates .= ','.$raw; | |
| 32 | 32 | return $this; | 
| 33 | 33 | } | 
| 34 | 34 | |
| @@ -43,7 +43,7 @@ discard block | ||
| 43 | 43 | $ret = is_string($aggregate) ? $aggregate : self::identifier($aggregate); | 
| 44 | 44 | |
| 45 | 45 |          if ($alias !== null) { | 
| 46 | - $ret .= ' AS ' . self::identifier($alias); | |
| 46 | + $ret .= ' AS '.self::identifier($alias); | |
| 47 | 47 | } | 
| 48 | 48 | |
| 49 | 49 | return $ret; | 
| @@ -28,7 +28,7 @@ | ||
| 28 | 28 | return ''; | 
| 29 | 29 | } | 
| 30 | 30 | |
| 31 | -        return 'WHERE ' . implode(' AND ', $this->and); | |
| 31 | +        return 'WHERE '.implode(' AND ', $this->and); | |
| 32 | 32 | } | 
| 33 | 33 | |
| 34 | 34 | public function name(): string | 
| @@ -65,7 +65,7 @@ | ||
| 65 | 65 | |
| 66 | 66 | $schema = self::identifier($this->table); | 
| 67 | 67 |          if (!empty($this->alias)) { | 
| 68 | - $schema .= ' AS ' . self::identifier($this->alias); | |
| 68 | + $schema .= ' AS '.self::identifier($this->alias); | |
| 69 | 69 | } | 
| 70 | 70 | |
| 71 | 71 |          $columns = implode(',', $this->columns); | 
| @@ -21,7 +21,7 @@ | ||
| 21 | 21 | |
| 22 | 22 | public function __toString(): string | 
| 23 | 23 |      { | 
| 24 | - return 'GROUP BY ' . $this->deck; | |
| 24 | + return 'GROUP BY '.$this->deck; | |
| 25 | 25 | } | 
| 26 | 26 | |
| 27 | 27 | public function name(): string |