| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function handle() |
||
| 28 | { |
||
| 29 | $contentTypes = $this->api->contentTypes(); |
||
| 30 | |||
| 31 | if (! empty($contentTypes['items'])) { |
||
| 32 | array_unshift($contentTypes['items'], $this->assetContentType()); |
||
| 33 | foreach ($contentTypes['items'] as $contentType) { |
||
| 34 | if ($contentType['sys']['id'] !== 'asset') { |
||
| 35 | $this->info('Content-Type: ' . Str::upper($contentType['name'])); |
||
| 36 | $file = $this->createMigration($contentType); |
||
| 37 | $this->line('Migration "' . $file . '" created'); |
||
| 38 | sleep(1); |
||
| 39 | } |
||
| 64 |