Skip to content

Commit e7fd5cd

Browse files
MAGETWO-35088: Page and Block Data and Repository Interfaces
- fixed static test
1 parent 418b85b commit e7fd5cd

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

app/code/Magento/Cms/Model/BlockRepository.php

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

1616
/**
1717
* Class BlockRepository
18+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1819
*/
1920
class BlockRepository implements BlockRepositoryInterface
2021
{
@@ -109,6 +110,8 @@ public function getById($blockId)
109110
/**
110111
* Load Block data collection by given search criteria
111112
*
113+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
114+
* @SuppressWarnings(PHPMD.NPathComplexity)
112115
* @param SearchCriteriaInterface $criteria
113116
* @return Resource\Block\Collection
114117
*/

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
* @method \Magento\Cms\Model\Resource\Page getResource()
1616
* @method int[] getStores()
1717
*/
18-
class Page extends \Magento\Framework\Model\AbstractModel
19-
implements PageInterface, IdentityInterface
18+
class Page extends \Magento\Framework\Model\AbstractModel implements PageInterface, IdentityInterface
2019
{
2120
/**
2221
* No route page id

app/code/Magento/Cms/Model/PageRepository.php

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

1616
/**
1717
* Class PageRepository
18+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1819
*/
1920
class PageRepository implements PageRepositoryInterface
2021
{
@@ -109,6 +110,8 @@ public function getById($pageId)
109110
/**
110111
* Load Page data collection by given search criteria
111112
*
113+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
114+
* @SuppressWarnings(PHPMD.NPathComplexity)
112115
* @param SearchCriteriaInterface $criteria
113116
* @return Resource\Page\Collection
114117
*/

0 commit comments

Comments
 (0)