mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 05:28:18 +01:00
Format the case statement like the rest
This commit is contained in:
parent
67df17d9e1
commit
443ded7029
@ -28,16 +28,11 @@ class ComponentPresenter extends BasePresenter implements Arrayable
|
||||
public function status_color()
|
||||
{
|
||||
switch ($this->wrappedObject->status) {
|
||||
case 0:
|
||||
return 'greys';
|
||||
case 1:
|
||||
return 'greens';
|
||||
case 2:
|
||||
return 'blues';
|
||||
case 3:
|
||||
return 'yellows';
|
||||
case 4:
|
||||
return 'reds';
|
||||
case 0: return 'greys';
|
||||
case 1: return 'greens';
|
||||
case 2: return 'blues';
|
||||
case 3: return 'yellows';
|
||||
case 4: return 'reds';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user