@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | if (empty($conditions)) { |
139 | 139 | return ""; |
140 | 140 | } |
141 | - $fun = function ($o, $v) use ($conditions) { |
|
141 | + $fun = function($o, $v) use ($conditions) { |
|
142 | 142 | if (is_array($conditions[$v])) { |
143 | 143 | $qa = []; |
144 | 144 | foreach ($conditions[$v] as $key => $value) { |
@@ -185,8 +185,8 @@ discard block |
||
185 | 185 | private function bindPaginationToStatement(array $options, $stmt): void |
186 | 186 | { |
187 | 187 | if (array_key_exists('limit', $options)) { |
188 | - $stmt->bindValue(":o_offset", (int)($options['offset'] ?? 0), _PDO::PARAM_INT); |
|
189 | - $stmt->bindValue(":o_limit", (int)$options['limit'], _PDO::PARAM_INT); |
|
188 | + $stmt->bindValue(":o_offset", (int) ($options['offset'] ?? 0), _PDO::PARAM_INT); |
|
189 | + $stmt->bindValue(":o_limit", (int) $options['limit'], _PDO::PARAM_INT); |
|
190 | 190 | } |
191 | 191 | } |
192 | 192 | |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | |
217 | 217 | private function data(array $data): string |
218 | 218 | { |
219 | - $fun = function ($o, $v) { |
|
219 | + $fun = function($o, $v) { |
|
220 | 220 | return "{$o}, {$v} = :d_{$v}"; |
221 | 221 | }; |
222 | 222 | return trim((string) array_reduce(array_keys($data), $fun, ""), ", "); |