mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Removed parens
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
1f28bf14c1
commit
6761ff44cc
|
@ -171,15 +171,15 @@ class Category extends SnipeModel
|
|||
|
||||
switch ($this->category_type) {
|
||||
case 'asset':
|
||||
return $this->assets()->count();
|
||||
return $this->assets->count();
|
||||
case 'accessory':
|
||||
return $this->accessories()->count();
|
||||
return $this->accessories->count();
|
||||
case 'component':
|
||||
return $this->components()->count();
|
||||
return $this->components->count();
|
||||
case 'consumable':
|
||||
return $this->consumables()->count();
|
||||
return $this->consumables->count();
|
||||
case 'license':
|
||||
return $this->licenses()->count();
|
||||
return $this->licenses->count();
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue