Format the case statement like the rest

This commit is contained in:
James Brooks 2016-12-03 19:37:07 +00:00
parent 67df17d9e1
commit 443ded7029

View File

@ -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';
} }
} }