Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
68 | public function formIndexName() |
||
69 | { |
||
70 | $unique = $this->_unique; |
||
71 | $columns = $this->_columns; |
||
72 | if (!$this->_name) { |
||
73 | $indexName = Migration::formIndexName($this->_table, $columns, $unique ? 'unq' : 'idx'); |
||
74 | $name = $this->migrate->expandTablePrefix($indexName); |
||
75 | } else { |
||
76 | $name = $this->_name; |
||
77 | } |
||
78 | return $name; |
||
79 | } |
||
90 | } |