| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 92 | public function formIndexName() |
||
| 93 | { |
||
| 94 | $unique = $this->_unique; |
||
| 95 | $columns = $this->_columns; |
||
| 96 | if (!$this->_name) { |
||
| 97 | $indexName = Migration::formIndexName($this->_table, $columns, $unique ? '_unq' : '_idx', $this->migrate->db->tablePrefix); |
||
| 98 | $name = $this->migrate->expandTablePrefix($indexName); |
||
| 99 | } else { |
||
| 100 | $name = $this->_name; |
||
| 101 | } |
||
| 102 | return $name; |
||
| 103 | } |
||
| 119 | } |