| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | public function handle(Currencylayer $currencylayer) |
||
| 44 | { |
||
| 45 | $rates = $currencylayer->live( |
||
| 46 | $this->argument('source'), |
||
|
|
|||
| 47 | $this->argument('currencies') |
||
| 48 | ); |
||
| 49 | |||
| 50 | $header = ['Currency', 'Value']; |
||
| 51 | if (is_array($rates)) { |
||
| 52 | $this->table($header, [array_keys($rates), array_values($rates)]); |
||
| 53 | } else { |
||
| 54 | $this->table($header, [$this->argument('currencies'), [$rates]]); |
||
| 55 | } |
||
| 58 |