This method 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.
This method 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...
45
{
46
try
47
{
48
2
return $this->getList('genre/tv/list', $options);
49
}
50
1
catch (\Exception $ex)
51
{
52
1
throw new \Exception($ex->getMessage(), $ex->getCode(), $ex);
53
}
54
}
55
56
/**
57
* Generic getter list
58
* @param string $type
59
* @param array $options
60
* @return \Generator
61
* @throws \Exception
62
*/
63
5
private function getList(string $type, array $options): \Generator
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.