| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 112 | 6 | public function apply() |
|
| 113 | { |
||
| 114 | 6 | $columns = $this->_columns; |
|
| 115 | 6 | if ($this->_length) { |
|
| 116 | 1 | foreach ($columns as $idx => $column) { |
|
| 117 | 1 | $columns[$idx] = "{$column}({$this->_length})"; |
|
| 118 | } |
||
| 119 | } |
||
| 120 | 6 | $this->migrate->createIndex($this->formIndexName(), $this->_table, $columns, $this->_unique); |
|
| 121 | 6 | } |
|
| 132 | } |