Skip to content

Commit c25408f

Browse files
MAGETWO-69950: Fixed coding standard violations in the Magento\Wishlist namespace #9973
2 parents 3646db5 + 25aff90 commit c25408f

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

app/code/Magento/Wishlist/Model/Item.php

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

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Wishlist\Model;
108

119
use Magento\Catalog\Api\ProductRepositoryInterface;
@@ -345,12 +343,12 @@ public function beforeSave()
345343
$this->validate();
346344

347345
// set current store id if it is not defined
348-
if (is_null($this->getStoreId())) {
346+
if ($this->getStoreId() === null) {
349347
$this->setStoreId($this->_storeManager->getStore()->getId());
350348
}
351349

352350
// set current date if added at data is not defined
353-
if (is_null($this->getAddedAt())) {
351+
if ($this->getAddedAt() === null) {
354352
$this->setAddedAt($this->_date->gmtDate());
355353
}
356354

@@ -383,7 +381,7 @@ public function loadByProductWishlist($wishlistId, $productId, $sharedStores)
383381
public function getProduct()
384382
{
385383
$product = $this->_getData('product');
386-
if (is_null($product)) {
384+
if ($product === null) {
387385
if (!$this->getProductId()) {
388386
throw new \Magento\Framework\Exception\LocalizedException(__('Cannot specify product.'));
389387
}

app/code/Magento/Wishlist/Test/Unit/Model/Rss/WishlistTest.php

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

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Wishlist\Test\Unit\Model\Rss;
108

119
use Magento\Directory\Helper\Data;

0 commit comments

Comments
 (0)