wp-pay-gateways /
mollie
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Amount transformer. |
||
| 4 | * |
||
| 5 | * @author Pronamic <[email protected]> |
||
| 6 | * @copyright 2005-2019 Pronamic |
||
| 7 | * @license GPL-3.0-or-later |
||
| 8 | * @package Pronamic\WordPress\Pay\Gateways\Mollie |
||
| 9 | */ |
||
| 10 | |||
| 11 | namespace Pronamic\WordPress\Pay\Gateways\Mollie; |
||
| 12 | |||
| 13 | use Pronamic\WordPress\Money\Money; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Amount transformer |
||
| 17 | * |
||
| 18 | * @author Reüel van der Steege |
||
| 19 | * @version 2.1.0 |
||
| 20 | * @since 2.1.0 |
||
| 21 | */ |
||
| 22 | class AmountTransformer { |
||
| 23 | /** |
||
| 24 | * Transform Pronamic money to Mollie amount. |
||
| 25 | * |
||
| 26 | * @param PronamicMoney $pronamic_money Pronamic money to convert. |
||
|
0 ignored issues
–
show
|
|||
| 27 | * @return Money |
||
| 28 | */ |
||
| 29 | 2 | public static function transform( Money $money ) { |
|
| 30 | 2 | $amount = new Amount( |
|
| 31 | 2 | strval( $money->get_currency()->get_alphabetic_code() ), |
|
| 32 | 2 | $money->format() |
|
| 33 | ); |
||
| 34 | |||
| 35 | 2 | return $amount; |
|
|
0 ignored issues
–
show
|
|||
| 36 | } |
||
| 37 | } |
||
| 38 |
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