Skip to content

Commit

Permalink
Fix static tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmalevanec committed May 8, 2019
1 parent c1d0128 commit ac7af37
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public function prepareProductAttributes(Product $product, array $productData, a
}

/**
* Reset "Use Config Settings" to false in product data.
*
* @param Product $product
* @param string $attributeCode
* @param array $productData
Expand All @@ -62,6 +64,8 @@ private function prepareConfigData(Product $product, string $attributeCode, arra
}

/**
* Prepare default attribute data for product.
*
* @param array $attributeList
* @param string $attributeCode
* @param array $productData
Expand All @@ -86,6 +90,8 @@ private function prepareDefaultData(array $attributeList, string $attributeCode,
}

/**
* Check, whether attribute should not be updated.
*
* @param Product $product
* @param array $useDefaults
* @param string $attribute
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php
/**
* Catalog super product attribute resource model
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
Expand All @@ -11,6 +9,9 @@
use Magento\Framework\DB\Adapter\AdapterInterface;
use Magento\Store\Model\Store;

/**
* Catalog super product attribute resource model.
*/
class Attribute extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
{
/**
Expand Down Expand Up @@ -189,8 +190,7 @@ public function deleteAttributesByProductId($productId)
}

/**
* @param \Magento\Framework\Model\AbstractModel $object
* @return $this
* @inheritDoc
*/
protected function _afterLoad(\Magento\Framework\Model\AbstractModel $object)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

/**
* Reports Product Index Abstract Model
*
* @api
* @since 100.0.2
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
*/
abstract class AbstractIndex extends \Magento\Framework\Model\AbstractModel
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*/
?>

<div class="admin__page-section-title <?= /* @escapeNotVerified */ $block->getHeaderCssClass() ?>">
<span class="title"><?= /* @escapeNotVerified */ $block->getHeaderText() ?></span>
<div class="admin__page-section-title <?= /* @noEscape */ $block->getHeaderCssClass() ?>">
<span class="title"><?= /* @noEscape */ $block->getHeaderText() ?></span>
<div class="actions"></div>
</div>
<div id="customer_account_fields" class="admin__page-section-content">
Expand Down

0 comments on commit ac7af37

Please sign in to comment.