Code style and proposition from below:
```
switch ($name) {
    case 'task':
        return $this->app->task;
    case 'output':
```
No break needed after a return statement.