Fixed formatting

This commit is contained in:
Bernd Bestel 2021-08-15 10:41:14 +02:00
parent e5989895d8
commit c10e97f2bd
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -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());
} }