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) {
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;
}