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