1 | <?php |
||||
2 | |||||
3 | namespace QuickCheckout; |
||||
4 | |||||
5 | class CartValidator |
||||
6 | { |
||||
7 | |||||
8 | /** |
||||
9 | * Check is line item can be added to cart. |
||||
10 | * |
||||
11 | * @param Cart $cart |
||||
12 | * @param LineItem $lineItem |
||||
13 | * |
||||
14 | * @return bool |
||||
15 | */ |
||||
16 | 3 | public function lineItemCanBeAdded(Cart $cart, LineItem $lineItem): bool |
|||
0 ignored issues
–
show
The parameter
$cart is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. ![]() The type
QuickCheckout\LineItem was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||
17 | { |
||||
18 | 3 | return true; |
|||
19 | } |
||||
20 | } |
||||
21 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.