From 4c7b59cbcab79b938d878cab30e1f7bf3ea56ece Mon Sep 17 00:00:00 2001 From: Pierre Gauthier Date: Tue, 5 Mar 2024 14:19:17 +0100 Subject: [PATCH] Fix Ci --- Controller/Adminhtml/Entity/MassDelete.php | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/Controller/Adminhtml/Entity/MassDelete.php b/Controller/Adminhtml/Entity/MassDelete.php index 5942341..ce00a5b 100644 --- a/Controller/Adminhtml/Entity/MassDelete.php +++ b/Controller/Adminhtml/Entity/MassDelete.php @@ -7,6 +7,7 @@ use Magento\Backend\App\Action; use Magento\Backend\App\Action\Context; use Magento\Framework\App\Action\HttpPostActionInterface; +use Magento\Framework\Controller\Result\Redirect; use Magento\Framework\Controller\ResultFactory; use Magento\Ui\Component\MassAction\Filter; use Smile\CustomEntity\Model\ResourceModel\CustomEntity\CollectionFactory; @@ -16,23 +17,9 @@ */ class MassDelete extends Action implements HttpPostActionInterface { - /** - * @var Filter - */ - protected $filter; + protected Filter $filter; + protected CollectionFactory $collectionFactory; - /** - * @var CollectionFactory - */ - protected $collectionFactory; - - /** - * Constructor. - * - * @param Context $context - * @param Filter $filter - * @param CollectionFactory $collectionFactory - */ public function __construct( Context $context, Filter $filter, @@ -59,6 +46,7 @@ public function execute() __('A total of %1 record(s) have been deleted.', $collectionSize) ); + /** @var Redirect $resultRedirect */ $resultRedirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT); return $resultRedirect->setPath('*/*/');