Skip to content

Commit 5bc05b2

Browse files
committed
Fix static tests.
1 parent 658b5a7 commit 5bc05b2

File tree

1 file changed

+5
-1
lines changed
  • app/code/Magento/Backup/Controller/Adminhtml/Index

1 file changed

+5
-1
lines changed

app/code/Magento/Backup/Controller/Adminhtml/Index/Rollback.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@
66
*/
77
namespace Magento\Backup\Controller\Adminhtml\Index;
88

9+
use Magento\Framework\App\Action\HttpPostActionInterface;
910
use Magento\Framework\App\Filesystem\DirectoryList;
1011
use Magento\Framework\Filesystem;
1112

1213
/**
14+
* Backup rollback controller.
15+
*
1316
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1417
*/
15-
class Rollback extends \Magento\Backup\Controller\Adminhtml\Index
18+
class Rollback extends \Magento\Backup\Controller\Adminhtml\Index implements HttpPostActionInterface
1619
{
1720
/**
1821
* Rollback Action
@@ -124,6 +127,7 @@ public function execute()
124127
$adminSession->destroy();
125128

126129
$response->setRedirectUrl($this->getUrl('*'));
130+
// phpcs:disable Magento2.Exceptions.ThrowCatch
127131
} catch (\Magento\Framework\Backup\Exception\CantLoadSnapshot $e) {
128132
$errorMsg = __('We can\'t find the backup file.');
129133
} catch (\Magento\Framework\Backup\Exception\FtpConnectionFailed $e) {

0 commit comments

Comments
 (0)