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...
13
{
14
protected $_projectPath;
15
16
protected function configure()
17
{
18
$this->_projectPath = getcwd();
19
20
$this->setName("vm:suspend");
21
$this->setDescription("Suspend your development machine");
22
}
23
24
/**
25
* @param InputInterface $input
26
* @param OutputInterface $output
27
* @return ProcessCommand
28
*/
29
protected function execute(InputInterface $input, OutputInterface $output)
30
{
31
$output->writeln('<info>Suspending your development machine</info>');
32
return new ProcessCommand('vagrant suspend', $this->_projectPath, $output);
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.