mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
Fixed formatting
This commit is contained in:
parent
e5989895d8
commit
c10e97f2bd
|
|
@ -697,10 +697,10 @@ class StockService extends BaseService
|
||||||
if (Grocycode::Validate($barcode))
|
if (Grocycode::Validate($barcode))
|
||||||
{
|
{
|
||||||
$gc = new Grocycode($barcode);
|
$gc = new Grocycode($barcode);
|
||||||
if ($gc->GetType() != Grocycode::PRODUCT)
|
if ($gc->GetType() != Grocycode::PRODUCT)
|
||||||
{
|
{
|
||||||
throw new \Exception("Grocycode $barcode is not a product code");
|
throw new \Exception("Grocycode $barcode is not a product code");
|
||||||
}
|
}
|
||||||
return intval($gc->GetId());
|
return intval($gc->GetId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user