mirror of
https://github.com/grocy/grocy.git
synced 2026-04-09 14:06:16 +02:00
Undo formatting changes
This commit is contained in:
parent
aaa2131253
commit
25255287a7
|
|
@ -282,7 +282,7 @@ class StockApiController extends BaseApiController
|
||||||
{
|
{
|
||||||
$specificStockEntryId = $requestBody['stock_entry_id'];
|
$specificStockEntryId = $requestBody['stock_entry_id'];
|
||||||
}
|
}
|
||||||
else if (array_key_exists('stock_id', $args) && !empty($args['stock_id']))
|
elseif (array_key_exists('stock_id', $args) && !empty($args['stock_id']))
|
||||||
{
|
{
|
||||||
$specificStockEntryId = $args['stock_id'];
|
$specificStockEntryId = $args['stock_id'];
|
||||||
}
|
}
|
||||||
|
|
@ -331,7 +331,7 @@ class StockApiController extends BaseApiController
|
||||||
$gc = new Grocycode($barcode);
|
$gc = new Grocycode($barcode);
|
||||||
if ($gc->GetType() != Grocycode::PRODUCT)
|
if ($gc->GetType() != Grocycode::PRODUCT)
|
||||||
{
|
{
|
||||||
throw new \Exception("Invalid grocycode type");
|
throw new \Exception('Invalid grocycode type');
|
||||||
}
|
}
|
||||||
$args['productId'] = $gc->GetId();
|
$args['productId'] = $gc->GetId();
|
||||||
if ($gc->GetExtraData())
|
if ($gc->GetExtraData())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user