| 1 | <?php namespace Bedard\Shop\Api; |
||
| 9 | class Carts extends ApiController |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Show the current cart. |
||
| 13 | * |
||
| 14 | * @param \Bedard\Shop\Repositories\CartRepository $repository |
||
| 15 | * @return \Bedard\Shop\Models\Cart |
||
| 16 | */ |
||
| 17 | public function show(CartRepository $repository) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Create a new cart. |
||
| 32 | * |
||
| 33 | * @param \Bedard\Shop\Repositories\CartRepository $repository |
||
| 34 | * @return \Bedard\Shop\Models\Cart |
||
| 35 | */ |
||
| 36 | public function store(CartRepository $repository) |
||
| 48 | } |
||
| 49 |
This check looks for
tryblocks that have no statements or where all statements have been commented out. This may be the result of changes for debugging or the code may simply be obsolete.If there is nothing in the
trythen thecatchblock can never be executed either. Thus, thesetrystatements can be removed completely.