Skip to content

Commit e5b09a9

Browse files
author
Evgeniy Miskov
committed
MAGETWO-33059: Refactor CMS module
1 parent 29ec729 commit e5b09a9

File tree

7 files changed

+12
-6
lines changed

7 files changed

+12
-6
lines changed

app/code/Magento/Cms/Controller/Adminhtml/Block/Edit.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ class Edit extends \Magento\Cms\Controller\Adminhtml\Block
2121
/**
2222
* @param \Magento\Backend\App\Action\Context $context
2323
* @param \Magento\Framework\Registry $coreRegistry
24+
* @param \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory
25+
* @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
2426
*/
2527
public function __construct(
2628
\Magento\Backend\App\Action\Context $context,

app/code/Magento/Cms/Controller/Adminhtml/Page/Delete.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class Delete extends \Magento\Backend\App\Action
2121
*/
2222
public function __construct(
2323
Action\Context $context,
24-
\Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory)
25-
{
24+
\Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory
25+
) {
2626
$this->resultRedirectFactory = $resultRedirectFactory;
2727
parent::__construct($context);
2828
}

app/code/Magento/Cms/Controller/Adminhtml/Page/Index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function execute()
5151
$resultPage = $this->resultPageFactory->create();
5252
$resultPage->setActiveMenu('Magento_Cms::cms_page');
5353
$resultPage->addBreadcrumb(__('CMS'), __('CMS'));
54-
$resultPage->addBreadcrumb(__('Manage Pages'),__('Manage Pages'));
54+
$resultPage->addBreadcrumb(__('Manage Pages'), __('Manage Pages'));
5555
$resultPage->getConfig()->getTitle()->prepend(__('Pages'));
5656

5757
return $resultPage;

app/code/Magento/Cms/Controller/Adminhtml/Page/Save.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class Save extends \Magento\Backend\App\Action
2929
public function __construct(
3030
Action\Context $context,
3131
PostDataProcessor $dataProcessor,
32-
RedirectFactory $resultRedirectFactory)
33-
{
32+
RedirectFactory $resultRedirectFactory
33+
) {
3434
$this->dataProcessor = $dataProcessor;
3535
$this->resultRedirectFactory = $resultRedirectFactory;
3636
parent::__construct($context);

app/code/Magento/Cms/Controller/Index/DefaultNoCookies.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class DefaultNoCookies extends \Magento\Framework\App\Action\Action
1515

1616
/**
1717
* @param \Magento\Backend\App\Action\Context $context
18+
* @param \Magento\Framework\View\Result\LayoutFactory $resultLayoutFactory
1819
*/
1920
public function __construct(
2021
\Magento\Backend\App\Action\Context $context,

app/code/Magento/Cms/Controller/Index/DefaultNoRoute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class DefaultNoRoute extends \Magento\Framework\App\Action\Action
1717

1818
/**
1919
* @param \Magento\Backend\App\Action\Context $context
20-
* @param \Magento\Framework\View\Result\LayoutFactory
20+
* @param \Magento\Framework\View\Result\LayoutFactory $resultLayoutFactory
2121
*/
2222
public function __construct(
2323
\Magento\Backend\App\Action\Context $context,

app/code/Magento/Cms/Helper/Page.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
use Magento\Framework\App\Action\Action;
99

10+
/**
11+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
12+
*/
1013
/**
1114
* CMS Page Helper
1215
*/

0 commit comments

Comments
 (0)