Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
47 | 1 | * |
|
48 | * @throws \InvalidArgumentException |
||
49 | 1 | */ |
|
50 | 1 | public function handle() |
|
51 | 1 | { |
|
52 | 1 | $query = $this->option('command'); |
|
53 | 1 | $connection = $this->databaseManager->connection(); |
|
54 | 1 | $rows = json_decode(json_encode($connection->select($query)), true); |
|
55 | $headers = array_keys(Arr::get($rows, 0, [])); |
||
71 |