| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 8 | public function up() |
||
| 9 | { |
||
| 10 | |||
| 11 | $this->insert( |
||
| 12 | '{{%wysiwyg%}}', |
||
| 13 | [ |
||
| 14 | 'name' => 'Ace', |
||
| 15 | 'class_name' => 'devgroup\ace\Ace', |
||
| 16 | 'params' => Json::encode([ |
||
| 17 | 'mode' => 'html', |
||
| 18 | 'theme' => 'chrome', |
||
| 19 | 'htmlOptions' => [ |
||
| 20 | 'width' => '100%', |
||
| 21 | 'height' => '200px' |
||
| 22 | ] |
||
| 23 | ]), |
||
| 24 | 'configuration_model' => null, |
||
| 25 | 'configuration_view' => null |
||
| 26 | ] |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | |||
| 51 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.