@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Compolomus\LSQLQueryBuilder\Parts; |
4 | 4 | |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | public function set(array $values): string |
26 | 26 | { |
27 | 27 | return $this->concat( |
28 | - array_map(function ($field, $value) { |
|
28 | + array_map(function($field, $value) { |
|
29 | 29 | return $field . ' = ' . $value; |
30 | 30 | }, |
31 | 31 | $this->escapeField($this->fields), $this->preSet($values, 'u'))); |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | return 'UPDATE ' . $this->table() . ' SET ' |
47 | 47 | . (!is_null($this->values) |
48 | 48 | ? $this->values |
49 | - : $this->concat(array_map(function ($field) { |
|
50 | - return $this->escapeField($field) . ' = ?';; |
|
49 | + : $this->concat(array_map(function($field) { |
|
50 | + return $this->escapeField($field) . ' = ?'; ; |
|
51 | 51 | }, $this->fields)) |
52 | 52 | ) |
53 | 53 | . $this->getParts(); |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Compolomus\LSQLQueryBuilder\Parts; |
4 | 4 | |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | if (!empty($this->onPairs)) { |
82 | 82 | $result = []; |
83 | 83 | foreach ($this->table as $counter => $join) { |
84 | - $result[] = $this->concatWhere(array_map(function ($item) use ($join) { |
|
84 | + $result[] = $this->concatWhere(array_map(function($item) use ($join) { |
|
85 | 85 | return $this->base->table() . '.' . $this->escapeField($item[0]) . ' = ' . $this->escapeField($join) . '.' . $this->escapeField($item[1]); |
86 | 86 | }, $this->onPairs[$counter])); |
87 | 87 | } |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Compolomus\LSQLQueryBuilder\Parts; |
4 | 4 |