| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 15 | public function handle() |
||
| 16 | { |
||
| 17 | $id = $this->argument('id'); |
||
| 18 | app()->singleton(SolutionServer::class, function () { |
||
| 19 | return new SolutionServer(); |
||
| 20 | }); |
||
| 21 | if (strpos($id, '-') !== false) { |
||
|
|
|||
| 22 | list($start, $end) = explode('-', $id, 2); |
||
| 23 | $start = intval($start); |
||
| 24 | $end = intval($end); |
||
| 25 | for ($i = $start; $i <= $end; $i++) { |
||
| 26 | $this->addTask($i); |
||
| 27 | } |
||
| 28 | } else { |
||
| 29 | $this->addTask($id); |
||
| 30 | } |
||
| 39 |