@@ -16,13 +16,13 @@ discard block |
||
16 | 16 | $this->tableName = $model; |
17 | 17 | |
18 | 18 | if ($model === 'language') { |
19 | - $this->columns =[ |
|
19 | + $this->columns = [ |
|
20 | 20 | 'language', 'name' |
21 | 21 | ]; |
22 | 22 | } |
23 | 23 | |
24 | 24 | if ($model === 'language_translation') { |
25 | - $this->columns =[ |
|
25 | + $this->columns = [ |
|
26 | 26 | 'model_class', 'model_field_name', 'model_id' |
27 | 27 | ]; |
28 | 28 | } |
@@ -53,15 +53,15 @@ discard block |
||
53 | 53 | |
54 | 54 | |
55 | 55 | |
56 | - private function createIndexes(){ |
|
56 | + private function createIndexes() { |
|
57 | 57 | foreach ($this->columns as $column) { |
58 | - $this->createIndex($this->indexPrefix.$column,$this->tableName, $column); |
|
58 | + $this->createIndex($this->indexPrefix.$column, $this->tableName, $column); |
|
59 | 59 | } |
60 | 60 | } |
61 | 61 | |
62 | - private function dropIndexes(){ |
|
62 | + private function dropIndexes() { |
|
63 | 63 | foreach ($this->columns as $column) { |
64 | - $this->dropIndex($this->indexPrefix.$column,$this->tableName); |
|
64 | + $this->dropIndex($this->indexPrefix.$column, $this->tableName); |
|
65 | 65 | } |
66 | 66 | } |
67 | 67 |