@@ -16,9 +16,9 @@ |
||
16 | 16 | |
17 | 17 | $this->primaryKey = is_array($primaryKey) ? $primaryKey : [$primaryKey]; |
18 | 18 | |
19 | - $this->fields = implode(',', array_map([$adapter, 'quote'], (array) $options->read('fields'))); |
|
19 | + $this->fields = implode(',', array_map([$adapter, 'quote'], (array)$options->read('fields'))); |
|
20 | 20 | |
21 | - $defaultSort = $options->read('defaultSort') !== false ? $options->read('defaultSort') : implode(', ', $this->primaryKey); |
|
21 | + $defaultSort = $options->read('defaultSort') !== false ? $options->read('defaultSort') : implode(', ', $this->primaryKey); |
|
22 | 22 | |
23 | 23 | $databaseModify = new DatabaseModify($adapter, $options->getEditMode(), $table); |
24 | 24 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | } |
18 | 18 | |
19 | 19 | public function optimizeColumns() { |
20 | - if (Database::EDIT_OPTIMISE & $this->alterDb && rand(0,500) == 1) $this->adapter->optimiseColumns($this->table); |
|
20 | + if (Database::EDIT_OPTIMISE & $this->alterDb && rand(0, 500) == 1) $this->adapter->optimiseColumns($this->table); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | public function getTryInsertAgain($tryagain) { |