| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 8 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | View Code Duplication | public function test() |
|
| 10 | { |
||
| 11 | $meta = $this->app->dispatch('module.assets'); |
||
| 12 | |||
| 13 | $this->assertArrayHasKey('js', $meta); |
||
| 14 | $this->assertArrayHasKey('test.js', $meta['js']); |
||
| 15 | $this->assertArrayHasKey('file.styl', $meta['styl']); |
||
| 16 | } |
||
| 17 | } |
||
| 18 |
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.