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...
24
{
25
/**
26
* @var PageFactory
27
*/
28
protected $resultPageFactory;
29
30
/**
31
* @param Action\Context $context
32
* @param PageFactory $resultPageFactory
33
*/
34
public function __construct(
35
Context $context,
36
PageFactory $resultPageFactory
37
) {
38
$this->resultPageFactory = $resultPageFactory;
39
parent::__construct($context);
40
}
41
42
/**
43
* @return Page
44
*/
45
public function execute(): Page
46
{
47
$resultPage = $this->initAction();
48
$resultPage->getConfig()->getTitle()->prepend(__('Varnish: purge group of URLs'));
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.