Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
99 | 9 | public function formIndexName() |
|
100 | { |
||
101 | 9 | $unique = $this->_unique; |
|
102 | 9 | $columns = $this->_columns; |
|
103 | 9 | if (!$this->_name) { |
|
104 | 8 | $indexName = Migration::formIndexName($this->_table, $columns, $unique ? '_unq' : '_idx', $this->migrate->db->tablePrefix); |
|
105 | 8 | $name = $this->migrate->expandTablePrefix($indexName); |
|
106 | } else { |
||
107 | 1 | $name = $this->_name; |
|
108 | } |
||
109 | 9 | return $name; |
|
110 | } |
||
132 | } |