@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * @return $this |
19 | 19 | * @throws QueryBuilderException |
20 | 20 | */ |
21 | - public function column($column, bool $clearAll = false) |
|
21 | + public function column ($column, bool $clearAll = false) |
|
22 | 22 | { |
23 | 23 | if (empty($column)) { |
24 | 24 | throw new QueryBuilderException('You must pass $column to column method!'); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | /** |
41 | 41 | * @return string |
42 | 42 | */ |
43 | - protected function buildColumnQueryPart(): string |
|
43 | + protected function buildColumnQueryPart (): string |
|
44 | 44 | { |
45 | 45 | return empty($this->column) ? '*' : \implode(', ', $this->column); |
46 | 46 | } |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * @return $this |
20 | 20 | * @throws QueryBuilderException |
21 | 21 | */ |
22 | - public function having(string $condition, array $bind = []) |
|
22 | + public function having (string $condition, array $bind = []) |
|
23 | 23 | { |
24 | 24 | if (!$condition) { |
25 | 25 | throw new QueryBuilderException('You must pass $condition to having function!'); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | /** |
38 | 38 | * @return null|string |
39 | 39 | */ |
40 | - protected function buildHavingQueryPart(): ?string |
|
40 | + protected function buildHavingQueryPart (): ?string |
|
41 | 41 | { |
42 | 42 | return empty($this->having) |
43 | 43 | ? null |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * @return $this |
20 | 20 | * @throws QueryBuilderException |
21 | 21 | */ |
22 | - public function table($table, bool $clearAll = false) |
|
22 | + public function table ($table, bool $clearAll = false) |
|
23 | 23 | { |
24 | 24 | if (empty($table)) { |
25 | 25 | throw new QueryBuilderException('You must pass $table to table method!'); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | /** |
42 | 42 | * @return null|string |
43 | 43 | */ |
44 | - protected function buildTableQueryPart(): ?string |
|
44 | + protected function buildTableQueryPart (): ?string |
|
45 | 45 | { |
46 | 46 | return \reset($this->table) ?: null; |
47 | 47 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | /** |
50 | 50 | * @return null|string |
51 | 51 | */ |
52 | - protected function buildFromQueryPart(): ?string |
|
52 | + protected function buildFromQueryPart (): ?string |
|
53 | 53 | { |
54 | 54 | return empty($this->table) |
55 | 55 | ? null |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * @return $this |
20 | 20 | * @throws QueryBuilderException |
21 | 21 | */ |
22 | - public function unionAll(QueryBuilderInterface $queryBuilder) |
|
22 | + public function unionAll (QueryBuilderInterface $queryBuilder) |
|
23 | 23 | { |
24 | 24 | if (CommandEnum::SELECT != $queryBuilder->commandData()) { |
25 | 25 | throw new QueryBuilderException(\sprintf( |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | /** |
39 | 39 | * @return null|string |
40 | 40 | */ |
41 | - protected function buildUnionAllQueryPart(): ?string |
|
41 | + protected function buildUnionAllQueryPart (): ?string |
|
42 | 42 | { |
43 | 43 | return empty($this->unionAll) ? null : \implode(' UNION ALL ', $this->unionAll); |
44 | 44 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * @return $this |
19 | 19 | * @throws QueryBuilderException |
20 | 20 | */ |
21 | - public function groupBy($groupBy) |
|
21 | + public function groupBy ($groupBy) |
|
22 | 22 | { |
23 | 23 | if (empty($groupBy)) { |
24 | 24 | throw new QueryBuilderException('You must pass $groupBy to groupBy method!'); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * @return null|string |
38 | 38 | */ |
39 | - protected function buildGroupByQueryPart(): ?string |
|
39 | + protected function buildGroupByQueryPart (): ?string |
|
40 | 40 | { |
41 | 41 | return empty($this->groupBy) |
42 | 42 | ? null |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * @return $this |
24 | 24 | * @throws QueryBuilderException |
25 | 25 | */ |
26 | - public function limit(int $limit) |
|
26 | + public function limit (int $limit) |
|
27 | 27 | { |
28 | 28 | if (0 >= $limit) { |
29 | 29 | throw new QueryBuilderException('You must pass $limit to limit method!'); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * @return $this |
41 | 41 | * @throws QueryBuilderException |
42 | 42 | */ |
43 | - public function offset(int $offset) |
|
43 | + public function offset (int $offset) |
|
44 | 44 | { |
45 | 45 | if (0 > $offset) { |
46 | 46 | throw new QueryBuilderException('You must pass $offset to offset method!'); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * |
62 | 62 | * @return $this |
63 | 63 | */ |
64 | - public function limitWithOffset(int $limit, int $offset) |
|
64 | + public function limitWithOffset (int $limit, int $offset) |
|
65 | 65 | { |
66 | 66 | return $this->limit($limit)->offset($offset); |
67 | 67 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | /** |
70 | 70 | * @return null|string |
71 | 71 | */ |
72 | - protected function buildLimitQueryPart(): ?string |
|
72 | + protected function buildLimitQueryPart (): ?string |
|
73 | 73 | { |
74 | 74 | return empty($this->limit) ? null : \sprintf('%s %d', ConditionEnum::LIMIT, $this->limit); |
75 | 75 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | /** |
78 | 78 | * @return null|string |
79 | 79 | */ |
80 | - protected function buildOffsetQueryPart(): ?string |
|
80 | + protected function buildOffsetQueryPart (): ?string |
|
81 | 81 | { |
82 | 82 | return empty($this->offset) ? null : \sprintf('%s %d', ConditionEnum::OFFSET, $this->offset); |
83 | 83 | } |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * |
18 | 18 | * @return $this |
19 | 19 | */ |
20 | - public function set(string $column, $value) |
|
20 | + public function set (string $column, $value) |
|
21 | 21 | { |
22 | 22 | $columnNormalised = \sprintf( |
23 | 23 | '%s_Update', |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * @return null|string |
45 | 45 | */ |
46 | - protected function buildSetQueryPart(): ?string |
|
46 | + protected function buildSetQueryPart (): ?string |
|
47 | 47 | { |
48 | 48 | return empty($this->set) |
49 | 49 | ? null |
@@ -9,10 +9,10 @@ |
||
9 | 9 | * |
10 | 10 | * @return $this |
11 | 11 | */ |
12 | - public function command(string $command); |
|
12 | + public function command (string $command); |
|
13 | 13 | |
14 | 14 | /** |
15 | 15 | * @return string |
16 | 16 | */ |
17 | - public function commandData(): string; |
|
17 | + public function commandData (): string; |
|
18 | 18 | } |
@@ -11,5 +11,5 @@ |
||
11 | 11 | * |
12 | 12 | * @return $this |
13 | 13 | */ |
14 | - public function unionAll(QueryBuilderInterface $queryBuilder); |
|
14 | + public function unionAll (QueryBuilderInterface $queryBuilder); |
|
15 | 15 | } |