| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 50 | public function wp_cli_transaction_status( $args, $assoc_args ) { |
||
| 51 | $gateway = $this->integration->get_gateway( $assoc_args['config_id'] ); |
||
| 52 | |||
| 53 | foreach ( $args as $transaction_key ) { |
||
| 54 | $result = $gateway->request( 'GET', 'Transaction/Status/' . $transaction_key ); |
||
| 55 | |||
| 56 | \WP_CLI::line( \wp_json_encode( $result, \JSON_PRETTY_PRINT ) ); |
||
| 57 | } |
||
| 60 |