| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function compose(View $view) |
||
| 29 | { |
||
| 30 | switch ($view->getName()) |
||
| 31 | { |
||
| 32 | case "partials.header.index": |
||
| 33 | return $view->with('pages', $this->pages->getHeader()); |
||
| 34 | break; |
||
|
|
|||
| 35 | |||
| 36 | case "partials.footer.navigation_sidebar": |
||
| 37 | return $view->with('pages', $this->pages->getFooter()); |
||
| 38 | break; |
||
| 39 | } |
||
| 40 | } |
||
| 41 | } |
The break statement is not necessary if it is preceded for example by a return statement:
If you would like to keep this construct to be consistent with other case statements, you can safely mark this issue as a false-positive.