@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | * @return string |
| 305 | 305 | */ |
| 306 | 306 | protected function stringValue($value) { |
| 307 | - return "'" . $this->escape((string)$value) . "'"; |
|
| 307 | + return "'".$this->escape((string) $value)."'"; |
|
| 308 | 308 | } |
| 309 | 309 | |
| 310 | 310 | /** |
@@ -315,20 +315,20 @@ discard block |
||
| 315 | 315 | * @return string |
| 316 | 316 | */ |
| 317 | 317 | public function quote($fieldName) { |
| 318 | - return "`" . $this->escape((string)$fieldName) . "`"; |
|
| 318 | + return "`".$this->escape((string) $fieldName)."`"; |
|
| 319 | 319 | } |
| 320 | 320 | |
| 321 | 321 | public function makeAdjustString($fieldValue, $fieldName) { |
| 322 | 322 | return is_int($fieldName) |
| 323 | 323 | ? $fieldValue |
| 324 | - : (($fieldNameQuoted = $this->quote($fieldName)) . " = " . |
|
| 325 | - $fieldNameQuoted . " + (" . $this->castAsDbValue($fieldValue) . ")"); |
|
| 324 | + : (($fieldNameQuoted = $this->quote($fieldName))." = ". |
|
| 325 | + $fieldNameQuoted." + (".$this->castAsDbValue($fieldValue).")"); |
|
| 326 | 326 | } |
| 327 | 327 | |
| 328 | 328 | public function makeFieldEqualValue($fieldValue, $fieldName) { |
| 329 | 329 | return is_int($fieldName) |
| 330 | 330 | ? $fieldValue |
| 331 | - : ($this->quote($fieldName) . " = " . $this->castAsDbValue($fieldValue)); |
|
| 331 | + : ($this->quote($fieldName)." = ".$this->castAsDbValue($fieldValue)); |
|
| 332 | 332 | } |
| 333 | 333 | |
| 334 | 334 | /** |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | * @return string |
| 340 | 340 | */ |
| 341 | 341 | protected function quoteTable($tableName) { |
| 342 | - return "`{{" . $this->escape((string)$tableName) . "}}`"; |
|
| 342 | + return "`{{".$this->escape((string) $tableName)."}}`"; |
|
| 343 | 343 | } |
| 344 | 344 | |
| 345 | 345 | public function castAsDbValue($value) { |
@@ -376,21 +376,21 @@ discard block |
||
| 376 | 376 | protected function buildCommand() { |
| 377 | 377 | switch ($this->command) { |
| 378 | 378 | case static::UPDATE: |
| 379 | - $this->build[] = $this->command . " " . $this->quoteTable($this->table); |
|
| 379 | + $this->build[] = $this->command." ".$this->quoteTable($this->table); |
|
| 380 | 380 | break; |
| 381 | 381 | |
| 382 | 382 | case static::DELETE: |
| 383 | - $this->build[] = $this->command . " FROM " . $this->quoteTable($this->table); |
|
| 383 | + $this->build[] = $this->command." FROM ".$this->quoteTable($this->table); |
|
| 384 | 384 | break; |
| 385 | 385 | |
| 386 | 386 | case static::REPLACE: |
| 387 | 387 | case static::INSERT_IGNORE: |
| 388 | 388 | case static::INSERT: |
| 389 | - $this->build[] = $this->command . " INTO " . $this->quoteTable($this->table); |
|
| 389 | + $this->build[] = $this->command." INTO ".$this->quoteTable($this->table); |
|
| 390 | 390 | break; |
| 391 | 391 | |
| 392 | 392 | case static::SELECT: |
| 393 | - $this->build[] = $this->command . " "; |
|
| 393 | + $this->build[] = $this->command." "; |
|
| 394 | 394 | break; |
| 395 | 395 | } |
| 396 | 396 | } |
@@ -432,7 +432,7 @@ discard block |
||
| 432 | 432 | $compiled = array(); |
| 433 | 433 | |
| 434 | 434 | foreach ($this->values as $valuesVector) { |
| 435 | - $compiled[] = '(' . implode(',', HelperArray::map($valuesVector, array($this, 'castAsDbValue'))) . ')'; |
|
| 435 | + $compiled[] = '('.implode(',', HelperArray::map($valuesVector, array($this, 'castAsDbValue'))).')'; |
|
| 436 | 436 | } |
| 437 | 437 | |
| 438 | 438 | $this->build[] = implode(',', $compiled); |