Skip to content

Commit 8faa1f4

Browse files
🔃 [EngCom] Public Pull Requests - 2.3-develop
Accepted Public Pull Requests: - #20425: Removed Unnecessary slash in namespace in di.xml (by @milindsingh) - #20247: wishlist-patch : remove the comment from wishlist product. (by @khodu) - #20338: Small PHPDocs fixes [Catalog module] (by @SikailoISM) - #20400: 'wishlist-page-edit-remove-item-misalign' :: On wish list page edit, � (by @nainesh2jcommerce) - #20018: remove extra dot on "How to run Magento" docs in phpserver/README.md (by @amritms) - #20374: Order-view-invoices :: Order view invoices template not display prope� (by @ranee2jcommerce) - #20336: Correct spell in JS files (by @ronak2ram) - #20318: Fixed a couple of spelling mistakes (by @mage2pratik) - #20195: Bundle-Product-add-to-cart-button-misaligned-on-tab-portrait ::Bundle� (by @ajay2jcommerce) - #20260: issue fixed #20259 Store switcher not sliding up and down, only dropd� (by @cedarvinda) - #20301: issue fixed #20299 Order item details label not aligned in mobile view (by @cedarvinda) - #20222: Las Palmas and Tenerife should be represented by Canary Islands in UPS (by @duckchip) - #19986: Issue fixed #19985 Send email confirmation popup close button area ov� (by @cedarvinda) - #20248: Magento widgets source models forced to use deprecated interface #20064 (by @milindsingh) - #20252: Fixed Issue #20121 Cancel order increases stock although "Set Items' Status to be In Stock When Order is Cancelled" is set to No (by @shikhamis11) - #20170: Order API resources updated. #20169 (by @milindsingh) - #20057: Refactor \Order\Shipment\Save Controller to use ResultInterface (by @JeroenVanLeusden) - #20094: [Forwardport] Fix issue 19052- Position order showing before the text box (by @davidverholen) Fixed GitHub Issues: - #20245: wishlist comment not removed (reported by @khodu) has been fixed in #20247 by @khodu in 2.3-develop branch Related commits: 1. db1e816 - #20399: On wish list page edit, remove item misalign in 640 X 767 resolution (reported by @nainesh2jcommerce) has been fixed in #20400 by @nainesh2jcommerce in 2.3-develop branch Related commits: 1. 12a0f05 - #20373: Order view invoices template not display proper on ipad (reported by @ranee2jcommerce) has been fixed in #20374 by @ranee2jcommerce in 2.3-develop branch Related commits: 1. 5327400 - #20193: Bundle Product add to cart button misaligned on tab portrait view. (reported by @ajay2jcommerce) has been fixed in #20195 by @ajay2jcommerce in 2.3-develop branch Related commits: 1. 81da50b - #20259: Store switcher not sliding up and down, only dropdown arrow working (reported by @cedarvinda) has been fixed in #20260 by @cedarvinda in 2.3-develop branch Related commits: 1. 8bc0309 2. 905368c 3. ec33182 - #20299: Order item details label not aligned in mobile view (reported by @swetacedcoss) has been fixed in #20301 by @cedarvinda in 2.3-develop branch Related commits: 1. 0652e87 2. b1e21db - #19985: Send email confirmation popup close button area overlapping to content (reported by @cedarvinda) has been fixed in #19986 by @cedarvinda in 2.3-develop branch Related commits: 1. d9620c6 2. 8f4942a - #20064: Magento widgets source models forced to use deprecated interface (reported by @Floddy) has been fixed in #20248 by @milindsingh in 2.3-develop branch Related commits: 1. a958f5b 2. f7275c5 - #20121: Cancel order increases stock although "Set Items' Status to be In Stock When Order is Cancelled" is set to No (reported by @denzyk) has been fixed in #20252 by @shikhamis11 in 2.3-develop branch Related commits: 1. 473f907 2. 8d3fc5c - #20169: Admin user with restricted "order create" access can "view", "cancel", etc via API (reported by @milindsingh) has been fixed in #20170 by @milindsingh in 2.3-develop branch Related commits: 1. 4b0eeb6 - #19052: Position order showing before the text box (reported by @Dharmeshvaja91) has been fixed in #20094 by @davidverholen in 2.3-develop branch Related commits: 1. 53943f8
2 parents 470fd45 + a5abff4 commit 8faa1f4

File tree

64 files changed

+367
-212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+367
-212
lines changed

