| 1 | <?php |
||
| 8 | class PagesComposer extends Composer |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var PagesRepository |
||
| 12 | */ |
||
| 13 | protected $pages; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * PagesComposer constructor. |
||
| 17 | * @param PagesRepository $pagesRepository |
||
| 18 | */ |
||
| 19 | public function __construct(PagesRepository $pagesRepository) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param View $view |
||
| 26 | * @return $this |
||
| 27 | */ |
||
| 28 | public function compose(View $view) |
||
| 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.