Skip to content

Commit

Permalink
Changed event parameter to default empty string instead of null in pr…
Browse files Browse the repository at this point in the history
…ocess functions
  • Loading branch information
stevebauman committed Mar 31, 2015
1 parent ae2ba15 commit 54ce577
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Stevebauman/Inventory/Traits/InventoryTransactionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -1149,11 +1149,11 @@ private function validateStateIsAvailable($state)
* current transaction
*
* @param $quantity
* @param null $event
* @param string $event
* @return $this|bool
* @throws StockNotFoundException
*/
private function processStockPutAndSave($quantity, $event = null)
private function processStockPutAndSave($quantity, $event = '')
{
$stock = $this->getStockRecord();

Expand Down Expand Up @@ -1184,11 +1184,11 @@ private function processStockPutAndSave($quantity, $event = null)
* stock and saving the current transaction
*
* @param $quantity
* @param null $event
* @param string $event
* @return $this|bool
* @throws StockNotFoundException
*/
private function processStockTakeAndSave($quantity, $event = null)
private function processStockTakeAndSave($quantity, $event = '')
{
$stock = $this->getStockRecord();

Expand Down Expand Up @@ -1222,10 +1222,10 @@ private function processStockTakeAndSave($quantity, $event = null)
* Processes saving the transaction by covering it with
* a database transaction.
*
* @param null $event
* @param string $event
* @return $this|bool
*/
private function processSave($event = null)
private function processSave($event = '')
{
$this->dbStartTransaction();

Expand Down

0 comments on commit 54ce577

Please sign in to comment.