mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-23 11:43:47 -08:00
Small formatting fixes, fixed typo in comment
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
8f3a237ea0
commit
0b0fdd8aa5
|
@ -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] [<snipe@snipe.net>]
|
||||
* @since [v2.0]
|
||||
|
|
Loading…
Reference in a new issue