app/code/Magento/Catalog/Api/CategoryLinkRepositoryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function delete(\Magento\Catalog\Api\Data\CategoryProductLinkInterface $p
3939
/**
4040
* Remove the product assignment from the category by category id and sku
4141
*
42-
* @param string $categoryId
42+
* @param int $categoryId
4343
* @param string $sku
4444
* @return bool will returned True if products successfully deleted
4545
*

app/code/Magento/Catalog/Api/Data/ProductRender/PriceInfoInterface.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
/**
1010
* Price interface.
11+
*
1112
* @api
1213
* @since 101.1.0
1314
*/
@@ -23,6 +24,7 @@ public function getFinalPrice();
2324

2425
/**
2526
* Set the final price: usually it calculated as minimal price of the product
27+
*
2628
* Can be different depends on type of product
2729
*
2830
* @param float $finalPrice
@@ -33,6 +35,7 @@ public function setFinalPrice($finalPrice);
3335

3436
/**
3537
* Retrieve max price of a product
38+
*
3639
* E.g. for product with custom options is price with the most expensive custom option
3740
*
3841
* @return float
@@ -51,6 +54,7 @@ public function setMaxPrice($maxPrice);
5154

5255
/**
5356
* Set max regular price
57+
*
5458
* Max regular price is the same, as maximum price, except of excluding calculating special price and catalog rules
5559
* in it
5660
*
@@ -105,6 +109,8 @@ public function setSpecialPrice($specialPrice);
105109
public function getSpecialPrice();
106110

107111
/**
112+
* Retrieve minimal price
113+
*
108114
* @return float
109115
* @since 101.1.0
110116
*/
@@ -129,6 +135,7 @@ public function getRegularPrice();
129135

130136
/**
131137
* Regular price - is price of product without discounts and special price with taxes and fixed product tax
138+
*
132139
* Usually this price is corresponding to price in admin panel of product
133140
*
134141
* @param float $regularPrice
@@ -148,7 +155,7 @@ public function getFormattedPrices();
148155
/**
149156
* Set dto with formatted prices
150157
*
151-
* @param string[] $formattedPriceInfo
158+
* @param FormattedPriceInfoInterface $formattedPriceInfo
152159
* @return void
153160
* @since 101.1.0
154161
*/

app/code/Magento/Catalog/Api/Data/ProductRenderInterface.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getAddToCartButton();
3030
/**
3131
* Set information needed for render "Add To Cart" button on front
3232
*
33-
* @param \Magento\Catalog\Api\Data\ProductRender\ButtonInterface $addToCartData
33+
* @param ButtonInterface $cartAddToCartButton
3434
* @return void
3535
* @since 101.1.0
3636
*/
@@ -47,14 +47,15 @@ public function getAddToCompareButton();
4747
/**
4848
* Set information needed for render "Add To Compare" button on front
4949
*
50-
* @param ButtonInterface $compareUrlData
50+
* @param ButtonInterface $compareButton
5151
* @return string
5252
* @since 101.1.0
5353
*/
5454
public function setAddToCompareButton(ButtonInterface $compareButton);
5555

5656
/**
5757
* Provide information needed for render prices and adjustments for different product types on front
58+
*
5859
* Prices are represented in raw format and in current currency
5960
*
6061
* @return \Magento\Catalog\Api\Data\ProductRender\PriceInfoInterface
@@ -73,6 +74,7 @@ public function setPriceInfo(PriceInfoInterface $priceInfo);
7374

7475
/**
7576
* Provide enough information, that needed to render image on front
77+
*
7678
* Images can be separated by image codes
7779
*
7880
* @return \Magento\Catalog\Api\Data\ProductRender\ImageInterface[]
@@ -167,6 +169,7 @@ public function getIsSalable();
167169

168170
/**
169171
* Set information about product saleability (Stock, other conditions)
172+
*
170173
* Is used to provide information to frontend JS renders
171174
* You can add plugin, in order to hide product on product page or product list on front
172175
*
@@ -178,6 +181,7 @@ public function setIsSalable($isSalable);
178181

179182
/**
180183
* Provide information about current store id or requested store id
184+
*
181185
* Product should be assigned to provided store id
182186
* This setting affect store scope attributes
183187
*
@@ -197,6 +201,7 @@ public function setStoreId($storeId);
197201

198202
/**
199203
* Provide current or desired currency code to product
204+
*
200205
* This setting affect formatted prices*
201206
*
202207
* @return string

app/code/Magento/Catalog/Block/Adminhtml/Product/Frontend/Product/Watermark.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
namespace Magento\Catalog\Block\Adminhtml\Product\Frontend\Product;
8+
9+
use Magento\Framework\Data\Form\Element\AbstractElement;
10+
711
/**
812
* Fieldset config form element renderer
913
*
1014
* @author Magento Core Team <core@magentocommerce.com>
1115
*/
12-
namespace Magento\Catalog\Block\Adminhtml\Product\Frontend\Product;
13-
14-
use Magento\Framework\Data\Form\Element\AbstractElement;
15-
1616
class Watermark extends \Magento\Backend\Block\AbstractBlock implements
1717
\Magento\Framework\Data\Form\Element\Renderer\RendererInterface
1818
{
@@ -60,6 +60,8 @@ public function __construct(
6060
}
6161

6262
/**
63+
* Render form element as HTML
64+
*
6365
* @param AbstractElement $element
6466
* @return string
6567
*/
@@ -124,13 +126,14 @@ public function render(AbstractElement $element)
124126
}
125127

126128
/**
129+
* Get header html for render
130+
*
127131
* @param AbstractElement $element
128132
* @return string
129133
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
130134
*/
131135
protected function _getHeaderHtml($element)
132136
{
133-
$id = $element->getHtmlId();
134137
$default = !$this->getRequest()->getParam('website') && !$this->getRequest()->getParam('store');
135138

136139
$html = '<h4 class="icon-head head-edit-form">' . $element->getLegend() . '</h4>';
@@ -148,6 +151,8 @@ protected function _getHeaderHtml($element)
148151
}
149152

150153
/**
154+
* Get footer html for render
155+
*
151156
* @param AbstractElement $element
152157
* @return string
153158
* @SuppressWarnings(PHPMD.UnusedFormalParameter)

app/code/Magento/Catalog/Controller/Adminhtml/Category/Move.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
1010

11+
/**
12+
* Move category admin controller
13+
*/
1114
class Move extends \Magento\Catalog\Controller\Adminhtml\Category implements HttpPostActionInterface
1215
{
1316
/**
@@ -46,7 +49,7 @@ public function __construct(
4649
/**
4750
* Move category action
4851
*
49-
* @return \Magento\Framework\Controller\Result\Raw
52+
* @return \Magento\Framework\Controller\Result\Json
5053
*/
5154
public function execute()
5255
{

app/code/Magento/Catalog/Controller/Index/Index.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@
55
*/
66
namespace Magento\Catalog\Controller\Index;
77

8-
class Index extends \Magento\Framework\App\Action\Action
8+
use Magento\Framework\App\Action\HttpGetActionInterface;
9+
10+
/**
11+
* Catalog index page controller.
12+
*/
13+
class Index extends \Magento\Framework\App\Action\Action implements HttpGetActionInterface
914
{
1015
/**
1116
* Index action
1217
*
13-
* @return $this
18+
* @return \Magento\Framework\Controller\Result\Redirect
1419
*/
1520
public function execute()
1621
{

app/code/Magento/Catalog/Helper/Product/Configuration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class Configuration extends AbstractHelper implements ConfigurationInterface
5555
* @param \Magento\Framework\Filter\FilterManager $filter
5656
* @param \Magento\Framework\Stdlib\StringUtils $string
5757
* @param Json $serializer
58+
* @param Escaper $escaper
5859
*/
5960
public function __construct(
6061
\Magento\Framework\App\Helper\Context $context,

app/code/Magento/Catalog/Helper/Product/ProductList.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class ProductList
4242

4343
/**
4444
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
45+
* @param \Magento\Framework\Registry $coreRegistry
4546
*/
4647
public function __construct(
4748
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,

app/code/Magento/Catalog/Helper/Product/View.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010

1111
/**
1212
* Catalog category helper
13+
*
1314
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
15+
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
1416
*/
1517
class View extends \Magento\Framework\App\Helper\AbstractHelper
1618
{
@@ -105,7 +107,7 @@ public function __construct(
105107
*
106108
* @param \Magento\Framework\View\Result\Page $resultPage
107109
* @param \Magento\Catalog\Model\Product $product
108-
* @return \Magento\Framework\View\Result\Page
110+
* @return $this
109111
*/
110112
private function preparePageMetadata(ResultPage $resultPage, $product)
111113
{

app/code/Magento/Catalog/Model/Indexer/Product/Category/Action/Rows.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
use Magento\Store\Model\StoreManagerInterface;
1818

1919
/**
20+
* Category rows indexer.
21+
*
2022
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2123
*/
2224
class Rows extends \Magento\Catalog\Model\Indexer\Category\Product\AbstractAction
@@ -213,6 +215,7 @@ protected function isRangingNeeded()
213215
/**
214216
* Returns a list of category ids which are assigned to product ids in the index
215217
*
218+
* @param array $productIds
216219
* @return \Magento\Framework\Indexer\CacheContext
217220
*/
218221
private function getCategoryIdsFromIndex(array $productIds)

0 commit comments

Comments
 (0)