| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 15 |
| 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 | 'jsOptions' => [ |
||
| 20 | 'wrap' => true, |
||
| 21 | ], |
||
| 22 | 'htmlOptions' => [ |
||
| 23 | 'width' => '100%', |
||
| 24 | 'height' => '200px' |
||
| 25 | ] |
||
| 26 | ]), |
||
| 27 | 'configuration_model' => null, |
||
| 28 | 'configuration_view' => null |
||
| 29 | ] |
||
| 30 | ); |
||
| 31 | } |
||
| 32 | |||
| 54 |
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.