It seems like the GitHub access token used for retrieving details about this repository from
GitHub became invalid. This might prevent certain types of inspections from being run (in
particular,
everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
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...
18
{
19
/**
20
* Configures the command
21
*/
22
public function configure()
23
{
24
$this
25
->setName('emulator:response')
26
->setDescription('Triggers Webhook with provided JSON string')
27
->setHelp('Triggers Webhook with provided JSON string')
28
->addArgument(
29
'path',
30
InputArgument::REQUIRED,
31
'Path to bot directory'
32
)
33
->addArgument(
34
'json',
35
InputArgument::REQUIRED,
36
'Json string'
37
);
38
}
39
40
/**
41
* Executes the command
42
*
43
* @param InputInterface $input
44
* @param OutputInterface $output
45
*/
46
protected function execute(InputInterface $input, OutputInterface $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.