Removed parens

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-05 00:22:46 +01:00
parent 1f28bf14c1
commit 6761ff44cc

View file

@ -171,15 +171,15 @@ class Category extends SnipeModel
switch ($this->category_type) { switch ($this->category_type) {
case 'asset': case 'asset':
return $this->assets()->count(); return $this->assets->count();
case 'accessory': case 'accessory':
return $this->accessories()->count(); return $this->accessories->count();
case 'component': case 'component':
return $this->components()->count(); return $this->components->count();
case 'consumable': case 'consumable':
return $this->consumables()->count(); return $this->consumables->count();
case 'license': case 'license':
return $this->licenses()->count(); return $this->licenses->count();
default: default:
return 0; return 0;
} }