Skip to content

Commit

Permalink
#22296: Static test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
p-bystritsky committed Apr 23, 2019
1 parent 309a25f commit c83a283
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ protected function _beforeSave(\Magento\Framework\Model\AbstractModel $object)
|| $object->getData('store_id') === null
|| !$object->getData('sequence_table')
) {
// phpcs:ignore Magento2.Exceptions.DirectThrow
throw new Exception(__('Not enough arguments'));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\SalesSequence\Model\ResourceModel;

use Magento\Framework\Model\ResourceModel\Db\Context as DatabaseContext;
Expand Down Expand Up @@ -79,6 +80,7 @@ public function loadActiveProfile($metadataId)

/**
* Get profile ids by metadata ids
*
* @param int[] $metadataIds
* @return int[]
* @throws \Magento\Framework\Exception\LocalizedException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public function __construct(
}

/**
* Deletes all sequence linked entities.
*
* @param EventObserver $observer
* @return $this
* @throws \Magento\Framework\Exception\LocalizedException
Expand Down

0 comments on commit c83a283

Please sign in to comment.