for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Symfony\Component\Console\Command\ListCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
* Class SilverstripeListCommand
*
* We really need NameSpaces in Silverstripe....
*/
class DefaultCommand extends ListCommand
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
protected function execute(InputInterface $input, OutputInterface $output)
parent::execute($input, $output);
$msg = $this->checkProtection();
if((bool)$msg) {
$output->writeln("\n");
$output->writeln('<error>'.$msg.'</error>');
}
* @return bool|string
public function checkProtection()
$checker = new SuperSakeChecker();
return $checker->superSakeIsNotProtected();
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.