From c10e97f2bd9527ef3eff9d10dec7031505491ee8 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sun, 15 Aug 2021 10:41:14 +0200 Subject: [PATCH] Fixed formatting --- services/StockService.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/StockService.php b/services/StockService.php index ffbbf7e9..4677752c 100644 --- a/services/StockService.php +++ b/services/StockService.php @@ -697,10 +697,10 @@ class StockService extends BaseService if (Grocycode::Validate($barcode)) { $gc = new Grocycode($barcode); - if ($gc->GetType() != Grocycode::PRODUCT) - { - throw new \Exception("Grocycode $barcode is not a product code"); - } + if ($gc->GetType() != Grocycode::PRODUCT) + { + throw new \Exception("Grocycode $barcode is not a product code"); + } return intval($gc->GetId()); }