Issues (570)

Model/Adminhtml/Source/PaymentAction.php (3 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\Adminhtml\Source;
10
11
use Magento\Payment\Model\Method\AbstractMethod;
0 ignored issues
show
The type Magento\Payment\Model\Method\AbstractMethod 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
13
/**
14
 * Class PaymentAction - Adds payment authorization.
15
 */
16
class PaymentAction implements \Magento\Framework\Option\ArrayInterface
0 ignored issues
show
The type Magento\Framework\Option\ArrayInterface 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...
17
{
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function toOptionArray()
22
    {
23
        return [
24
            [
25
                'value' => AbstractMethod::ACTION_AUTHORIZE,
26
                'label' => __('Authorize'),
0 ignored issues
show
The function __ was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

26
                'label' => /** @scrutinizer ignore-call */ __('Authorize'),
Loading history...
27
            ],
28
        ];
29
    }
30
}
31