|
@@ -24,9 +24,9 @@ discard block |
|
|
block discarded – undo |
|
24
|
24
|
* @return $this |
|
25
|
25
|
* @throws QueryException |
|
26
|
26
|
*/ |
|
27
|
|
- public function groupBy( $column, array $allowedColumns = [] ) |
|
|
27
|
+ public function groupBy( $column, array $allowedColumns = [ ] ) |
|
28
|
28
|
{ |
|
29
|
|
- $column = $this->queryStructure->prepare($column); |
|
|
29
|
+ $column = $this->queryStructure->prepare( $column ); |
|
30
|
30
|
|
|
31
|
31
|
if ( !$this->validateColumn( $column, $allowedColumns ) ) |
|
32
|
32
|
throw new QueryException( 'Invalid column name in GROUP BY clause', QueryException::QUERY_ERROR_INVALID_COLUMN_NAME ); |
|
@@ -43,9 +43,9 @@ discard block |
|
|
block discarded – undo |
|
43
|
43
|
* @return $this |
|
44
|
44
|
* @throws QueryException |
|
45
|
45
|
*/ |
|
46
|
|
- public function groupByDesc( $column, array $allowedColumns = [] ) |
|
|
46
|
+ public function groupByDesc( $column, array $allowedColumns = [ ] ) |
|
47
|
47
|
{ |
|
48
|
|
- $column = $this->queryStructure->prepare($column); |
|
|
48
|
+ $column = $this->queryStructure->prepare( $column ); |
|
49
|
49
|
|
|
50
|
50
|
if ( !$this->validateColumn( $column, $allowedColumns ) ) |
|
51
|
51
|
throw new QueryException( 'Invalid column name in GROUP BY clause', QueryException::QUERY_ERROR_INVALID_COLUMN_NAME ); |
Please login to merge, or discard this patch.