src/Checkout/CustomerCheckout.php
Method __construct
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
AddressRepositoryInterface $addressRepository,
CartRepositoryInterface $quoteRepository,
QuoteManagement $quoteManagement,
PaymentConfig $paymentConfig,
Cart $cart,
Missing class import via use statement (line '176', column '23'). Open
Open
throw new \RuntimeException('QuoteManagement::submit() returned ' . $returnType . ' instead of Order');
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Possibly zero references to use statement for classlike/namespace Quote
(\Magento\Quote\Model\Quote)
Open
Open
use Magento\Quote\Model\Quote;
- Exclude checks