Passed
Push — master ( 37b7eb...13ce29 )
by Adrian
04:11
created
src/Traits/Having.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 	 * @param string $glue
279 279
 	 * @return $this
280 280
 	 */
281
-	public function havingExpression( $whereString, array $bindParams = [], $glue = 'AND' )
281
+	public function havingExpression( $whereString, array $bindParams = [ ], $glue = 'AND' )
282 282
 	{
283 283
 		$whereString = $this->queryStructure->bindParamsExpression( $whereString, $bindParams );
284 284
 
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
 	 * @param array $bindParams
291 291
 	 * @return $this
292 292
 	 */
293
-	public function orHavingExpression( $whereString, array $bindParams = [] )
293
+	public function orHavingExpression( $whereString, array $bindParams = [ ] )
294 294
 	{
295 295
 		$whereString = $this->queryStructure->bindParamsExpression( $whereString, $bindParams );
296 296
 
Please login to merge, or discard this patch.
src/Traits/Utilities.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,9 @@
 block discarded – undo
28 28
 
29 29
 	protected function getExplainSyntax()
30 30
 	{
31
-		if ( $this->queryStructure->getElement( QueryStructure::EXPLAIN ) )
32
-			return 'EXPLAIN';
31
+		if ( $this->queryStructure->getElement( QueryStructure::EXPLAIN ) ) {
32
+					return 'EXPLAIN';
33
+		}
33 34
 
34 35
 		return '';
35 36
 	}
Please login to merge, or discard this patch.
src/DB/DbService.php 2 patches
Braces   +25 added lines, -22 removed lines patch added patch discarded remove patch
@@ -117,8 +117,9 @@  discard block
 block discarded – undo
117 117
 	{
118 118
 		$this->queryInit( $query, $params );
119 119
 
120
-		if ( $this->lastStatement === self::QUERY_TYPE_EXPLAIN )
121
-			return $this->sQuery->fetchAll( \PDO::FETCH_ASSOC );
120
+		if ( $this->lastStatement === self::QUERY_TYPE_EXPLAIN ) {
121
+					return $this->sQuery->fetchAll( \PDO::FETCH_ASSOC );
122
+		}
122 123
 
123 124
 		$Columns = $this->sQuery->fetchAll( \PDO::FETCH_NUM );
124 125
 
@@ -141,8 +142,9 @@  discard block
 block discarded – undo
141 142
 	{
142 143
 		$this->queryInit( $query, $params );
143 144
 
144
-		if ( $this->lastStatement === self::QUERY_TYPE_EXPLAIN )
145
-			return $this->sQuery->fetchAll( \PDO::FETCH_ASSOC );
145
+		if ( $this->lastStatement === self::QUERY_TYPE_EXPLAIN ) {
146
+					return $this->sQuery->fetchAll( \PDO::FETCH_ASSOC );
147
+		}
146 148
 
147 149
 		$result = $this->sQuery->fetch( $fetchmode );
148 150
 		$this->sQuery->closeCursor(); // Frees up the connection to the server so that other SQL statements may be issued,
@@ -159,8 +161,9 @@  discard block
 block discarded – undo
159 161
 	{
160 162
 		$this->queryInit( $query, $params );
161 163
 
162
-		if ( $this->lastStatement === self::QUERY_TYPE_EXPLAIN )
163
-			return $this->sQuery->fetchAll( \PDO::FETCH_ASSOC );
164
+		if ( $this->lastStatement === self::QUERY_TYPE_EXPLAIN ) {
165
+					return $this->sQuery->fetchAll( \PDO::FETCH_ASSOC );
166
+		}
164 167
 
165 168
 		$result = $this->sQuery->fetchColumn();
166 169
 		$this->sQuery->closeCursor(); // Frees up the connection to the server so that other SQL statements may be issued
@@ -242,11 +245,12 @@  discard block
 block discarded – undo
242 245
 
243 246
 	private function prepareParams( array $parameters )
244 247
 	{
245
-		if ( self::isArrayAssoc( $parameters ) )
246
-			$this->bindMore( $parameters );
247
-		else
248
-			foreach ( $parameters as $key => $val )
248
+		if ( self::isArrayAssoc( $parameters ) ) {
249
+					$this->bindMore( $parameters );
250
+		} else {
251
+					foreach ( $parameters as $key => $val )
249 252
 				$this->parameters[] = array( $key + 1, $val );
253
+		}
250 254
 	}
251 255
 
252 256
 	private function pdoBindValues()
@@ -254,14 +258,11 @@  discard block
 block discarded – undo
254 258
 		foreach ( $this->parameters as $param => $value ) {
255 259
 			if ( is_int( $value[ 1 ] ) ) {
256 260
 				$type = \PDO::PARAM_INT;
257
-			}
258
-			elseif ( is_bool( $value[ 1 ] ) ) {
261
+			} elseif ( is_bool( $value[ 1 ] ) ) {
259 262
 				$type = \PDO::PARAM_BOOL;
260
-			}
261
-			elseif ( is_null( $value[ 1 ] ) ) {
263
+			} elseif ( is_null( $value[ 1 ] ) ) {
262 264
 				$type = \PDO::PARAM_NULL;
263
-			}
264
-			else {
265
+			} else {
265 266
 				$type = \PDO::PARAM_STR;
266 267
 			}
267 268
 			$this->sQuery->bindValue( $value[ 0 ], $value[ 1 ], $type );
@@ -305,10 +306,11 @@  discard block
 block discarded – undo
305 306
 	{
306 307
 		$queryString = trim( $queryString );
307 308
 
308
-		if ( preg_match( '/^(select|insert|update|delete|replace|show|desc|explain)[\s]+/i', $queryString, $matches ) )
309
-			return strtoupper( $matches[ 1 ] );
310
-		else
311
-			return self::QUERY_TYPE_OTHER;
309
+		if ( preg_match( '/^(select|insert|update|delete|replace|show|desc|explain)[\s]+/i', $queryString, $matches ) ) {
310
+					return strtoupper( $matches[ 1 ] );
311
+		} else {
312
+					return self::QUERY_TYPE_OTHER;
313
+		}
312 314
 	}
313 315
 
314 316
 	/**
@@ -317,8 +319,9 @@  discard block
 block discarded – undo
317 319
 	 */
318 320
 	public static function isArrayAssoc( array $arr )
319 321
 	{
320
-		if ( array() === $arr )
321
-			return false;
322
+		if ( array() === $arr ) {
323
+					return false;
324
+		}
322 325
 
323 326
 		return array_keys( $arr ) !== range( 0, count( $arr ) - 1 );
324 327
 	}
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	/**
47 47
 	 * @var array
48 48
 	 */
49
-	private $parameters = [];
49
+	private $parameters = [ ];
50 50
 
51 51
 	/**
52 52
 	 * @var string;
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 		$column = null;
126 126
 
127 127
 		foreach ( $Columns as $cells ) {
128
-			$column[] = $cells[ 0 ];
128
+			$column[ ] = $cells[ 0 ];
129 129
 		}
130 130
 
131 131
 		return $column;
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 	 * @param array $parameters
210 210
 	 * @throws DbException
211 211
 	 */
212
-	private function queryInit( $query, $parameters = [] )
212
+	private function queryInit( $query, $parameters = [ ] )
213 213
 	{
214 214
 		$this->lastStatement = self::getQueryStatement( $query );
215 215
 		$this->createPdoConnection();
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 			 * Prepare query
221 221
 			 */
222 222
 			$this->sQuery = $this->pdo->prepare( $query );
223
-			$this->prepareParams($parameters);
223
+			$this->prepareParams( $parameters );
224 224
 			$this->pdoBindValues();
225 225
 			$this->sQuery->execute();
226 226
 			if ( DbConfig::getInstance()->isEnableLogQueryDuration() ) {
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 			$this->bindMore( $parameters );
247 247
 		else
248 248
 			foreach ( $parameters as $key => $val )
249
-				$this->parameters[] = array( $key + 1, $val );
249
+				$this->parameters[ ] = array( $key + 1, $val );
250 250
 	}
251 251
 
252 252
 	private function pdoBindValues()
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 	 */
289 289
 	public function bind( $para, $value )
290 290
 	{
291
-		$this->parameters[] = [ ":" . $para, $value ];
291
+		$this->parameters[ ] = [ ":" . $para, $value ];
292 292
 	}
293 293
 
294 294
 	public function CloseConnection()
Please login to merge, or discard this patch.
sample/select.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 use Qpdb\QueryBuilder\DB\DbService;
10 10
 use Qpdb\QueryBuilder\QueryBuild;
11 11
 
12
-include_once $_SERVER['DOCUMENT_ROOT'] . '/vendor/autoload.php';
12
+include_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/vendor/autoload.php';
13 13
 
14 14
 
15 15
 $query = QueryBuild::select( 'employees' )
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
 $oldInst = DbService::getInstance();
24 24
 
25 25
 
26
-var_dump($oldInst->isMasterOnly());
27
-var_dump($newInst->isMasterOnly());
26
+var_dump( $oldInst->isMasterOnly() );
27
+var_dump( $newInst->isMasterOnly() );
28 28
 
29 29
 
30 30
 echo "<pre>" . print_r( $query->getSyntax(), 1 ) . "</pre>";
Please login to merge, or discard this patch.
src/Traits/SelectFields.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,14 +63,14 @@
 block discarded – undo
63 63
 	 */
64 64
 	private function prepareArrayFields( $fieldsArray = array() )
65 65
 	{
66
-		$prepareArray = [];
66
+		$prepareArray = [ ];
67 67
 
68 68
 		foreach ( $fieldsArray as $field ) {
69 69
 			if ( gettype( $field ) !== QueryStructure::ELEMENT_TYPE_STRING )
70 70
 				throw new QueryException( 'Invalid select field type!', QueryException::QUERY_ERROR_SELECT_INVALID_FIELD );
71 71
 
72 72
 			if ( '' !== trim( $field ) )
73
-				$prepareArray[] = $this->queryStructure->prepare( $field );
73
+				$prepareArray[ ] = $this->queryStructure->prepare( $field );
74 74
 		}
75 75
 
76 76
 		return $prepareArray;
Please login to merge, or discard this patch.
Braces   +13 added lines, -10 removed lines patch added patch discarded remove patch
@@ -30,10 +30,11 @@  discard block
 block discarded – undo
30 30
 
31 31
 				$fields = $this->prepareArrayFields( $fields );
32 32
 
33
-				if ( count( $fields ) )
34
-					$this->queryStructure->setElement( QueryStructure::FIELDS, implode( ', ', $fields ) );
35
-				else
36
-					$this->queryStructure->setElement( QueryStructure::FIELDS, '*' );
33
+				if ( count( $fields ) ) {
34
+									$this->queryStructure->setElement( QueryStructure::FIELDS, implode( ', ', $fields ) );
35
+				} else {
36
+									$this->queryStructure->setElement( QueryStructure::FIELDS, '*' );
37
+				}
37 38
 				break;
38 39
 
39 40
 			case QueryStructure::ELEMENT_TYPE_STRING:
@@ -43,9 +44,9 @@  discard block
 block discarded – undo
43 44
 					$fields = explode( ',', $fields );
44 45
 					$fields = $this->prepareArrayFields( $fields );
45 46
 					$this->queryStructure->setElement( QueryStructure::FIELDS, implode( ', ', $fields ) );
47
+				} else {
48
+									$this->queryStructure->setElement( QueryStructure::FIELDS, '*' );
46 49
 				}
47
-				else
48
-					$this->queryStructure->setElement( QueryStructure::FIELDS, '*' );
49 50
 				break;
50 51
 
51 52
 			default:
@@ -66,11 +67,13 @@  discard block
 block discarded – undo
66 67
 		$prepareArray = [];
67 68
 
68 69
 		foreach ( $fieldsArray as $field ) {
69
-			if ( gettype( $field ) !== QueryStructure::ELEMENT_TYPE_STRING )
70
-				throw new QueryException( 'Invalid select field type!', QueryException::QUERY_ERROR_SELECT_INVALID_FIELD );
70
+			if ( gettype( $field ) !== QueryStructure::ELEMENT_TYPE_STRING ) {
71
+							throw new QueryException( 'Invalid select field type!', QueryException::QUERY_ERROR_SELECT_INVALID_FIELD );
72
+			}
71 73
 
72
-			if ( '' !== trim( $field ) )
73
-				$prepareArray[] = $this->queryStructure->prepare( $field );
74
+			if ( '' !== trim( $field ) ) {
75
+							$prepareArray[] = $this->queryStructure->prepare( $field );
76
+			}
74 77
 		}
75 78
 
76 79
 		return $prepareArray;
Please login to merge, or discard this patch.
src/Traits/WhereAndHavingBuilder.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
 		$pdoArray = array();
141 141
 		foreach ( $value as $item ) {
142
-			$pdoArray[] = $this->queryStructure->bindParam( 'a', $item );
142
+			$pdoArray[ ] = $this->queryStructure->bindParam( 'a', $item );
143 143
 		}
144 144
 		$body = [
145 145
 			$field,
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 			throw new QueryException( 'Invalid where array!', QueryException::QUERY_ERROR_WHERE_INVALID_PARAM_ARRAY );
217 217
 
218 218
 		if ( count( $param ) == 2 )
219
-			$param[] = '=';
219
+			$param[ ] = '=';
220 220
 
221 221
 		$param[ 0 ] = $this->queryStructure->prepare( $param[ 0 ] );
222 222
 		$param[ 2 ] = trim( strtoupper( $param[ 2 ] ) );
Please login to merge, or discard this patch.
Braces   +14 added lines, -10 removed lines patch added patch discarded remove patch
@@ -103,10 +103,11 @@  discard block
 block discarded – undo
103 103
 
104 104
 	private function makeInCondition()
105 105
 	{
106
-		if ( is_a( $this->temporaryParam[ 1 ], QuerySelect::class ) )
107
-			$this->inQuerySelect();
108
-		elseif ( is_array( $this->temporaryParam[ 1 ] ) )
109
-			$this->inArray();
106
+		if ( is_a( $this->temporaryParam[ 1 ], QuerySelect::class ) ) {
107
+					$this->inQuerySelect();
108
+		} elseif ( is_array( $this->temporaryParam[ 1 ] ) ) {
109
+					$this->inArray();
110
+		}
110 111
 	}
111 112
 
112 113
 	private function inQuerySelect()
@@ -182,8 +183,9 @@  discard block
 block discarded – undo
182 183
 	 */
183 184
 	private function getWhereAndHavingSyntax( $clauseType )
184 185
 	{
185
-		if ( count( $this->queryStructure->getElement( $clauseType ) ) == 0 )
186
-			return '';
186
+		if ( count( $this->queryStructure->getElement( $clauseType ) ) == 0 ) {
187
+					return '';
188
+		}
187 189
 
188 190
 		$where = '';
189 191
 		$last_type = 'where_start';
@@ -212,11 +214,13 @@  discard block
 block discarded – undo
212 214
 	 */
213 215
 	private function validateWhereParam( $param )
214 216
 	{
215
-		if ( count( $param ) < 2 )
216
-			throw new QueryException( 'Invalid where array!', QueryException::QUERY_ERROR_WHERE_INVALID_PARAM_ARRAY );
217
+		if ( count( $param ) < 2 ) {
218
+					throw new QueryException( 'Invalid where array!', QueryException::QUERY_ERROR_WHERE_INVALID_PARAM_ARRAY );
219
+		}
217 220
 
218
-		if ( count( $param ) == 2 )
219
-			$param[] = '=';
221
+		if ( count( $param ) == 2 ) {
222
+					$param[] = '=';
223
+		}
220 224
 
221 225
 		$param[ 0 ] = $this->queryStructure->prepare( $param[ 0 ] );
222 226
 		$param[ 2 ] = trim( strtoupper( $param[ 2 ] ) );
Please login to merge, or discard this patch.
src/Traits/OrderBy.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@  discard block
 block discarded – undo
24 24
 	 * @return $this
25 25
 	 * @throws QueryException
26 26
 	 */
27
-	public function orderBy( $column, array $allowedColumns = [] )
27
+	public function orderBy( $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 ORDER 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 orderByDesc( $column, array $allowedColumns = [] )
46
+	public function orderByDesc( $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 ORDER BY clause', QueryException::QUERY_ERROR_INVALID_COLUMN_NAME );
Please login to merge, or discard this patch.
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,8 +28,9 @@  discard block
 block discarded – undo
28 28
 	{
29 29
 		$column = $this->queryStructure->prepare($column);
30 30
 
31
-		if ( !$this->validateColumn( $column, $allowedColumns ) )
32
-			throw new QueryException( 'Invalid column name in ORDER BY clause', QueryException::QUERY_ERROR_INVALID_COLUMN_NAME );
31
+		if ( !$this->validateColumn( $column, $allowedColumns ) ) {
32
+					throw new QueryException( 'Invalid column name in ORDER BY clause', QueryException::QUERY_ERROR_INVALID_COLUMN_NAME );
33
+		}
33 34
 
34 35
 		$this->queryStructure->setElement( QueryStructure::ORDER_BY, $column );
35 36
 
@@ -47,8 +48,9 @@  discard block
 block discarded – undo
47 48
 	{
48 49
 		$column = $this->queryStructure->prepare($column);
49 50
 
50
-		if ( !$this->validateColumn( $column, $allowedColumns ) )
51
-			throw new QueryException( 'Invalid column name in ORDER BY clause', QueryException::QUERY_ERROR_INVALID_COLUMN_NAME );
51
+		if ( !$this->validateColumn( $column, $allowedColumns ) ) {
52
+					throw new QueryException( 'Invalid column name in ORDER BY clause', QueryException::QUERY_ERROR_INVALID_COLUMN_NAME );
53
+		}
52 54
 
53 55
 		$this->queryStructure->setElement( QueryStructure::ORDER_BY, $column . ' DESC' );
54 56
 
@@ -73,8 +75,9 @@  discard block
 block discarded – undo
73 75
 	 */
74 76
 	private function getOrderBySyntax()
75 77
 	{
76
-		if ( count( $this->queryStructure->getElement( QueryStructure::ORDER_BY ) ) )
77
-			return 'ORDER BY ' . QueryHelper::implode( $this->queryStructure->getElement( QueryStructure::ORDER_BY ), ', ' );
78
+		if ( count( $this->queryStructure->getElement( QueryStructure::ORDER_BY ) ) ) {
79
+					return 'ORDER BY ' . QueryHelper::implode( $this->queryStructure->getElement( QueryStructure::ORDER_BY ), ', ' );
80
+		}
78 81
 
79 82
 		return '';
80 83
 	}
Please login to merge, or discard this patch.
src/Traits/GroupBy.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -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.
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,8 +28,9 @@  discard block
 block discarded – undo
28 28
 	{
29 29
 		$column = $this->queryStructure->prepare($column);
30 30
 
31
-		if ( !$this->validateColumn( $column, $allowedColumns ) )
32
-			throw new QueryException( 'Invalid column name in GROUP BY clause', QueryException::QUERY_ERROR_INVALID_COLUMN_NAME );
31
+		if ( !$this->validateColumn( $column, $allowedColumns ) ) {
32
+					throw new QueryException( 'Invalid column name in GROUP BY clause', QueryException::QUERY_ERROR_INVALID_COLUMN_NAME );
33
+		}
33 34
 
34 35
 		$this->queryStructure->setElement( QueryStructure::GROUP_BY, $column );
35 36
 
@@ -47,8 +48,9 @@  discard block
 block discarded – undo
47 48
 	{
48 49
 		$column = $this->queryStructure->prepare($column);
49 50
 
50
-		if ( !$this->validateColumn( $column, $allowedColumns ) )
51
-			throw new QueryException( 'Invalid column name in GROUP BY clause', QueryException::QUERY_ERROR_INVALID_COLUMN_NAME );
51
+		if ( !$this->validateColumn( $column, $allowedColumns ) ) {
52
+					throw new QueryException( 'Invalid column name in GROUP BY clause', QueryException::QUERY_ERROR_INVALID_COLUMN_NAME );
53
+		}
52 54
 
53 55
 		$this->queryStructure->setElement( QueryStructure::GROUP_BY, $column . ' DESC' );
54 56
 
@@ -73,8 +75,9 @@  discard block
 block discarded – undo
73 75
 	 */
74 76
 	private function getGroupBySyntax()
75 77
 	{
76
-		if ( count( $this->queryStructure->getElement( QueryStructure::GROUP_BY ) ) )
77
-			return 'GROUP BY ' . QueryHelper::implode( $this->queryStructure->getElement( QueryStructure::GROUP_BY ), ', ' );
78
+		if ( count( $this->queryStructure->getElement( QueryStructure::GROUP_BY ) ) ) {
79
+					return 'GROUP BY ' . QueryHelper::implode( $this->queryStructure->getElement( QueryStructure::GROUP_BY ), ', ' );
80
+		}
78 81
 
79 82
 		return '';
80 83
 	}
Please login to merge, or discard this patch.