Conditions | 3 |
Paths | 4 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
25 | public function handle() |
||
26 | { |
||
27 | $name = $this->argument('name'); |
||
28 | if ($name) { |
||
29 | try { |
||
30 | $judger = app(JudgerService::class)->newJudger($name); |
||
|
|||
31 | $this->info("Create New Judger {$name}, Code: ".$judger->code); |
||
32 | } catch (ApiException $e) { |
||
33 | $this->error($e->getMessage()); |
||
34 | } |
||
38 |