This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
17
{
18
/**
19
* Configure the console command's name and description
20
*/
21
protected function configure()
22
{
23
$this->setName('pio:send:customers');
24
$this->setDescription('Send all customers to the PredictionIO event server');
25
parent::configure();
26
}
27
28
/**
29
* Execute the command
30
*
31
* @param InputInterface $input
32
* @param OutputInterface $output
33
*/
34
protected function execute(InputInterface $input, OutputInterface $output)
35
{
36
$collection = $this->_getCustomerCollection();
37
$output->writeln('Preparing to send '. count($collection) .' customers');
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.