| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Bedard\Shop\Repositories; |
||
| 14 | public function find($slug, array $params = []) |
||
|
|
|||
| 15 | { |
||
| 16 | $product = Product::isEnabled() |
||
| 17 | ->joinPrice() |
||
| 18 | ->with([ |
||
| 19 | 'images', |
||
| 20 | 'inventories.optionValues', |
||
| 21 | 'options.values', |
||
| 22 | ]) |
||
| 23 | ->whereSlug($slug); |
||
| 24 | |||
| 25 | return $product->firstOrFail(); |
||
| 26 | } |
||
| 27 | } |
||
| 28 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.