@@ -48,7 +48,9 @@ discard block |
||
48 | 48 | private function applyFormatQuery() |
49 | 49 | { |
50 | 50 | // FORMAT\s(\w)*$ |
51 | - if (null === $this->format) return false; |
|
51 | + if (null === $this->format) { |
|
52 | + return false; |
|
53 | + } |
|
52 | 54 | $supportFormats= |
53 | 55 | "FORMAT\\s+TSV|FORMAT\\s+TSVRaw|FORMAT\\s+TSVWithNames|FORMAT\\s+TSVWithNamesAndTypes|FORMAT\\s+Vertical|FORMAT\\s+JSONCompact|FORMAT\\s+JSONEachRow|FORMAT\\s+TSKV|FORMAT\\s+TabSeparatedWithNames|FORMAT\\s+TabSeparatedWithNamesAndTypes|FORMAT\\s+TabSeparatedRaw|FORMAT\\s+BlockTabSeparated|FORMAT\\s+CSVWithNames|FORMAT\\s+CSV|FORMAT\\s+JSON|FORMAT\\s+TabSeparated"; |
54 | 56 | |
@@ -62,8 +64,7 @@ discard block |
||
62 | 64 | $this->format=$format; |
63 | 65 | |
64 | 66 | } |
65 | - } |
|
66 | - else { |
|
67 | + } else { |
|
67 | 68 | $this->sql = $this->sql . ' FORMAT ' . $this->format; |
68 | 69 | } |
69 | 70 |