Skip to content

Commit

Permalink
Improve code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
kandy committed May 12, 2020
1 parent e17a4b6 commit 9e1b438
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Magento\Framework\EntityManager\MetadataPool;
use Magento\Store\Model\Store;

// phpcs:disable Magento2.Classes.AbstractApi
/**
* Class AbstractAction
*
Expand Down
3 changes: 3 additions & 0 deletions app/code/Magento/Catalog/Model/ResourceModel/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ public function getWebsiteIds($product)
*/
public function getWebsiteIdsByProductIds($productIds)
{
if (!is_array($productIds) || empty($productIds)) {
return [];
}
$select = $this->getConnection()->select()->from(
$this->getProductWebsiteTable(),
['product_id', 'website_id']
Expand Down

0 comments on commit 9e1b438

Please sign in to comment.