Passed
Push — master ( 94e56d...7c5cc2 )
by Tõnis
02:46 queued 27s
created
src/migrations/m180328_085629_add_indexes.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.