| Conditions | 2 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 21 | protected function writeSuperSakeFileToWebRoot() |
||
| 22 | { |
||
| 23 | try { |
||
| 24 | file_put_contents( |
||
| 25 | BASE_PATH . '/supersake', |
||
| 26 | file_get_contents(BASE_PATH . '/console/publish/supersake') |
||
| 27 | ); |
||
| 28 | $this->info('supersake file copied to webroot'); |
||
| 29 | }catch(Exception $e) { |
||
| 30 | $this->error($e->getMessage()); |
||
| 31 | } |
||
| 32 | } |
||
| 33 | } |
||
| 34 |
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.