@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | $chunks = []; |
220 | 220 | foreach ($fieldsList as $fieldName => $fieldValue) { |
221 | 221 | if ($fieldName != $idFieldName) { |
222 | - $chunks[]= "`" . $fieldName . "` = '" . $fieldValue . "'"; |
|
222 | + $chunks[] = "`" . $fieldName . "` = '" . $fieldValue . "'"; |
|
223 | 223 | } |
224 | 224 | } |
225 | 225 | |
@@ -243,11 +243,11 @@ discard block |
||
243 | 243 | foreach ($fieldsList as $fieldName => $fieldValue) { |
244 | 244 | if ($fieldName != $idFieldName) { |
245 | 245 | if (Tools::isDouble($fieldValue)) { |
246 | - $typesString.= "d"; |
|
246 | + $typesString .= "d"; |
|
247 | 247 | } elseif (Tools::isInteger($fieldValue)) { |
248 | - $typesString.= "i"; |
|
248 | + $typesString .= "i"; |
|
249 | 249 | } else { |
250 | - $typesString.= "s"; |
|
250 | + $typesString .= "s"; |
|
251 | 251 | } |
252 | 252 | } |
253 | 253 | } |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | $type = DBField::castType($type); |
269 | 269 | $typesString = ""; |
270 | 270 | while ($length > 0) { |
271 | - $typesString.= $type; |
|
271 | + $typesString .= $type; |
|
272 | 272 | $length--; |
273 | 273 | } |
274 | 274 | |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | if (!is_array($fieldValue)) { |
289 | 289 | if (!is_null($fieldValue)) { |
290 | 290 | $chunks[] = $fieldName . " = ?"; |
291 | - $this->types.= DBField::getType($fieldValue); |
|
291 | + $this->types .= DBField::getType($fieldValue); |
|
292 | 292 | $this->params[] = $fieldValue; |
293 | 293 | } else { |
294 | 294 | $chunks[] = $fieldName; |
@@ -299,12 +299,12 @@ discard block |
||
299 | 299 | |
300 | 300 | $chunks[] = $condition; |
301 | 301 | foreach ($localParams as $param) { |
302 | - $this->types.= DBField::getType($param); |
|
302 | + $this->types .= DBField::getType($param); |
|
303 | 303 | $this->params[] = $param; |
304 | 304 | } |
305 | 305 | } |
306 | 306 | } |
307 | - $this->query.= implode($separator, $chunks); |
|
307 | + $this->query .= implode($separator, $chunks); |
|
308 | 308 | } |
309 | 309 | |
310 | 310 | } |
@@ -137,8 +137,8 @@ discard block |
||
137 | 137 | $query .= " AND " . $this->conditions; |
138 | 138 | } |
139 | 139 | |
140 | - $query.= $this->getQueryOrderSQL(); |
|
141 | - $query.= " LIMIT 1"; |
|
140 | + $query .= $this->getQueryOrderSQL(); |
|
141 | + $query .= " LIMIT 1"; |
|
142 | 142 | |
143 | 143 | $fieldType = DBField::getType($fieldValue); |
144 | 144 | if (!$debug) { |
@@ -189,8 +189,8 @@ discard block |
||
189 | 189 | $query .= " WHERE " . $this->conditions; |
190 | 190 | } |
191 | 191 | |
192 | - $query.= $this->getQueryOrderSQL(); |
|
193 | - $query.= $this->getQueryLimitSQL(); |
|
192 | + $query .= $this->getQueryOrderSQL(); |
|
193 | + $query .= $this->getQueryLimitSQL(); |
|
194 | 194 | |
195 | 195 | if (!$debug) { |
196 | 196 | $stmt = DBCore::doSelectQuery($query); |
@@ -226,8 +226,8 @@ discard block |
||
226 | 226 | $query .= " AND " . $this->conditions; |
227 | 227 | } |
228 | 228 | |
229 | - $query.= $this->getQueryOrderSQL(); |
|
230 | - $query.= $this->getQueryLimitSQL(); |
|
229 | + $query .= $this->getQueryOrderSQL(); |
|
230 | + $query .= $this->getQueryLimitSQL(); |
|
231 | 231 | |
232 | 232 | $fieldType = DBField::getType($fieldValue); |
233 | 233 | if (!$debug) { |
@@ -481,11 +481,11 @@ discard block |
||
481 | 481 | |
482 | 482 | $fieldStr = "'" . $field . "' => "; |
483 | 483 | if ($attributes['null'] === 'YES' && is_null($attributes['default'])) { |
484 | - $fieldStr.= "null"; |
|
484 | + $fieldStr .= "null"; |
|
485 | 485 | } else { |
486 | - $fieldStr.= self::getPrintableSQLValue($attributes['type'], $attributes['default']); |
|
486 | + $fieldStr .= self::getPrintableSQLValue($attributes['type'], $attributes['default']); |
|
487 | 487 | } |
488 | - $fieldStr.= ", // " . $attributes['type'] . |
|
488 | + $fieldStr .= ", // " . $attributes['type'] . |
|
489 | 489 | ", " . (($attributes['null'] == "NO") ? "not null" : "null") |
490 | 490 | . ", default '" . $attributes['default'] . "'" . |
491 | 491 | ($extra ? ", " . $extra : "") . |
@@ -583,9 +583,9 @@ discard block |
||
583 | 583 | LIMIT 1"; |
584 | 584 | $typesString = DBPreparedQuery::sqlTypesString($fieldsList, $idFieldName); |
585 | 585 | if (Tools::isInteger($fieldsList[$idFieldName])) { |
586 | - $typesString.= "i"; |
|
586 | + $typesString .= "i"; |
|
587 | 587 | } else { |
588 | - $typesString.= "s"; |
|
588 | + $typesString .= "s"; |
|
589 | 589 | } |
590 | 590 | $valuesList = self::createValuesList($fieldsList, $idFieldName); |
591 | 591 | $valuesList[] = $dbObject->getId(); |