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
* CreateSchemaCommand constructor.
20
*
21
* @param array $parameters
22
*/
23
public function __construct(array $parameters)
24
{
25
parent::__construct(
26
'iml_cache_destroy_schema',
27
'pdo',
28
$parameters
29
);
30
}
31
32
protected function configure()
33
{
34
$this
35
->setName('iml:cache:schema:destroy')
36
->setDescription('Destroys database schema.')
37
->setHelp('This command destroys the database schema (only with PDO driver).')
38
;
39
}
40
41
protected function execute(InputInterface $input, OutputInterface $output)
The method destroySchema() does not exist on InMemoryList\Domain\Mode...ListRepositoryInterface. It seems like you code against a sub-type of InMemoryList\Domain\Mode...ListRepositoryInterface such as InMemoryList\Infrastruct...rsistance\PdoRepository.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
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.