Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
50 | file_put_contents( |
||
51 | BASE_PATH.'/supersake', |
||
52 | file_get_contents(BASE_PATH.'/console/publish/supersake') |
||
53 | ); |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * protect the supersake file with htaccess. |
||
58 | */ |
||
59 | protected function writehtaccess() |
||
60 | { |
||
61 | $content = '# Deny access to supersake |
||
62 | <Files supersake> |
||
63 | Order allow,deny |
||
64 | Deny from all |
||
65 | </Files>'; |
||
66 | } |
||
76 |
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.