Street   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 15
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A toOptionArray() 0 8 1
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\Block\Adminhtml\System\Config;
10
11
/**
12
 * Class Street - Defines address lines.
13
 */
14
class Street implements \Magento\Framework\Option\ArrayInterface
0 ignored issues
show
Bug introduced by
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...
15
{
16
    /**
17
     * Returns Options.
18
     *
19
     * @return array attributesArrays
20
     */
21
    public function toOptionArray()
22
    {
23
        return [
24
            null => __('Please select'),
0 ignored issues
show
Bug introduced by
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

24
            null => /** @scrutinizer ignore-call */ __('Please select'),
Loading history...
25
            '0'  => __('1st line of the street'),
26
            '1'  => __('2st line of the street'),
27
            '2'  => __('3st line of the street'),
28
            '3'  => __('4st line of the street'),
29
        ];
30
    }
31
}
32