Skip to content

Commit 175ffc2

Browse files
committed
Merge branch '2.3-develop' of github.com:magento/magento2ce into borg-2.3
2 parents 541881b + e3e468c commit 175ffc2

File tree

7 files changed

+31
-24
lines changed

7 files changed

+31
-24
lines changed

app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Action/DataProvider.php

+9-7
Original file line numberDiff line numberDiff line change
@@ -573,11 +573,10 @@ public function prepareProductIndex($indexData, $productData, $storeId)
573573
foreach ($attributeData as $attributeId => $attributeValues) {
574574
$value = $this->getAttributeValue($attributeId, $attributeValues, $storeId);
575575
if (!empty($value)) {
576-
if (isset($index[$attributeId])) {
577-
$index[$attributeId][$entityId] = $value;
578-
} else {
579-
$index[$attributeId] = [$entityId => $value];
576+
if (!isset($index[$attributeId])) {
577+
$index[$attributeId] = [];
580578
}
579+
$index[$attributeId][$entityId] = $value;
581580
}
582581
}
583582
}
@@ -645,9 +644,12 @@ private function getAttributeOptionValue($attributeId, $valueIds, $storeId)
645644
$attribute->setStoreId($storeId);
646645
$options = $attribute->getSource()->toOptionArray();
647646
$this->attributeOptions[$optionKey] = array_column($options, 'label', 'value');
648-
$this->attributeOptions[$optionKey] = array_map(function ($value) {
649-
return $this->filterAttributeValue($value);
650-
}, $this->attributeOptions[$optionKey]);
647+
$this->attributeOptions[$optionKey] = array_map(
648+
function ($value) {
649+
return $this->filterAttributeValue($value);
650+
},
651+
$this->attributeOptions[$optionKey]
652+
);
651653
} else {
652654
$this->attributeOptions[$optionKey] = null;
653655
}

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
/**
1313
* CMS block model
1414
*
15-
* @method Block setStoreId(array $storeId)
16-
* @method array getStoreId()
15+
* @method Block setStoreId(int $storeId)
16+
* @method int getStoreId()
1717
*/
1818
class Block extends AbstractModel implements BlockInterface, IdentityInterface
1919
{
@@ -41,6 +41,8 @@ class Block extends AbstractModel implements BlockInterface, IdentityInterface
4141
protected $_eventPrefix = 'cms_block';
4242

4343
/**
44+
* Construct.
45+
*
4446
* @return void
4547
*/
4648
protected function _construct()

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
* Cms Page Model
1717
*
1818
* @api
19-
* @method Page setStoreId(array $storeId)
20-
* @method array getStoreId()
19+
* @method Page setStoreId(int $storeId)
20+
* @method int getStoreId()
2121
* @SuppressWarnings(PHPMD.ExcessivePublicCount)
2222
* @since 100.0.2
2323
*/
@@ -103,8 +103,7 @@ public function getStores()
103103
}
104104

105105
/**
106-
* Check if page identifier exist for specific store
107-
* return page id if page exists
106+
* Check if page identifier exist for specific store return page id if page exists
108107
*
109108
* @param string $identifier
110109
* @param int $storeId
@@ -116,8 +115,7 @@ public function checkIdentifier($identifier, $storeId)
116115
}
117116

118117
/**
119-
* Prepare page's statuses.
120-
* Available event cms_page_get_available_statuses to customize statuses.
118+
* Prepare page's statuses, available event cms_page_get_available_statuses to customize statuses.
121119
*
122120
* @return array
123121
*/
@@ -538,7 +536,7 @@ public function setIsActive($isActive)
538536
}
539537

540538
/**
541-
* {@inheritdoc}
539+
* @inheritdoc
542540
* @since 101.0.0
543541
*/
544542
public function beforeSave()
@@ -571,6 +569,8 @@ public function beforeSave()
571569
}
572570

573571
/**
572+
* Returns scope config.
573+
*
574574
* @return ScopeConfigInterface
575575
*/
576576
private function getScopeConfig()

app/code/Magento/Shipping/view/adminhtml/templates/view/items.phtml

+8-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@
1616
</tr>
1717
</thead>
1818
<?php $_items = $block->getShipment()->getAllItems() ?>
19-
<?php $_i = 0; foreach ($_items as $_item): if ($_item->getOrderItem()->getParentItem()): continue; endif; $_i++ ?>
20-
<tbody class="<?= /* @escapeNotVerified */ $_i%2 ? 'odd' : 'even' ?>">
21-
<?= $block->getItemHtml($_item) ?>
22-
<?= $block->getItemExtraInfoHtml($_item->getOrderItem()) ?>
23-
</tbody>
19+
<?php $_i = 0; foreach ($_items as $_item):
20+
if (!empty($_item->getOrderItem())) :
21+
if ($_item->getOrderItem()->getParentItem()): continue; endif; $_i++ ?>
22+
<tbody class="<?= /* @escapeNotVerified */ $_i%2 ? 'odd' : 'even' ?>">
23+
<?= $block->getItemHtml($_item) ?>
24+
<?= $block->getItemExtraInfoHtml($_item->getOrderItem()) ?>
25+
</tbody>
26+
<?php endif; ?>
2427
<?php endforeach; ?>
2528
</table>
2629
</div>

app/code/Magento/Store/Model/StoreManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class StoreManager implements
6969
/**
7070
* Default store code
7171
*
72-
* @var string
72+
* @var string|int|\Magento\Store\Api\Data\StoreInterface
7373
*/
7474
protected $currentStoreId = null;
7575

app/code/Magento/Store/Model/StoreManagerInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function getGroups($withDefault = false);
117117
/**
118118
* Set current default store
119119
*
120-
* @param string $store
120+
* @param string|int|\Magento\Store\Api\Data\StoreInterface $store
121121
* @return void
122122
*/
123123
public function setCurrentStore($store);

app/design/frontend/Magento/blank/Magento_Swatches/web/css/source/_module.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
}
9090

9191
&-options {
92-
margin-top: @indent__s;
92+
margin: @indent__s 0;
9393

9494
&:focus {
9595
box-shadow: none;

0 commit comments

Comments
 (0)