tddwizard/magento2-fixtures

View on GitHub
src/Checkout/CustomerCheckout.php

Summary

Maintainability
A
1 hr
Test Coverage

Method __construct has 9 arguments (exceeds 4 allowed). Consider refactoring.
Open

        AddressRepositoryInterface $addressRepository,
        CartRepositoryInterface $quoteRepository,
        QuoteManagement $quoteManagement,
        PaymentConfig $paymentConfig,
        Cart $cart,
Severity: Major
Found in src/Checkout/CustomerCheckout.php - About 1 hr to fix

    Missing class import via use statement (line '176', column '23').
    Open

                throw new \RuntimeException('QuoteManagement::submit() returned ' . $returnType . ' instead of Order');
    Severity: Minor
    Found in src/Checkout/CustomerCheckout.php by phpmd

    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

    use Magento\Quote\Model\Quote;
    Severity: Minor
    Found in src/Checkout/CustomerCheckout.php by phan

    There are no issues that match your filters.

    Category
    Status