Adopt PSR-2 coding style
The Laravel framework adopts the PSR-2 coding style in version 5.1. Laravel apps *should* adopt this coding style as well. Read the [PSR-2 coding style guide][1] for more details and check out [PHPCS][2] to use as a code formatting tool. [1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md [2]: https://github.com/squizlabs/PHP_CodeSniffer
This commit is contained in:
@@ -29,10 +29,14 @@ class ComponentPresenter extends BasePresenter implements Arrayable
|
||||
public function status_color()
|
||||
{
|
||||
switch ($this->wrappedObject->status) {
|
||||
case 1: return 'greens';
|
||||
case 2: return 'blues';
|
||||
case 3: return 'yellows';
|
||||
case 4: return 'reds';
|
||||
case 1:
|
||||
return 'greens';
|
||||
case 2:
|
||||
return 'blues';
|
||||
case 3:
|
||||
return 'yellows';
|
||||
case 4:
|
||||
return 'reds';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user