pagseguro/magento2

View on GitHub
Model/NotificationMethod.php

Summary

Maintainability
A
1 hr
Test Coverage

Method updateOrderStatus has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function updateOrderStatus()
    {
        $this->_library->setEnvironment();
        $this->_library->setCharset();
        $this->_library->setLog();
Severity: Minor
Found in Model/NotificationMethod.php - About 1 hr to fix

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

            \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfigInterface,
            \Magento\Sales\Api\OrderRepositoryInterface $order,
            \Magento\Sales\Api\Data\OrderStatusHistoryInterface $history,
            \Magento\Framework\Module\ModuleList $moduleList,
            \Magento\Framework\Model\ResourceModel\Db\Context $context
    Severity: Minor
    Found in Model/NotificationMethod.php - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status