Skip to content

Commit

Permalink
CORE-1694 Fix count statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Aug 8, 2017
1 parent 817f8e4 commit 185b576
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Spryker/Zed/Price/Business/Model/Reader.php
Expand Up @@ -57,7 +57,7 @@ public function __construct(
}

/**
* @return array
* @return string[]
*/
public function getPriceTypes()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Spryker/Zed/Price/Business/Model/Writer.php
Expand Up @@ -225,8 +225,8 @@ protected function setPriceType(PriceProductTransfer $priceProductTransfer)
*/
protected function getPriceProductById($idPriceProduct)
{
$priceProductEntity = $this->queryContainer->queryPriceProductEntity($idPriceProduct)->find();
if (!count($priceProductEntity) > 0) {
$priceProductCollection = $this->queryContainer->queryPriceProductEntity($idPriceProduct)->find();
if ($priceProductCollection->count() === 0) {
throw new Exception(self::ENTITY_NOT_FOUND);
}

Expand Down

0 comments on commit 185b576

Please sign in to comment.