wp-pay-gateways /
ems-e-commerce
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Pronamic\WordPress\Pay\Gateways\EMS\ECommerce; |
||
| 4 | |||
| 5 | use Pronamic\WordPress\Pay\Payments\PaymentStatus as Core_Statuses; |
||
|
0 ignored issues
–
show
|
|||
| 6 | |||
| 7 | /** |
||
| 8 | * Title: EMS e-Commerce Gateway statuses constants |
||
| 9 | * Description: |
||
| 10 | * Copyright: 2005-2019 Pronamic |
||
| 11 | * Company: Pronamic |
||
| 12 | * |
||
| 13 | * @author Remco Tolsma |
||
| 14 | * @version 2.0.0 |
||
| 15 | * @since 1.0.0 |
||
| 16 | */ |
||
| 17 | class Statuses { |
||
| 18 | /** |
||
| 19 | * Open |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | const OPEN = 'open'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Transform an EMS e-Commerce state to an more global status |
||
| 27 | * |
||
| 28 | * @param string $status |
||
| 29 | * |
||
| 30 | * @return null|string |
||
| 31 | */ |
||
| 32 | 2 | public static function transform( $status ) { |
|
| 33 | switch ( $status ) { |
||
| 34 | 2 | case self::OPEN: |
|
| 35 | 1 | return Core_Statuses::OPEN; |
|
| 36 | |||
| 37 | default: |
||
| 38 | 1 | return null; |
|
| 39 | } |
||
| 40 | } |
||
| 41 | } |
||
| 42 |
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