Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
28 | public function handle() |
||
29 | { |
||
30 | $token = $this->laravel->make('api.token'); |
||
31 | |||
32 | $key = $this->argument('app key'); |
||
33 | |||
34 | if ($data = $token->generateDataForKey($key)) { |
||
35 | $this->table(array_keys($data), [array_values($data)]); |
||
36 | } else { |
||
37 | $this->error('Invalid app key: '.$key); |
||
38 | } |
||
39 | } |
||
40 | } |
||
41 |