1 | <?php |
||
8 | class CategoryComposer extends Composer |
||
9 | { |
||
10 | /** |
||
11 | * @var CategoryRepository |
||
12 | */ |
||
13 | protected $categories; |
||
14 | |||
15 | /** |
||
16 | * CategoryComposer constructor. |
||
17 | * @param CategoryRepository $categoryRepository |
||
18 | */ |
||
19 | public function __construct(CategoryRepository $categoryRepository) |
||
23 | |||
24 | /** |
||
25 | * Bind data to view. |
||
26 | * |
||
27 | * @param View $view |
||
28 | * @return View |
||
29 | */ |
||
30 | public function compose(View $view) |
||
54 | } |
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.