| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function handle($command) |
||
| 11 | { |
||
| 12 | $command->info('Migrating Articles...'); |
||
| 13 | $this->table('news')->orderBy('news_id', 'asc')->chunk(100, function ($objects) { |
||
| 14 | $objects->map(function ($object) { |
||
| 15 | $this->transformArticle($object); |
||
| 16 | }); |
||
| 17 | }); |
||
| 18 | $command->info('Migrating Articles Done'); |
||
| 19 | } |
||
| 33 |