From 0b0fdd8aa5d74daec9834136d96a9c78bfee6634 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 10 Jan 2023 16:32:18 -0800 Subject: [PATCH] Small formatting fixes, fixed typo in comment Signed-off-by: snipe --- app/Models/Category.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Category.php b/app/Models/Category.php index 75e7551ff4..836f28e8e4 100755 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -100,7 +100,7 @@ class Category extends SnipeModel { return Gate::allows('delete', $this) - && ($this->itemCount() == 0); + && ($this->itemCount() == 0); } /** @@ -155,7 +155,7 @@ class Category extends SnipeModel * Get the number of items in the category. This should NEVER be used in * a collection of categories, as you'll end up with an n+1 query problem. * - * It should only be used in a single categoiry context. + * It should only be used in a single category context. * * @author [A. Gianotto] [] * @since [v2.0]