1 | <?php |
||
2 | /** |
||
3 | * Statuses. |
||
4 | * |
||
5 | * @author Pronamic <[email protected]> |
||
6 | * @copyright 2005-2019 Pronamic |
||
7 | * @license GPL-3.0-or-later |
||
8 | * @package Pronamic\WordPress\Pay\Gateways\ING\KassaCompleet |
||
9 | */ |
||
10 | |||
11 | namespace Pronamic\WordPress\Pay\Gateways\ING\KassaCompleet; |
||
12 | |||
13 | use Pronamic\WordPress\Pay\Payments\PaymentStatus as Core_Statuses; |
||
0 ignored issues
–
show
|
|||
14 | |||
15 | /** |
||
16 | * Title: ING Kassa Compleet statuses constants |
||
17 | * Description: |
||
18 | * Copyright: 2005-2019 Pronamic |
||
19 | * Company: Pronamic |
||
20 | * |
||
21 | * @author Reüel van der Steege |
||
22 | * @version 2.0.0 |
||
23 | * @since 1.0.0 |
||
24 | */ |
||
25 | class Statuses { |
||
26 | /** |
||
27 | * Completed |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | const COMPLETED = 'completed'; |
||
32 | |||
33 | /** |
||
34 | * Error |
||
35 | * |
||
36 | * @since 1.0.5 |
||
37 | * @var string |
||
38 | */ |
||
39 | const ERROR = 'error'; |
||
40 | |||
41 | /** |
||
42 | * Pending |
||
43 | * |
||
44 | * @var string |
||
45 | */ |
||
46 | const PENDING = 'pending'; |
||
47 | |||
48 | /** |
||
49 | * Processing |
||
50 | * |
||
51 | * @var string |
||
52 | */ |
||
53 | const PROCESSING = 'processing'; |
||
54 | |||
55 | // @todo verify cancelled status |
||
56 | /** |
||
57 | * Cancelled |
||
58 | * |
||
59 | * @var string |
||
60 | */ |
||
61 | const CANCELLED = 'cancelled'; |
||
62 | |||
63 | /** |
||
64 | * Success |
||
65 | * |
||
66 | * @var string |
||
67 | */ |
||
68 | const SUCCESS = 'Success'; |
||
69 | |||
70 | /** |
||
71 | * Transform an ING Kassa Compleet status to a global status |
||
72 | * |
||
73 | * @param string $status ING Kassa Compleet status to transform. |
||
74 | * |
||
75 | * @return string|null |
||
76 | */ |
||
77 | public static function transform( $status ) { |
||
78 | switch ( $status ) { |
||
79 | case self::ERROR: |
||
80 | return Core_Statuses::FAILURE; |
||
81 | |||
82 | case self::PENDING: |
||
83 | case self::PROCESSING: |
||
84 | return Core_Statuses::OPEN; |
||
85 | |||
86 | case self::CANCELLED: |
||
87 | return Core_Statuses::CANCELLED; |
||
88 | |||
89 | case self::COMPLETED: |
||
90 | case self::SUCCESS: |
||
91 | return Core_Statuses::SUCCESS; |
||
92 | |||
93 | default: |
||
94 | return null; |
||
95 | } |
||
96 | } |
||
97 | } |
||
98 |
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