Skip to content

Commit 9e497bf

Browse files
committed
apply phpcsfixer
1 parent 06a91b8 commit 9e497bf

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

app/code/Magento/Catalog/Block/Rss/Category.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
class Category extends \Magento\Framework\View\Element\AbstractBlock implements DataProviderInterface
1818
{
1919
/**
20-
* @var \Magento\Catalog\Model\CategoryFactory
21-
*/
20+
* @var \Magento\Catalog\Model\CategoryFactory
21+
*/
2222
protected $categoryFactory;
2323

2424
/**
@@ -95,9 +95,7 @@ public function __construct(
9595
parent::__construct($context, $data);
9696
}
9797

98-
/**
99-
* @return void
100-
*/
98+
10199
protected function _construct()
102100
{
103101
$this->setCacheKey(

app/code/Magento/Catalog/Test/Unit/Block/Rss/CategoryTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ class CategoryTest extends \PHPUnit\Framework\TestCase
7272
* @var \Magento\Catalog\Api\CategoryRepositoryInterface|\PHPUnit_Framework_MockObject_MockObject
7373
*/
7474
protected $categoryRepository;
75-
76-
/**
75+
76+
/**
7777
* @var \Magento\Framework\View\ConfigInterface|\PHPUnit_Framework_MockObject_MockObject
7878
*/
7979
protected $viewConfig;
@@ -120,7 +120,7 @@ protected function setUp()
120120
$this->storeManager->expects($this->any())->method('getStore')->will($this->returnValue($store));
121121
$this->scopeConfig = $this->createMock(\Magento\Framework\App\Config\ScopeConfigInterface::class);
122122
$this->categoryRepository = $this->createMock(\Magento\Catalog\Api\CategoryRepositoryInterface::class);
123-
$this->viewConfig = $this->getMockBuilder(\Magento\Framework\View\ConfigInterface::class)
123+
$this->viewConfig = $this->getMockBuilder(\Magento\Framework\View\ConfigInterface::class)
124124
->getMockForAbstractClass();
125125
$objectManagerHelper = new ObjectManagerHelper($this);
126126
$this->block = $objectManagerHelper->getObject(
@@ -137,7 +137,7 @@ protected function setUp()
137137
'customerSession' => $this->customerSession,
138138
'storeManager' => $this->storeManager,
139139
'categoryRepository' => $this->categoryRepository,
140-
'viewConfig' => $this->viewConfig,
140+
'viewConfig' => $this->viewConfig,
141141
]
142142
);
143143
}
@@ -152,12 +152,12 @@ public function testGetRssData()
152152
->will($this->returnValue('http://magento.com/category-name.html'));
153153

154154
$this->categoryRepository->expects($this->once())->method('get')->will($this->returnValue($category));
155-
156-
$configViewMock = $this->getMockBuilder(\Magento\Framework\Config\View::class)
155+
156+
$configViewMock = $this->getMockBuilder(\Magento\Framework\Config\View::class)
157157
->disableOriginalConstructor()
158158
->getMock();
159-
160-
$this->viewConfig->expects($this->once())
159+
160+
$this->viewConfig->expects($this->once())
161161
->method('getViewConfig')
162162
->willReturn($configViewMock);
163163

0 commit comments

Comments
 (0)