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...
23
{
24
/**
25
* @var PostRepository
26
*/
27
private $postRepository;
28
29
/**
30
* @var array
31
*/
32
private $filters;
33
34
/**
35
* @var LoggerInterface
36
*/
37
private $logger;
38
39
/**
40
* ListPosts constructor.
41
* @param PostRepository $postRepository
42
* @param array $filters
43
* @param LoggerInterface $logger
44
*/
45
public function __construct(PostRepository $postRepository, Array $filters, LoggerInterface $logger)
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.