' . $element->getNote() . '
' : '';
$elementBeforeLabel = $element->getExtType() == 'checkbox' || $element->getExtType() == 'radio';
diff --git a/app/code/Magento/Backend/view/adminhtml/templates/system/search.phtml b/app/code/Magento/Backend/view/adminhtml/templates/system/search.phtml
index c33e6b1ee9832..860c22a3ece6a 100644
--- a/app/code/Magento/Backend/view/adminhtml/templates/system/search.phtml
+++ b/app/code/Magento/Backend/view/adminhtml/templates/system/search.phtml
@@ -9,7 +9,7 @@
use Magento\Backend\Block\GlobalSearch;
use Magento\Framework\Json\Helper\Data;
-/** @var $block GlobalSearch */
+/** @var GlobalSearch $block */
/** @var Data $helper */
$helper = $this->helper(Data::class);
diff --git a/app/code/Magento/Backend/view/adminhtml/templates/widget/button/split.phtml b/app/code/Magento/Backend/view/adminhtml/templates/widget/button/split.phtml
index 9f28208d418c4..7af866b57b1bb 100644
--- a/app/code/Magento/Backend/view/adminhtml/templates/widget/button/split.phtml
+++ b/app/code/Magento/Backend/view/adminhtml/templates/widget/button/split.phtml
@@ -5,7 +5,7 @@
*/
?>
getAttributesHtml() ?>>
diff --git a/app/code/Magento/Backend/view/adminhtml/templates/widget/form.phtml b/app/code/Magento/Backend/view/adminhtml/templates/widget/form.phtml
index 6a0f556a616d4..df0c413f19553 100644
--- a/app/code/Magento/Backend/view/adminhtml/templates/widget/form.phtml
+++ b/app/code/Magento/Backend/view/adminhtml/templates/widget/form.phtml
@@ -4,7 +4,7 @@
* All Rights Reserved.
*/
-/** @var $block \Magento\Backend\Block\Widget\Form */
+/** @var \Magento\Backend\Block\Widget\Form $block */
?>
diff --git a/app/code/Magento/Backend/view/adminhtml/templates/widget/form/container.phtml b/app/code/Magento/Backend/view/adminhtml/templates/widget/form/container.phtml
index b1e5d2a3ac539..49f67e82d18ee 100644
--- a/app/code/Magento/Backend/view/adminhtml/templates/widget/form/container.phtml
+++ b/app/code/Magento/Backend/view/adminhtml/templates/widget/form/container.phtml
@@ -4,7 +4,7 @@
* All Rights Reserved.
*/
-/** @var $block \Magento\Backend\Block\Widget\Form\Container */
+/** @var \Magento\Backend\Block\Widget\Form\Container $block */
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
?>
= /* @noEscape */ $block->getFormInitScripts() ?>
diff --git a/app/code/Magento/Backend/view/adminhtml/templates/widget/form/renderer/fieldset.phtml b/app/code/Magento/Backend/view/adminhtml/templates/widget/form/renderer/fieldset.phtml
index 204ad071aa072..d7ad9245a7ef2 100644
--- a/app/code/Magento/Backend/view/adminhtml/templates/widget/form/renderer/fieldset.phtml
+++ b/app/code/Magento/Backend/view/adminhtml/templates/widget/form/renderer/fieldset.phtml
@@ -5,7 +5,7 @@
*/
?>
getElement();
$containerId = $element->getFieldsetContainerId();
$id = $element->getHtmlId();
diff --git a/app/code/Magento/Backend/view/adminhtml/templates/widget/form/renderer/fieldset/element.phtml b/app/code/Magento/Backend/view/adminhtml/templates/widget/form/renderer/fieldset/element.phtml
index 7f10fd302dcb4..88fd53008d9a5 100644
--- a/app/code/Magento/Backend/view/adminhtml/templates/widget/form/renderer/fieldset/element.phtml
+++ b/app/code/Magento/Backend/view/adminhtml/templates/widget/form/renderer/fieldset/element.phtml
@@ -5,7 +5,7 @@
*/
?>
getElement();
$note = $element->getNote() ? '
' . $element->getNote() . '
' : '';
$elementBeforeLabel = $element->getExtType() == 'checkbox admin__control-checkbox' || $element->getExtType() == 'radio admin__control-radio';
diff --git a/app/code/Magento/Backend/view/adminhtml/templates/widget/grid.phtml b/app/code/Magento/Backend/view/adminhtml/templates/widget/grid.phtml
index 2dd923fb999a3..82a884ed7d84a 100644
--- a/app/code/Magento/Backend/view/adminhtml/templates/widget/grid.phtml
+++ b/app/code/Magento/Backend/view/adminhtml/templates/widget/grid.phtml
@@ -16,7 +16,7 @@
* getVarNamePage()
*
*/
-/* @var $block \Magento\Backend\Block\Widget\Grid */
+/** @var \Magento\Backend\Block\Widget\Grid $block */
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
$numColumns = $block->getColumns() !== null ? count($block->getColumns()): 0;
diff --git a/app/code/Magento/Backend/view/adminhtml/templates/widget/grid/column_set.phtml b/app/code/Magento/Backend/view/adminhtml/templates/widget/grid/column_set.phtml
index 976668c42b02e..5ef7846674033 100644
--- a/app/code/Magento/Backend/view/adminhtml/templates/widget/grid/column_set.phtml
+++ b/app/code/Magento/Backend/view/adminhtml/templates/widget/grid/column_set.phtml
@@ -22,7 +22,7 @@ $numColumns = count($block->getColumns());
isHeaderVisible() || $block->getFilterVisibility()) : ?>
getColumns() as $_column) : ?>
-
+
getHeaderHtml() == ' ') :?>
getHeaderHtmlProperty() ?>> |
diff --git a/app/code/Magento/Backend/view/adminhtml/templates/widget/tabs.phtml b/app/code/Magento/Backend/view/adminhtml/templates/widget/tabs.phtml
index 6de8fb9a9d297..904a5d61ee78a 100644
--- a/app/code/Magento/Backend/view/adminhtml/templates/widget/tabs.phtml
+++ b/app/code/Magento/Backend/view/adminhtml/templates/widget/tabs.phtml
@@ -4,7 +4,7 @@
* All Rights Reserved.
*/
-/** @var $block \Magento\Backend\Block\Widget\Tabs */
+/** @var \Magento\Backend\Block\Widget\Tabs $block */
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
?>
diff --git a/app/code/Magento/Backup/Controller/Adminhtml/Index/Download.php b/app/code/Magento/Backup/Controller/Adminhtml/Index/Download.php
index 08a6eab5a17a1..c51744f1e15c0 100644
--- a/app/code/Magento/Backup/Controller/Adminhtml/Index/Download.php
+++ b/app/code/Magento/Backup/Controller/Adminhtml/Index/Download.php
@@ -51,7 +51,7 @@ public function __construct(
*/
public function execute()
{
- /* @var $backup \Magento\Backup\Model\Backup */
+ /** @var \Magento\Backup\Model\Backup $backup */
$backup = $this->_backupModelFactory->create(
$this->getRequest()->getParam('time'),
$this->getRequest()->getParam('type')
diff --git a/app/code/Magento/Backup/Controller/Adminhtml/Index/Rollback.php b/app/code/Magento/Backup/Controller/Adminhtml/Index/Rollback.php
index 25da907e4ca32..977e8cf840240 100644
--- a/app/code/Magento/Backup/Controller/Adminhtml/Index/Rollback.php
+++ b/app/code/Magento/Backup/Controller/Adminhtml/Index/Rollback.php
@@ -38,7 +38,7 @@ public function execute()
$response = new \Magento\Framework\DataObject();
try {
- /* @var $backup \Magento\Backup\Model\Backup */
+ /** @var \Magento\Backup\Model\Backup $backup */
$backup = $this->_backupModelFactory->create(
$this->getRequest()->getParam('time'),
$this->getRequest()->getParam('type')
diff --git a/app/code/Magento/Bundle/Block/Catalog/Product/View/Type/Bundle.php b/app/code/Magento/Bundle/Block/Catalog/Product/View/Type/Bundle.php
index f6db07c92c512..903a2a8dabd94 100644
--- a/app/code/Magento/Bundle/Block/Catalog/Product/View/Type/Bundle.php
+++ b/app/code/Magento/Bundle/Block/Catalog/Product/View/Type/Bundle.php
@@ -170,7 +170,7 @@ public function getJsonConfig()
$position = 0;
foreach ($optionsArray as $optionItem) {
- /* @var $optionItem Option */
+ /** @var Option $optionItem */
if (!$optionItem->getSelections()) {
continue;
}
@@ -319,7 +319,7 @@ private function getSelections(Option $option, Product $product)
$selections = [];
$selectionCount = count($option->getSelections());
foreach ($option->getSelections() as $selectionItem) {
- /* @var $selectionItem Product */
+ /** @var Product $selectionItem */
$selectionId = $selectionItem->getSelectionId();
$selections[$selectionId] = $this->getSelectionItemData($product, $selectionItem);
diff --git a/app/code/Magento/Bundle/Model/LinkManagement.php b/app/code/Magento/Bundle/Model/LinkManagement.php
index b7233be590de0..1c5bcfef9940c 100644
--- a/app/code/Magento/Bundle/Model/LinkManagement.php
+++ b/app/code/Magento/Bundle/Model/LinkManagement.php
@@ -385,7 +385,7 @@ public function addChild(
);
}
- /* @var $resource Bundle */
+ /** @var Bundle $resource */
$resource = $this->bundleFactory->create();
$selections = $resource->getSelectionsData($product->getData($linkField));
return $this->processLinkedProduct(
@@ -427,7 +427,7 @@ public function addChildren(
);
}
- /* @var $resource Bundle */
+ /** @var Bundle $resource */
$resource = $this->bundleFactory->create();
$selections = $resource->getSelectionsData($product->getData($linkField));
@@ -467,7 +467,7 @@ public function removeChild($sku, $optionId, $childSku)
);
}
$linkField = $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField();
- /* @var $resource Bundle */
+ /** @var Bundle $resource */
$resource = $this->bundleFactory->create();
$resource->dropAllUnneededSelections($product->getData($linkField), $excludeSelectionIds);
$resource->removeProductRelations($product->getData($linkField), array_unique($usedProductIds));
diff --git a/app/code/Magento/Bundle/Model/Product/Price.php b/app/code/Magento/Bundle/Model/Product/Price.php
index 58bef81e67c30..fa36db6c708cc 100644
--- a/app/code/Magento/Bundle/Model/Product/Price.php
+++ b/app/code/Magento/Bundle/Model/Product/Price.php
@@ -260,7 +260,7 @@ public function getTotalPrices($product, $which = null, $includeTax = null, $tak
if ($options) {
foreach ($options as $option) {
- /* @var $option \Magento\Bundle\Model\Option */
+ /** @var \Magento\Bundle\Model\Option $option */
$selections = $option->getSelections();
if (empty($selections)) {
continue;
@@ -269,7 +269,7 @@ public function getTotalPrices($product, $which = null, $includeTax = null, $tak
$selectionMaximalPrices = [];
foreach ($option->getSelections() as $selection) {
- /* @var $selection \Magento\Bundle\Model\Selection */
+ /** @var \Magento\Bundle\Model\Selection $selection */
if (!$selection->isSalable()) {
/**
* @todo CatalogInventory Show out of stock Products
@@ -336,12 +336,12 @@ public function getTotalPrices($product, $which = null, $includeTax = null, $tak
$customOptions = $product->getOptions();
if ($product->getPriceType() == self::PRICE_TYPE_FIXED && $customOptions) {
foreach ($customOptions as $customOption) {
- /* @var $customOption \Magento\Catalog\Model\Product\Option */
+ /** @var \Magento\Catalog\Model\Product\Option $customOption */
$values = $customOption->getValues();
if ($values) {
$prices = [];
foreach ($values as $value) {
- /* @var $value \Magento\Catalog\Model\Product\Option\Value */
+ /** @var \Magento\Catalog\Model\Product\Option\Value $value */
$valuePrice = $value->getPrice(true);
$prices[] = $valuePrice;
diff --git a/app/code/Magento/Bundle/Model/Product/ReadHandler.php b/app/code/Magento/Bundle/Model/Product/ReadHandler.php
index efa2149176b9d..b09cc374480e3 100644
--- a/app/code/Magento/Bundle/Model/Product/ReadHandler.php
+++ b/app/code/Magento/Bundle/Model/Product/ReadHandler.php
@@ -36,7 +36,7 @@ public function __construct(OptionRepository $optionRepository)
*/
public function execute($entity, $arguments = [])
{
- /** @var $entity \Magento\Catalog\Api\Data\ProductInterface */
+ /** @var \Magento\Catalog\Api\Data\ProductInterface $entity */
if ($entity->getTypeId() != \Magento\Bundle\Model\Product\Type::TYPE_CODE) {
return $entity;
}
diff --git a/app/code/Magento/Bundle/Model/Product/Type.php b/app/code/Magento/Bundle/Model/Product/Type.php
index b529bcac9dbbb..0e26e9db6b514 100644
--- a/app/code/Magento/Bundle/Model/Product/Type.php
+++ b/app/code/Magento/Bundle/Model/Product/Type.php
@@ -1081,7 +1081,7 @@ public function checkProductBuyState($product)
$skipSaleableCheck = $this->_catalogProduct->getSkipSaleableCheck();
foreach ($selectionIds as $selectionId) {
- /* @var $selection \Magento\Bundle\Model\Selection */
+ /** @var \Magento\Bundle\Model\Selection $selection */
$selection = $productSelections->getItemById($selectionId);
if (!$selection || !$selection->isSalable() && !$skipSaleableCheck) {
throw new \Magento\Framework\Exception\LocalizedException(
diff --git a/app/code/Magento/Bundle/Observer/AppendUpsellProductsObserver.php b/app/code/Magento/Bundle/Observer/AppendUpsellProductsObserver.php
index b25676de51567..a7ec0d4c4a450 100644
--- a/app/code/Magento/Bundle/Observer/AppendUpsellProductsObserver.php
+++ b/app/code/Magento/Bundle/Observer/AppendUpsellProductsObserver.php
@@ -62,7 +62,7 @@ public function __construct(
*/
public function execute(\Magento\Framework\Event\Observer $observer)
{
- /* @var $product \Magento\Catalog\Model\Product */
+ /** @var \Magento\Catalog\Model\Product $product */
$product = $observer->getEvent()->getProduct();
/**
@@ -72,7 +72,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
return $this;
}
- /* @var $collection \Magento\Catalog\Model\ResourceModel\Product\Link\Product\Collection */
+ /** @var \Magento\Catalog\Model\ResourceModel\Product\Link\Product\Collection $collection */
$collection = $observer->getEvent()->getCollection();
$limit = $observer->getEvent()->getLimit();
if (is_array($limit)) {
@@ -83,7 +83,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
}
}
- /* @var $resource \Magento\Bundle\Model\ResourceModel\Selection */
+ /** @var \Magento\Bundle\Model\ResourceModel\Selection $resource */
$resource = $this->bundleSelection;
$productIds = array_keys($collection->getItems());
@@ -100,7 +100,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
return $this;
}
- /* @var $bundleCollection \Magento\Catalog\Model\ResourceModel\Product\Collection */
+ /** @var \Magento\Catalog\Model\ResourceModel\Product\Collection $bundleCollection */
$bundleCollection = $product->getCollection();
$bundleCollection->addAttributeToSelect(
$this->config->getProductAttributes()
diff --git a/app/code/Magento/Bundle/Pricing/Adjustment/Calculator.php b/app/code/Magento/Bundle/Pricing/Adjustment/Calculator.php
index aa891c51b3beb..45a161ef857e1 100644
--- a/app/code/Magento/Bundle/Pricing/Adjustment/Calculator.php
+++ b/app/code/Magento/Bundle/Pricing/Adjustment/Calculator.php
@@ -288,7 +288,7 @@ public function calculateBundleAmount($basePriceValue, $bundleProduct, $selectio
protected function calculateFixedBundleAmount($basePriceValue, $bundleProduct, $selectionPriceList, $exclude)
{
$fullAmount = $basePriceValue;
- /** @var $option Option */
+ /** @var Option $option */
foreach ($selectionPriceList as $selectionPrice) {
$fullAmount += ($selectionPrice->getValue() * $selectionPrice->getQuantity());
}
@@ -377,7 +377,7 @@ public function createSelectionPriceList($option, $bundleProduct, $useRegularPri
if ($selections === null) {
return $priceList;
}
- /* @var $selection \Magento\Bundle\Model\Selection|\Magento\Catalog\Model\Product */
+ /** @var \Magento\Bundle\Model\Selection|\Magento\Catalog\Model\Product $selection */
foreach ($selections as $selection) {
if (!$selection->isSalable()) {
// @todo CatalogInventory Show out of stock Products
diff --git a/app/code/Magento/Bundle/view/adminhtml/templates/catalog/product/edit/tab/attributes/extend.phtml b/app/code/Magento/Bundle/view/adminhtml/templates/catalog/product/edit/tab/attributes/extend.phtml
index df3853c35caf0..0c96a65186f84 100644
--- a/app/code/Magento/Bundle/view/adminhtml/templates/catalog/product/edit/tab/attributes/extend.phtml
+++ b/app/code/Magento/Bundle/view/adminhtml/templates/catalog/product/edit/tab/attributes/extend.phtml
@@ -4,7 +4,7 @@
* All Rights Reserved.
*/
-/** @var $block \Magento\Bundle\Block\Adminhtml\Catalog\Product\Edit\Tab\Attributes\Extend */
+/** @var \Magento\Bundle\Block\Adminhtml\Catalog\Product\Edit\Tab\Attributes\Extend $block */
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
$elementHtml = $block->getParentElementHtml();
diff --git a/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/bundle.phtml b/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/bundle.phtml
index af04f6a62b677..f0cbb46da2f26 100644
--- a/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/bundle.phtml
+++ b/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/bundle.phtml
@@ -6,7 +6,7 @@
?>
diff --git a/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/checkbox.phtml b/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/checkbox.phtml
index 6fc3a1091e49b..bd55a9f9e5564 100644
--- a/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/checkbox.phtml
+++ b/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/checkbox.phtml
@@ -5,7 +5,7 @@
*/
// phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis
?>
-
+
getOption(); ?>
getSelections(); ?>
helper(Magento\Catalog\Helper\Product::class)->getSkipSaleableCheck(); ?>
diff --git a/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/multi.phtml b/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/multi.phtml
index a567f69708772..02039ee28121f 100644
--- a/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/multi.phtml
+++ b/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/multi.phtml
@@ -5,7 +5,7 @@
*/
// phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis
?>
-
+
getOption(); ?>
getSelections(); ?>
helper(Magento\Catalog\Helper\Product::class)->getSkipSaleableCheck(); ?>
diff --git a/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/radio.phtml b/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/radio.phtml
index 12307fa0cae86..7b1062f86f1ad 100644
--- a/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/radio.phtml
+++ b/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/radio.phtml
@@ -5,7 +5,7 @@
*/
// phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis
?>
-
+
getOption(); ?>
getSelections(); ?>
getDefaultSelection(); ?>
diff --git a/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/select.phtml b/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/select.phtml
index 4c276081ece94..3e4e1f0fc654f 100644
--- a/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/select.phtml
+++ b/app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/type/select.phtml
@@ -5,7 +5,7 @@
*/
// phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis
?>
-
+
getOption(); ?>
getSelections(); ?>
getDefaultSelection(); ?>
diff --git a/app/code/Magento/Bundle/view/adminhtml/templates/product/edit/bundle.phtml b/app/code/Magento/Bundle/view/adminhtml/templates/product/edit/bundle.phtml
index 7fd0269a9643d..63fa654dfade1 100644
--- a/app/code/Magento/Bundle/view/adminhtml/templates/product/edit/bundle.phtml
+++ b/app/code/Magento/Bundle/view/adminhtml/templates/product/edit/bundle.phtml
@@ -4,7 +4,7 @@
* All Rights Reserved.
*/
-/** @var $block \Magento\Bundle\Block\Adminhtml\Catalog\Product\Edit\Tab\Bundle */
+/** @var \Magento\Bundle\Block\Adminhtml\Catalog\Product\Edit\Tab\Bundle $block */
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
?>
diff --git a/app/code/Magento/Bundle/view/adminhtml/templates/product/edit/bundle/option.phtml b/app/code/Magento/Bundle/view/adminhtml/templates/product/edit/bundle/option.phtml
index 34ad85c5db6f8..d92e031dd8d17 100644
--- a/app/code/Magento/Bundle/view/adminhtml/templates/product/edit/bundle/option.phtml
+++ b/app/code/Magento/Bundle/view/adminhtml/templates/product/edit/bundle/option.phtml
@@ -5,7 +5,7 @@
*/
// phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
-/** @var $block \Magento\Bundle\Block\Adminhtml\Catalog\Product\Edit\Tab\Bundle\Option */
+/** @var \Magento\Bundle\Block\Adminhtml\Catalog\Product\Edit\Tab\Bundle\Option $block */
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
?>