1 | <?php |
||||
2 | |||||
3 | /** |
||||
4 | * PAYONE Magento 2 Connector is free software: you can redistribute it and/or modify |
||||
5 | * it under the terms of the GNU Lesser General Public License as published by |
||||
6 | * the Free Software Foundation, either version 3 of the License, or |
||||
7 | * (at your option) any later version. |
||||
8 | * |
||||
9 | * PAYONE Magento 2 Connector is distributed in the hope that it will be useful, |
||||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
12 | * GNU Lesser General Public License for more details. |
||||
13 | * |
||||
14 | * You should have received a copy of the GNU Lesser General Public License |
||||
15 | * along with PAYONE Magento 2 Connector. If not, see <http://www.gnu.org/licenses/>. |
||||
16 | * |
||||
17 | * PHP version 5 |
||||
18 | * |
||||
19 | * @category Payone |
||||
20 | * @package Payone_Magento2_Plugin |
||||
21 | * @author FATCHIP GmbH <[email protected]> |
||||
22 | * @copyright 2003 - 2016 Payone GmbH |
||||
23 | * @license <http://www.gnu.org/licenses/> GNU Lesser General Public License |
||||
24 | * @link http://www.payone.de |
||||
25 | */ |
||||
26 | |||||
27 | namespace Payone\Core\Model\Source; |
||||
28 | |||||
29 | use Magento\Framework\Option\ArrayInterface; |
||||
0 ignored issues
–
show
|
|||||
30 | |||||
31 | /** |
||||
32 | * Source class for person status states |
||||
33 | */ |
||||
34 | class PersonStatus implements ArrayInterface |
||||
35 | { |
||||
36 | const NONE = 'NONE'; //NONE: no verification of personal data carried out |
||||
37 | const PAB = 'PAB'; //PAB: first name & surname unknown |
||||
38 | const PHB = 'PHB'; //PHB: surname known |
||||
39 | const PKI = 'PKI'; //PKI: ambiguity in name and address |
||||
40 | const PNP = 'PNP'; //PNP: address cannot be checked, e.g. fake name used |
||||
41 | const PNZ = 'PNZ'; //PNZ: cannot be delivered (any longer) |
||||
42 | const PPB = 'PPB'; //PPB: first name & surname unknown |
||||
43 | const PPF = 'PPF'; //PPF: postal address details incorrect |
||||
44 | const PPV = 'PPV'; //PPV: person deceased |
||||
45 | const PUG = 'PUG'; //PUG: postal address details correct but building unknown |
||||
46 | const PUZ = 'PUZ'; //PUZ: person has moved, address not corrected |
||||
47 | const UKN = 'UKN'; //UKN: unknown return values are mapped to UKN |
||||
48 | |||||
49 | /** |
||||
50 | * Return existing person status states |
||||
51 | * |
||||
52 | * @return array |
||||
53 | */ |
||||
54 | public function toOptionArray() |
||||
55 | { |
||||
56 | return [ |
||||
57 | [ |
||||
58 | 'value' => self::NONE, |
||||
59 | 'label' => __(self::NONE), |
||||
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
![]() |
|||||
60 | ], |
||||
61 | [ |
||||
62 | 'value' => self::PPB, |
||||
63 | 'label' => __(self::PPB), |
||||
64 | ], |
||||
65 | [ |
||||
66 | 'value' => self::PHB, |
||||
67 | 'label' => __(self::PHB), |
||||
68 | ], |
||||
69 | [ |
||||
70 | 'value' => self::PAB, |
||||
71 | 'label' => __(self::PAB), |
||||
72 | ], |
||||
73 | [ |
||||
74 | 'value' => self::PKI, |
||||
75 | 'label' => __(self::PKI), |
||||
76 | ], |
||||
77 | [ |
||||
78 | 'value' => self::PNZ, |
||||
79 | 'label' => __(self::PNZ), |
||||
80 | ], |
||||
81 | [ |
||||
82 | 'value' => self::PPV, |
||||
83 | 'label' => __(self::PPV), |
||||
84 | ], |
||||
85 | [ |
||||
86 | 'value' => self::PPF, |
||||
87 | 'label' => __(self::PPF), |
||||
88 | ], |
||||
89 | [ |
||||
90 | 'value' => self::PUG, |
||||
91 | 'label' => __(self::PUG), |
||||
92 | ], |
||||
93 | [ |
||||
94 | 'value' => self::PUZ, |
||||
95 | 'label' => __(self::PUZ), |
||||
96 | ], |
||||
97 | [ |
||||
98 | 'value' => self::UKN, |
||||
99 | 'label' => __(self::UKN), |
||||
100 | ], |
||||
101 | ]; |
||||
102 | } |
||||
103 | } |
||||
104 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths