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