mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -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) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue