@@ -269,7 +269,6 @@ |
||
269 | 269 | * Return parameters from the statment with dynamic number of parameters. |
270 | 270 | * |
271 | 271 | * @param resource $stmt Statement. |
272 | - * @param array $params Parameters. |
|
273 | 272 | */ |
274 | 273 | public static function bindResults($stmt) { |
275 | 274 | $resultSet = []; |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function prepareConditions() { |
85 | 85 | if (!empty($this->conditions)) { |
86 | - $this->query.= " WHERE "; |
|
86 | + $this->query .= " WHERE "; |
|
87 | 87 | $this->sqlPushValues($this->conditions, " AND "); |
88 | 88 | } |
89 | 89 | } |
@@ -93,14 +93,14 @@ discard block |
||
93 | 93 | */ |
94 | 94 | public function prepareOrder() { |
95 | 95 | if (!empty($this->order)) { |
96 | - $this->query.= " ORDER BY"; |
|
96 | + $this->query .= " ORDER BY"; |
|
97 | 97 | if (is_array($this->order)) { |
98 | 98 | foreach ($this->order as $fieldName => $ord) { |
99 | - $this->query.= " " . $fieldName . " " . $ord . ","; |
|
99 | + $this->query .= " " . $fieldName . " " . $ord . ","; |
|
100 | 100 | } |
101 | 101 | $this->query = substr($this->query, 0, strlen($this->query) - 1); |
102 | 102 | } elseif (is_string($this->order)) { |
103 | - $this->query.= " " . $this->order; |
|
103 | + $this->query .= " " . $this->order; |
|
104 | 104 | } |
105 | 105 | } |
106 | 106 | } |
@@ -113,13 +113,13 @@ discard block |
||
113 | 113 | public function prepareLimit() { |
114 | 114 | if (!is_null($this->limit)) { |
115 | 115 | if (Tools::isInteger($this->limit)) { |
116 | - $this->query.= " LIMIT " . $this->limit; |
|
116 | + $this->query .= " LIMIT " . $this->limit; |
|
117 | 117 | $count = $this->limit; |
118 | 118 | } elseif (is_array($this->limit) && count($this->limit) == 2) { |
119 | 119 | $offset = $this->limit[0]; |
120 | 120 | $count = $this->limit[1]; |
121 | 121 | if (Tools::isInteger($offset) && Tools::isInteger($count)) { |
122 | - $this->query.= " LIMIT " . $offset . ", " . $count; |
|
122 | + $this->query .= " LIMIT " . $offset . ", " . $count; |
|
123 | 123 | } else { |
124 | 124 | throw new DBCoreException("Invalid LIMIT param in select() method."); |
125 | 125 | } |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | $chunks = []; |
310 | 310 | foreach ($fieldsList as $fieldName => $fieldValue) { |
311 | 311 | if ($fieldName != $idFieldName) { |
312 | - $chunks[]= "`" . $fieldName . "` = '" . $fieldValue . "'"; |
|
312 | + $chunks[] = "`" . $fieldName . "` = '" . $fieldValue . "'"; |
|
313 | 313 | } |
314 | 314 | } |
315 | 315 | |
@@ -333,11 +333,11 @@ discard block |
||
333 | 333 | foreach ($fieldsList as $fieldName => $fieldValue) { |
334 | 334 | if ($fieldName != $idFieldName) { |
335 | 335 | if (Tools::isDouble($fieldValue)) { |
336 | - $typesString.= "d"; |
|
336 | + $typesString .= "d"; |
|
337 | 337 | } elseif (Tools::isInteger($fieldValue)) { |
338 | - $typesString.= "i"; |
|
338 | + $typesString .= "i"; |
|
339 | 339 | } else { |
340 | - $typesString.= "s"; |
|
340 | + $typesString .= "s"; |
|
341 | 341 | } |
342 | 342 | } |
343 | 343 | } |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | $type = DBField::castType($type); |
359 | 359 | $typesString = ""; |
360 | 360 | while ($length > 0) { |
361 | - $typesString.= $type; |
|
361 | + $typesString .= $type; |
|
362 | 362 | $length--; |
363 | 363 | } |
364 | 364 | |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | if (!is_array($fieldValue)) { |
379 | 379 | if (!is_null($fieldValue)) { |
380 | 380 | $chunks[] = $fieldName . " = ?"; |
381 | - $this->types.= DBField::getType($fieldValue); |
|
381 | + $this->types .= DBField::getType($fieldValue); |
|
382 | 382 | $this->params[] = $fieldValue; |
383 | 383 | } else { |
384 | 384 | $chunks[] = $fieldName; |
@@ -389,12 +389,12 @@ discard block |
||
389 | 389 | |
390 | 390 | $chunks[] = $condition; |
391 | 391 | foreach ($localParams as $param) { |
392 | - $this->types.= DBField::getType($param); |
|
392 | + $this->types .= DBField::getType($param); |
|
393 | 393 | $this->params[] = $param; |
394 | 394 | } |
395 | 395 | } |
396 | 396 | } |
397 | - $this->query.= implode($separator, $chunks); |
|
397 | + $this->query .= implode($separator, $chunks); |
|
398 | 398 | } |
399 | 399 | |
400 | 400 | } |