Skip to content

Commit 42e0710

Browse files
author
Sergey Semenov
committed
MAGETWO-21349: Advanced Mini Cart
1 parent 3de597c commit 42e0710

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

app/code/Magento/Checkout/Block/Cart/Sidebar.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function isPossibleOnepageCheckout()
163163
/**
164164
* Get one page checkout page url
165165
*
166-
* @return bool
166+
* @return string
167167
*/
168168
public function getCheckoutUrl()
169169
{
@@ -173,7 +173,7 @@ public function getCheckoutUrl()
173173
/**
174174
* Get shoppinc cart page url
175175
*
176-
* @return bool
176+
* @return string
177177
*/
178178
public function getShoppingCartUrl()
179179
{
@@ -183,7 +183,7 @@ public function getShoppingCartUrl()
183183
/**
184184
* Get update cart item url
185185
*
186-
* @return bool
186+
* @return string
187187
*/
188188
public function getUpdateItemQtyUrl()
189189
{
@@ -193,7 +193,7 @@ public function getUpdateItemQtyUrl()
193193
/**
194194
* Get remove cart item url
195195
*
196-
* @return bool
196+
* @return string
197197
*/
198198
public function getRemoveItemUrl()
199199
{
@@ -204,6 +204,7 @@ public function getRemoveItemUrl()
204204
* Define if Mini Shopping Cart Pop-Up Menu enabled
205205
*
206206
* @return bool
207+
* @SuppressWarnings(PHPMD.BooleanGetMethodName)
207208
*/
208209
public function getIsNeedToDisplaySideBar()
209210
{

app/code/Magento/Checkout/Controller/Sidebar/RemoveItem.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ class RemoveItem extends Action
3636
*/
3737
protected $resultPageFactory;
3838

39+
/**
40+
* @param Context $context
41+
* @param Sidebar $sidebar
42+
* @param LoggerInterface $logger
43+
* @param Data $jsonHelper
44+
* @param PageFactory $resultPageFactory
45+
*/
3946
public function __construct(
4047
Context $context,
4148
Sidebar $sidebar,

0 commit comments

Comments
 (0)