mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 13:38:20 +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()
|
public function status_color()
|
||||||
{
|
{
|
||||||
switch ($this->wrappedObject->status) {
|
switch ($this->wrappedObject->status) {
|
||||||
case 0:
|
case 0: return 'greys';
|
||||||
return 'greys';
|
case 1: return 'greens';
|
||||||
case 1:
|
case 2: return 'blues';
|
||||||
return 'greens';
|
case 3: return 'yellows';
|
||||||
case 2:
|
case 4: return 'reds';
|
||||||
return 'blues';
|
|
||||||
case 3:
|
|
||||||
return 'yellows';
|
|
||||||
case 4:
|
|
||||||
return 'reds';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user