Skip to content

Commit

Permalink
MAGETWO-69950: Fixed coding standard violations in the Magento\Wishli…
Browse files Browse the repository at this point in the history
…st namespace #9973
  • Loading branch information
ishakhsuvarov authored Jun 19, 2017
2 parents 3646db5 + 25aff90 commit c25408f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 3 additions & 5 deletions app/code/Magento/Wishlist/Model/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile

namespace Magento\Wishlist\Model;

use Magento\Catalog\Api\ProductRepositoryInterface;
Expand Down Expand Up @@ -345,12 +343,12 @@ public function beforeSave()
$this->validate();

// set current store id if it is not defined
if (is_null($this->getStoreId())) {
if ($this->getStoreId() === null) {
$this->setStoreId($this->_storeManager->getStore()->getId());
}

// set current date if added at data is not defined
if (is_null($this->getAddedAt())) {
if ($this->getAddedAt() === null) {
$this->setAddedAt($this->_date->gmtDate());
}

Expand Down Expand Up @@ -383,7 +381,7 @@ public function loadByProductWishlist($wishlistId, $productId, $sharedStores)
public function getProduct()
{
$product = $this->_getData('product');
if (is_null($product)) {
if ($product === null) {
if (!$this->getProductId()) {
throw new \Magento\Framework\Exception\LocalizedException(__('Cannot specify product.'));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile

namespace Magento\Wishlist\Test\Unit\Model\Rss;

use Magento\Directory\Helper\Data;
Expand Down

0 comments on commit c25408f

Please sign in to comment.