@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | )", |
68 | 68 | $prepared_arguments |
69 | 69 | ); |
70 | - $id = $insert_id !== false ? $insert_id : $this->db_prime()->id(); |
|
70 | + $id = $insert_id !== false ? $insert_id : $this->db_prime()->id(); |
|
71 | 71 | /** |
72 | 72 | * Id might be 0 if insertion failed or if we insert duplicate entry (which is fine since we use 'INSERT IGNORE' |
73 | 73 | */ |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | } |
181 | 181 | return $id; |
182 | 182 | } |
183 | - $columns = array_filter( |
|
183 | + $columns = array_filter( |
|
184 | 184 | $data_model, |
185 | 185 | function ($column) { |
186 | 186 | return !is_array($column) || !isset($column['data_model']); |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | $language_field_condition", |
258 | 258 | $id |
259 | 259 | ) ?: []; |
260 | - $language_field = isset($model['language_field']) ? $model['language_field'] : null; |
|
260 | + $language_field = isset($model['language_field']) ? $model['language_field'] : null; |
|
261 | 261 | /** |
262 | 262 | * If no rows found for current language - find another language that should contain some rows |
263 | 263 | */ |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | /** @noinspection ExceptionsAnnotatingAndHandlingInspection */ |
309 | 309 | $this->db_prime()->transaction( |
310 | 310 | function () use (&$result, $arguments) { |
311 | - $result = $this->update_internal($this->table, $this->data_model, $arguments);; |
|
311 | + $result = $this->update_internal($this->table, $this->data_model, $arguments); ; |
|
312 | 312 | } |
313 | 313 | ); |
314 | 314 | return $result; |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | return false; |
333 | 333 | } |
334 | 334 | list($prepared_arguments, $joined_tables) = $this->crud_arguments_preparation(array_slice($data_model, 1), $prepared_arguments, $id); |
335 | - $columns = implode( |
|
335 | + $columns = implode( |
|
336 | 336 | ',', |
337 | 337 | array_map( |
338 | 338 | function ($column) { |