Issues (570)

Model/Ui/ConfigProviderBase.php (4 issues)

Labels
Severity
1
<?php
2
/**
3
 * Copyright © Wirecard Brasil. All rights reserved.
4
 *
5
 * @author    Bruno Elisei <[email protected]>
6
 * See COPYING.txt for license details.
7
 */
8
9
namespace Moip\Magento2\Model\Ui;
10
11
use Magento\Checkout\Model\ConfigProviderInterface;
0 ignored issues
show
The type Magento\Checkout\Model\ConfigProviderInterface 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
use Magento\Payment\Model\CcConfig;
0 ignored issues
show
The type Magento\Payment\Model\CcConfig 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
13
use Magento\Quote\Api\Data\CartInterface;
0 ignored issues
show
The type Magento\Quote\Api\Data\CartInterface 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
14
use Moip\Magento2\Gateway\Config\Config;
15
16
/**
17
 * Class ConfigProviderBase - Defines properties of the payment form.
18
 */
19
class ConfigProviderBase implements ConfigProviderInterface
20
{
21
    /*
22
     * @var CODE
23
     */
24
    const CODE = 'moip_magento2';
25
26
    /*
27
     * @var METHOD CODE CC
28
     */
29
    const METHOD_CODE_CC = 'moip_magento2_cc';
30
31
    /*
32
     * @var METHOD CODE CC VAULT
33
     */
34
    const METHOD_CODE_CC_VAULT = 'moip_magento2_cc_vault';
35
36
    /*
37
     * @var METHOD CODE BOLETO
38
     */
39
    const METHOD_CODE_BOLETO = 'moip_magento2_boleto';
40
41
    /**
42
     * @var Config
43
     */
44
    private $config;
45
46
    /**
47
     * @var CartInterface
48
     */
49
    private $cart;
50
51
    /**
52
     * @var CcConfig
53
     */
54
    protected $ccConfig;
55
56
    /**
57
     * @var \Magento\Framework\View\Asset\Source
0 ignored issues
show
The type Magento\Framework\View\Asset\Source 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
58
     */
59
    protected $assetSource;
60
61
    /**
62
     * @param Config        $config
63
     * @param CartInterface $cart
64
     */
65
    public function __construct(
66
        Config $config,
67
        CartInterface $cart,
68
        CcConfig $ccConfig
69
    ) {
70
        $this->config = $config;
71
        $this->cart = $cart;
72
        $this->ccConfig = $ccConfig;
73
    }
74
75
    /**
76
     * Retrieve assoc array of checkout configuration.
77
     *
78
     * @return array
79
     */
80
    public function getConfig()
81
    {
82
        return [
83
            'payment' => [
84
                Config::METHOD => [
85
                    'isActive' => false,
86
                ],
87
            ],
88
        ];
89
    }
90
}
91