| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function addProtectionWarningToOutput(OutputInterface $output) |
||
| 26 | { |
||
| 27 | $checker = new SuperSakeChecker(); |
||
| 28 | if((bool)$checker->superSakeIsNotProtected()) { |
||
| 29 | $output->writeln("\n"); |
||
| 30 | $output->writeln('<error>The supersake file is accessible by browsers</error>'); |
||
| 31 | $output->writeln('<error>Please lock down the file by either : </error>'); |
||
| 32 | $output->writeln('<comment>Adding this to your .htaccess file</comment>'); |
||
| 33 | $output->writeln($checker->htaccessContent()); |
||
| 34 | $output->writeln('<comment>Or add this to the <fileExtensions allowUnlisted="true"> section of your web.config file if you are running on iis</comment>'); |
||
| 35 | $output->writeln($checker->webconfigContent()); |
||
| 36 | $output->writeln("\n"); |
||
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 41 |
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.